-
-
Notifications
You must be signed in to change notification settings - Fork 910
Logic for lsp-server-install-dir is incorrect #4758
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
Comments
That |
Yup, but the default is wrong. And other paths built with |
I think changing the default would disrupt everyone existing configuration and should be avoided. |
Fair point about backwards compatibility. Though I think you will have to change the path sooner or later anyways. The double dots in the path suggests that the original intent of the code perhaps was to install to |
I don't see any issue in having recursive dotted directories since .cache is supposed to be a hidden directory inside your emacs directory. I don't think the original intent was to install to .cache/lsp but to .emacs.d/.cache/lsp instead and that's perfectly fine for me. |
Thank you for the bug report
lsp-mode
related packages.M-x lsp-start-plain
Bug description
This code:
My path to init.el is
~/.config/emacs/init.el
so the installation directory will be set to~/.config/emacs/.cache/lsp/
. I suggest thatuser-emacs-directory
should be used instead. There is no need for the ".cache" prefix since the directory is located inside the emacs config hierarchy.Steps to reproduce
LSP server install with no
~/.emacs
file.Expected behavior
The install directory should make more sense (e.g., not contain two dots)
Which Language Server did you use?
TypeScript
OS
Linux
Error callstack
Anything else?
No response
The text was updated successfully, but these errors were encountered: