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

rust-analyzer cannot find workspace #2724

Closed
LollipopFt opened this issue Jun 9, 2022 · 3 comments
Closed

rust-analyzer cannot find workspace #2724

LollipopFt opened this issue Jun 9, 2022 · 3 comments

Comments

@LollipopFt
Copy link
Contributor

this is helix.log:

2022-06-09T19:18:55.407 helix_lsp::transport [ERROR] err <- "[ERROR rust_analyzer] failed to find any projects in [AbsPathBuf(\"C:\\\\Users\\\\lollipopft\")]\n"
2022-06-09T19:18:55.408 helix_lsp::transport [ERROR] err <- "[ERROR rust_analyzer::lsp_utils] rust-analyzer failed to discover workspace\n"
2022-06-09T19:18:55.409 helix_term::application [WARN] unhandled window/showMessage: ShowMessageParams { typ: Error, message: "rust-analyzer failed to discover workspace" }
2022-06-09T19:19:16.155 helix_lsp::transport [ERROR] err: <- StreamClosed
2022-06-09T19:19:16.155 helix_lsp::transport [ERROR] err: <- StreamClosed

my cargo project is in C:\Users\lollipopft\rust\projects\..., so i open helix from home (C:\Users\lollipopft\) then use :o ... to go to my project. However, this does not allow rust-analyzer to detect the workspace. I have to cd to my cargo project for rust-analyzer to find it. could this be fixed by including an open folder function instead of just opening files with :o? thank you!

@the-mikedavis
Copy link
Member

I think this is covered by #2617?

@sudormrfbin
Copy link
Member

There's also the in-editor :cd command to change directory.

@LollipopFt
Copy link
Contributor Author

You're right, didn't notice it. Thank you guys!

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