-
Notifications
You must be signed in to change notification settings - Fork 29.8k
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
PATH not set correctly when using macos with zsh shell and oh-my-zsh #107169
Comments
There is something in your
Also: if you simply open a command line and close it, would opening VS Code from finder work? |
I'm having the same issue. One of my extensions fails to run a task:
But if start VSCode using Also, it helps to run Started to happen after
I'm using macOS Mojave 10.14.6, zsh 5.3 (x86_64-apple-darwin18.0), vscode 1.49.2 (e5e9e69) Update: |
I also started having this problem out of nowhere today. Starting via terminal solves, but it would be nice to be able to launch VSCode through launcher. |
Would like to bisect a potential candidate for this issue, can you all download the following two versions of code insiders and verify which one repros the issue. Thanks! make sure to have the following setting
|
@deepak1556 Details
and it also works fine now. |
Just updated to Version: 1.50.0 (93c2f0f, 2020-10-07T06:00:00.397Z) Can confirm it has fixed this issue for me as well 🙂 UPDATE: Just rebooted after installing Version: 1.50.1 (d2e414d, 2020-10-13T14:53:05.704Z) and the problem has returned. @deepak1556 I tried both of the insiders builds you linked to and they both work as expected. However, restarting my installed version of VSCode then also works correctly after running the insiders builds. I ran 4ccab0d first. Next time I reboot i'll try and remember and run the other build first and let you know if there is any difference. |
I am also at VSCode version 1.50.1 and having the same issue. Although, when I launch VSCode from the command line everything works just fine. |
Still happens to me with 1.50.1, build |
Just updated to Version: 1.51.1 (e5a624b, 2020-11-11T01:11:34.018Z) and the issue is still here. @deepak1556 I have now rebooted and loaded the insider build f44d46d first and can confirm that this also resolves the issue. |
@despian can you confirm if it is fixed with stable |
8 days is no recent activity? Kay. @deepak1556 For me it is correctly working now in version 1.51.1 (e5a624b) |
Consider that some extensions like |
Issue Type: Bug
If I launch vscode from finder or the dock it always loads the incorrect path:
If I launch it from the command line it loads the correct path:
Strangely, if I close the app after launching from the command line and re-launch it via finder or the dock it will now load the correct path (until the next reboot).
I'm using zsh and oh-my-zsh. Many other users using this tool have reported the same issue:
#83155
#104029
dotnet/vscode-csharp#4037
"terminal.integrated.inheritEnv": true
is already set but the problem persists.I had been using oh-my-zsh for years and not seen this issue. It seems maybe it started after a recent macos update.
VS Code version: Code 1.49.1 (58bb7b2, 2020-09-16T23:21:17.533Z)
OS version: Darwin x64 19.6.0
System Info
flash_3d: enabled
flash_stage3d: enabled
flash_stage3d_baseline: enabled
gpu_compositing: enabled
metal: disabled_off
multiple_raster_threads: enabled_on
oop_rasterization: enabled
opengl: enabled_on
protected_video_decode: unavailable_off
rasterization: enabled
skia_renderer: disabled_off_ok
video_decode: enabled
webgl: enabled
webgl2: enabled
Extensions (25)
The text was updated successfully, but these errors were encountered: