Skip to content
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

Binary named 'nim' not found in PATH environment variable, even when nim exists in PATH #35

Closed
MKuranowski opened this issue Jan 26, 2024 · 1 comment · Fixed by #86
Closed

Comments

@MKuranowski
Copy link

MKuranowski commented Jan 26, 2024

This extension suffers from the same problem as saem/vscode-nim#136.

I have nim and nimlangserver downloaded and placed somewhere in ~/Documents. Symlinks to those executables are then placed in ~/.local/share/bin, which exists in PATH.

/home/mikolaj/.local/share/bin/ is added to the path in $HOME/.zshrc; which would normally not be visible to programs launched from a DE. However, VS Code sources .zshrc so this should not be a problem. Other extensions happily work which this configuration - my .zshrc also sets GOPATH, which is automatically picked up by the official Go extension.

Some part of this extension must incorrectly inherit the environment from VS Code.

@MKuranowski MKuranowski changed the title Binary named 'nim' not found in PATH environment variable, even when nim exists in PATH # Binary named 'nim' not found in PATH environment variable, even when nim exists in PATH Jan 26, 2024
@RokkuCode
Copy link

vscode tries to source the zshrc, but you shoul have a look at vscode.process in developer tools, to verify that the PATH var is correctly loaded. if not then there is a problem with vscode. do you have the same problem if you start code from a terminal with code .?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants