-
Notifications
You must be signed in to change notification settings - Fork 11
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
gluon.language-server.path should search in ~/.cargo.bin/ by default #20
Comments
Is it common to not have |
I'm running on macOS, so GUI apps like VSCode don't inherit environment variables defined in my shell profile (as they're not children of the shell). And of course There is an undocumented way of modifying the tl;dr: on macOS, GUI apps will always have a |
I'm on Ubuntu 18.04LTS, and today I found out that the language server failed to start with the path set to |
When looking for
gluon_language-server
using thegluon.language-server.path
variable, the extension should add~/.cargo/bin/
to$PATH
prior to searching for the command. This way no configuration will be necessary for anyone who runscargo install gluon_language-server
.If you want to be smarter, you could reproduce Cargo's logic for determining where to install (
$CARGO_INSTALL_ROOT
, followed by theinstall.root
cargo key, then$CARGO_HOME
, and then finally$HOME/.cargo
), but the simplistic approach of just adding~/.cargo/bin
would cover the default un-customized case (which is probably most people).The text was updated successfully, but these errors were encountered: