-
Notifications
You must be signed in to change notification settings - Fork 60
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fails to run if cached: Error IPC handle is longer than 103 chars. #232
Comments
I found that deleting the |
I was still having the Socket issue when try to run the insiders build locally. To prevent async function run(version: undefined | 'stable' | 'insiders' | string, extensionDevelopmentPath: string) {
// Delete `.vscode-test` to prevent socket issues
await fs.rm(cacheDirName, { recursive: true, force: true });
await fs.rm(path.resolve(root, cacheDirName), { recursive: true, force: true });
// try and have a short path to prevent socket errors.
const cachePath = path.join(root, cacheDirName);
// The path to the extension test runner script
// Passed to --extensionTestsPath
const extensionTestsPath = path.resolve(__dirname, './index.cjs');
const fileToOpen = path.relative(process.cwd(), __filename);
const launchArgs: string[] = [
'--disable-extensions',
fileToOpen,
`--extensions-dir=${path.join(cachePath, `${version}`, 'extensions')}`,
`--user-data-dir=${path.join(cachePath, `${version}`, 'user-data')}`,
];
const vscodeExecutablePath = await downloadAndUnzipVSCode({ cachePath, version });
const options = { vscodeExecutablePath, extensionDevelopmentPath, extensionTestsPath, launchArgs };
await runTests(options);
} |
6 tasks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Running the test locally on a non-cached instance of VS Code works the first time, but fails if it has been cached.
Note:
It looks like
runTests
is making a "copy" of the download in$(PWD)/.vscode-test
even though I have already downloaded it to a shorter path.Sample code:
In my case:
extensionDevelopmentPath
is/Users/jason/projects/vscode-spell-checker
/Users/jason/projects/vscode-spell-checker/packages/_integrationTests
Error Log:
About VS Code
Workaround
The workaround is to delete
$(PWD)/.vscode-test
before running the tests:Related Issues
The text was updated successfully, but these errors were encountered: