autocomplete for rust dont work
Check for existing issues
- [x] Completed
Describe the bug / provide steps to reproduce it
when i open zed and i start typing,the intellisense window dont shows up! i dont know why
Environment
Zed: v0.109.3 (stable) OS: macOS 13.5.2 Memory: 8 GiB Architecture: x86_64
If applicable, add mockups / screenshots to help explain present your vision of the feature
No response
If applicable, attach your ~/Library/Logs/Zed/Zed.log file to this issue.
If you only need the most recent lines, you can run the zed: open log command palette action to see the last 1000.
No response
Hey @Iovans, are you working inside of a rust project or are you trying to edit a standalone rust file? I don't believe the latter is supported by rust-analyzer. If you are working in a project, there might be some issue with the language server not installing. Can you check inside of:
~/Library/Application\ Support/Zed/languages/
and see if you see a directory for rust-analyzer? If you have it, try deleting that directory, exiting Zed, and reopening your project in Zed, to see if it attempts to download again.
im trying to edit just a standalone rust file,let me check the directory
i deleted the directory but nothing changed unfortunately,it keeps not shows
Ah yeah, even though rust-analyzer supports completions on standalone files (outside of projects), Zed doesn't support it yet. Do you get completions for rust projects (opening Zed on directories generated by cargo new <project_name>)?
I dont know, i will try later this evening and i will let you know thank you for the help
I tried but still dont work
@JosephTLyons Same problem here. No intellisense completions on a rust project that's nested into a folder with dependent apps. My use case is simple: I have a couple apps I plan to deploy using docker compose. I tried deleting the language server and saw it re-download. To no avail.
@Standaa, I know its not what you want for you workflow, but does the Rust language server at least work for you if you open the rust projects directly as the root directory?
@Standaa, I know its not what you want for you workflow, but does the Rust language server at least work for you if you open the rust projects directly as the root directory?
Will check and report this weekend
Hey @Iovans, I think this is duplicate of:
- https://github.com/zed-industries/zed/issues/5159
Feel free to upvote that issue with a 👍. If you are having issues with the rust-analyzer working in a normal project, open another issue.
Dont worry It works fine now,thank you