-
Notifications
You must be signed in to change notification settings - Fork 80
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
Issue with PATH when opening code from this shortcut #30
Comments
does |
Yes, it does run in bash. |
do you still have this problem? are you using the deb, flatpak or snap package? |
How curious, is Nautilus installed as a deb package or a flatpak package? |
Yes, I still have the problem. I just avoid using the nautilus shortcut for haskell coding. This a debian system, I have no flatpak packages installed.
|
hmm.. could you try one thing for me, if you haven't tried it already? use the full path of the your VS Code binary in the extension's py file? update line 13 in # replace
VSCODE = 'code'
# with
VSCODE = '/usr/bin/code'
# or
VSCODE='/usr/share/code/bin/code'
VSCODE='/var/lib/snapd/snap/bin/code'
VSCODE='/snap/bin/code'
VSCODE='/var/lib/flatpak/exports/bin/com.visualstudio.code'
# or whatever your location is |
Okay, so I recreated the issue, and might have a temporary fix. You can probably ignore my previous message. That does not work. So I installed I installed VS Code using the official deb package. VS Code Insiders using a snap package from snapstore. And, VSCodium using a flatpak. Then I installed the Haskell plugin on all three. Here's what I found.
PS: I am not a Haskell developer, so I don't know if this works for all use cases. It is just something I found. Edit: I don't know why this is happening, i.e. why |
Thanks for looking into this and reproducing the issue ! That was also my fix at the time, but that also breaks using ghcup with dev containers, because in a container it gets installed in a different folder. Since I use dev containers from time to time that is not a very confortable solution. But did you manage to understand what causes the issue ? |
Aah I see. Makes sense. Have you tried using tailored vs-code settings per project? Located in a {
"haskell.manageHLS": "GHCup",
"haskell.ghcupExecutablePath": "/path-to-container-ghcup-exec"
} I don't know how it works with dev containers. I don't usually use those, ssh remote dev worked in my case though.
I haven't tried to work on it yet. But I will keep you posted. |
ah, right, I could do it that way too. |
Whats the Also maybe VSCode or Nautilus .dekstop files set something extra so post those as well. |
Yeah, so you are right, something changes in the
The default . I am pretty sure the culprit here is Nautilus. While I can't find Naultilus'
|
Okay, found Exec=nautilus --new-window %U So I'm not sure what's causing the issue |
weirdly, i just upgraded my fedora 38 beta to release.. and everything is working just fine.. using the nautilus plugin to launch VSCode finds |
If I open vscode via this shortcut, the Haskell language package cannot find the executable ghcup, although it is in the PATH. If If I open vscode normally (via gnome manager) then it finds the program. I'm using debian, where the default system shell is "dash". If I run dash and enter "ghcup" it does find the program.
The text was updated successfully, but these errors were encountered: