Skip to content

vscode rust-analyzer + remote ssh extension cause internal error: entered unreachable code #11221

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

Closed
httaotao opened this issue Jan 7, 2022 · 6 comments

Comments

@httaotao
Copy link

httaotao commented Jan 7, 2022

when I use vscode extensions and install rust-analyzer and remote-ssh , it shows the error. I guess the extension could not use with remote-ssh extension. thanks

rust-analyzer version: (eg. output of "Rust Analyzer: Show RA Version" command)
all 0.2.x and 0.3.x preleease versions have these debug

rustc version: (eg. output of rustc -V)
rustc 1.58.0-nightly (baba6687d 2021-11-03)

@jhgg
Copy link
Contributor

jhgg commented Jan 7, 2022

there is something else afoot here - i exclusively use r-a in vscode remote ssh and it is fine. we'll need more details to help diagnose.

@lnicola
Copy link
Member

lnicola commented Jan 7, 2022

Can you post the whole error? The one saying "unreachable code".

@httaotao
Copy link
Author

httaotao commented Jan 7, 2022

it shows the macro-error , if the code with #[async_trait] , it shows this error

@httaotao
Copy link
Author

httaotao commented Jan 7, 2022

Can you post the whole error? The one saying "unreachable code".

where can i find the error ? I am not sure ,thanks.

@lnicola
Copy link
Member

lnicola commented Jan 7, 2022

If only async_trait has issues and the rest of the features work, it's related to proc macros. Maybe try upgrading to a different nightly: #10837 (comment).

@httaotao
Copy link
Author

httaotao commented Jan 7, 2022

If only async_trait has issues and the rest of the features work, it's related to proc macros. Maybe try upgrading to a different nightly: #10837 (comment).

Good jobs, it works. thanks

@httaotao httaotao closed this as completed Jan 7, 2022
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

3 participants