Root markers are not being used to set the rootPath
#9600
Unanswered
mydumpfire
asked this question in
Troubleshooting
Replies: 1 comment 4 replies
-
this is intentional we have a ceiling directory for the root search and that will be the workspace root which is .helix/.git if they exist or PWD otherwise. |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Summary
Workspace roots are always set based on
.git
and.helix
markers, while root markers set in yourlanguages.toml
are completely ignored.For example, in Rust the following
roots
are set:helix/languages.toml
Lines 186 to 191 in d570c29
But if you don't have any
.git
or.helix
directories, the workspace root is always set to your current$PWD
.This is not a problem for languages like rust and others, but some LSPs like
typescript-language-server
will not work correctly if the root path is not set precisely.Reproduction Steps
I tried this:
I expected this to happen:
Instead, this happened:
Helix log
~/.cache/helix/helix.log
Platform
Linux
Terminal Emulator
kitty 0.31.0
Installation Method
flake
Helix Version
23.10-275-gd570c29c
Beta Was this translation helpful? Give feedback.
All reactions