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
You may also try reproduce the issue using clean environment using the following command: M-x lsp-start-plain
Bug description
With lsp-clients-typescript-prefer-use-project-ts-server set to the default value of nil, lsp-typescript fails to resolve the path to tsserver correctly on NixOS. lsp-typescript then falls back to the tsserver configured by the project.
Logs:
[lspserver] Typescript specified through user setting ignored due to invalid path "/nix/store/z1a0wb285s8vcphf9g7z52vb4xfwsfp5-typescript-5.5.4/bin"
Writing that sort of config is something that I've been putting off that would probably save me a ton of headache. Currently, I'm just dumping my language tooling to my user's path.
Despite that, it does seem like lsp-mode is trying to resolve the path, just failing at doing so correctly. Therefore, I'm not sure if this issue is invalid - it seems like this should work even if the program is in the user's path.
Thank you for the bug report
lsp-mode
related packages.M-x lsp-start-plain
Bug description
With
lsp-clients-typescript-prefer-use-project-ts-server
set to the default value ofnil
, lsp-typescript fails to resolve the path totsserver
correctly on NixOS. lsp-typescript then falls back to thetsserver
configured by the project.Logs:
Output of
realpath $(which tsserver)
:Steps to reproduce
Open a TypeScript project with
lsp-clients-typescript-prefer-use-project-ts-server
set to the default value ofnil
andtsserver
in path on NixOS.Expected behavior
Path to the globally installed tsserver is resolved correctly
Which Language Server did you use?
typescript-language-server
OS
Linux
Error callstack
No response
Anything else?
No response
The text was updated successfully, but these errors were encountered: