You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm reading cross-term's example interactive-demo. And I open the source file with helix (master version), and get a single error from rust-analyzer file not included in module tree on the first line.
git clone https://github.com/crossterm-rs/crossterm.git
cd examples/interactive-demo
hx src/main.rs
Hover doc, autocompletion and goto-definition are not working. But you can see they work in neovim (under examples/interactive-demo too):
helix-nvim.mp4
The text was updated successfully, but these errors were encountered:
This is the expected behavior of the current workspace detection - the crossterm repo's root is the highest directory in the git repository that has a root marker (Cargo.toml). Rust-analyzer thinks that the module isn't included because it isn't included in crossterm (which is correct) rather than the interactive-demo project. Also see #3993, #2732, #2970
zjp-CN
added a commit
to zjp-CN/helix
that referenced
this issue
Oct 19, 2022
yeah that's fixed by that PR specifying editor.workspace-lsp-roots = ["examples/interactive-demo"] in a .helix/config.toml file inside the crossterm repo works. There is no situation to autodetect stuff like this and exactly why we ended up with the implementation in #5748
I'm reading cross-term's example interactive-demo. And I open the source file with helix (master version), and get a single error from rust-analyzer
file not included in module tree
on the first line.git clone https://github.com/crossterm-rs/crossterm.git cd examples/interactive-demo hx src/main.rs
Hover doc, autocompletion and goto-definition are not working. But you can see they work in neovim (under
examples/interactive-demo
too):helix-nvim.mp4
The text was updated successfully, but these errors were encountered: