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

VSCode plugin doesn't find rust-analyzer on path? #4262

Closed
btrepp opened this issue May 2, 2020 · 1 comment
Closed

VSCode plugin doesn't find rust-analyzer on path? #4262

btrepp opened this issue May 2, 2020 · 1 comment

Comments

@btrepp
Copy link

btrepp commented May 2, 2020

Hi All,

Using an arm based laptop (no native binary, and the headmelted code-oss version of vscode), the plugin installs and then suggests I compile from source.

Running the task to install the server succeeds, and it is on the path for the machine.

However, that doesn't seem to change the behaviour of the plugin, it always complains it's an unsupported platform. It implies that having the server installed should fix it, but it still complains?.

Do we need to also install the plugin from source too?. If so, might be worth updating the docs, if not, is there anyway of configuring the plugin to tell it where rust-analyzer is?. It's in the cargo bin folder, but if it's confused and I can tell it what to do that would at least get it working :)

Thanks,
Beau

@btrepp
Copy link
Author

btrepp commented May 2, 2020

Almost instantly after posting I found the setting

{ "rust-analyzer.serverPath": "~/.cargo/bin/rust-analyzer" }
Which when set kicks it all off. Hopefully that helps someone else.

@btrepp btrepp closed this as completed May 2, 2020
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

No branches or pull requests

1 participant