Skip to content

Commit

Permalink
Fix OSX fail of tests due to too long path
Browse files Browse the repository at this point in the history
This fixes the following error:

WARNING: IPC handle [...] is longer than 103 chars, try a shorter
--user-data-dir
Could not delete obsolete instance handle Error: ENOENT:
no such file or directory

This is a workaround for
microsoft/vscode#86382.
When using a long path for --user-data-dir, on OSX VS Code could
only be started once. Restarting VS Code would result in the
error given above.
  • Loading branch information
valentjn committed May 24, 2020
1 parent 79a2779 commit 093e6d7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/runTests.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ async function main(): Promise<void> {
let tmpDirPath: string | undefined;

try {
const tmpDirPrefix: string = Path.join(Path.dirname(vscodeExecutablePath), 'tmp-');
const tmpDirPrefix: string = Path.join(ltexDirPath, 'tmp-');
console.log(`Creating temporary directory with prefix '${tmpDirPrefix}'...`);
tmpDirPath = Fs.mkdtempSync(tmpDirPrefix);
console.log(`Created temporary directory '${tmpDirPath}'.`);
Expand Down

0 comments on commit 093e6d7

Please sign in to comment.