-
Notifications
You must be signed in to change notification settings - Fork 30k
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
Wrong shared IPC handle path #30624
Comments
I installed 1.13.1 and extensions pane now works. I am trying to keep auto-updates from moving me back up to 1.14.0. |
Could you try reinstalling VSCode? Maybe something in your install broke. |
I set "update.channel": "default" and then let it do its upgrade thing. Upon restart, same error when navigating to extensions pane. When I revert back to 1.13.1, it works again. |
Does it reproduce after restarting your computer? |
This issue has been closed automatically because it needs more information and has not had recent activity. Please refer to our guidelines for filing issues. Thank you for your contributions. |
I decided to update to 1.15.0 to see if magically this got fixed. Nope, still happens. I found issue #13561 and based on what it said, I start vscode from terminal windows instead of finder. If I do that, then extensions pane opens without error. And yes, I restarted my computer, which on Mac is usually not required ;-). Please reopen this issue or associate to the other, as this is a bug. |
I got the same issue after upgrading to 1.15.1 today. The error is:
It looks like the sock that is actually open is different:
|
I'm also having this issue with both 1.15.1 and 1.16.0-insider in macOS 10.12.6 (16G29). |
After some further investigation, it looks like this might happen because of the asynchronous loading of environment variables from your shell environment. In my The path to this socket is computed as follows, in function getNixIPCHandle(userDataPath: string, type: string): string {
if (process.env['XDG_RUNTIME_DIR']) {
return path.join(process.env['XDG_RUNTIME_DIR'], `${pkg.name}-${pkg.version}-${type}.sock`);
}
return path.join(userDataPath, `${pkg.version}-${type}.sock`);
} So if However, if function getAppDataPath(platform) {
switch (platform) {
case 'win32': return process.env['VSCODE_APPDATA'] || process.env['APPDATA'] || path.join(process.env['USERPROFILE'], 'AppData', 'Roaming');
case 'darwin': return process.env['VSCODE_APPDATA'] || path.join(os.homedir(), 'Library', 'Application Support');
case 'linux': return process.env['VSCODE_APPDATA'] || process.env['XDG_CONFIG_HOME'] || path.join(os.homedir(), '.config');
default: throw new Error('Platform not supported');
}
} And, indeed, there is a |
@lambda Thanks for the analysis. @joaomoreno Does this help in narrowing down the issue? |
I'm guessing this works for all you guys if you launch Code from a shell? Related to #28816 |
That build has fixed the issue for me on Mac OS X. (for some reason, it didn't work on the first run-through, giving what looked like the same error. When I moved the app from ~/Downloads to ~/Applications and ran again, it worked. I tested placing it back in ~/Downloads and it still worked) |
I have, I believe, the same issue, due to my (questionable) practice of setting The build @joaomoreno posted resolved the issue for me. |
Thanks for the test guys. 🍻 |
@joaomoreno is this bug fixed in 1.16.1? I have such issue on linux with vscode 1.16.1. Error:
|
@SkeLLLa This fix will be in the upcoming 1.7 release. |
When I attempt to open the extensions pane, I get:
ERROR connect ENOENT /var/folders/g2/6zvms_f57kv7rxcsm7_4pzdm0000gq/C/Code-1.14.0-shared.sock
This used to work but as I have taken several VSCode updates recently, I am not sure when it stopped working.
NOTE: Use Help > Report Issues to prefill below does not work either. I get the same error.
VSCode version = 1.14.0
Steps to Reproduce:
Reproduces without extensions: Well this question is not applicable in this case.
The text was updated successfully, but these errors were encountered: