Skip to content
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

Don't seem to be find the lsp-ltex direction #15

Open
rwilson-lib opened this issue Jan 18, 2022 · 6 comments
Open

Don't seem to be find the lsp-ltex direction #15

rwilson-lib opened this issue Jan 18, 2022 · 6 comments

Comments

@rwilson-lib
Copy link

lsp-ltex keep prompting me to install the language server after installing it.  

follow the instruction and downloaded the server and extract it to "~/.emacs.d/.cache/lsp/ltex-ls/ltex-ls-15.2.0"
and yet the package can't seem to find the language server

Emacs version: GNU Emacs 28.0.90 (build 1, x86_64-apple-darwin19.6.0, NS appkit-1894.60 Version 10.15.7 (Build 19H1519)) of 2021-12-13
lsp-ltex version: 20211024.809

Screen Shot 2022-01-18 at 7 04 10 PM

Screen Shot 2022-01-18 at 7 06 59 PM

@oyren
Copy link

oyren commented Feb 5, 2022

What should help is to rename the ltex-ls-15.2.0 folder to latest.

Also my path is a bit different: ~/.emacs.d/.local/etc/.cache/lsp/ltex-ls/

@rwilson-lib
Copy link
Author

Thanks the comment above work for me

@PMuril
Copy link

PMuril commented May 7, 2022

I am struggling with a a similar problem.
I have followed the installation instructions for the server and unzipped it under my Emacs config path: ~/.config/emacs/.cache/lsp/ltex-ls/ltex-ls-15.2.0 yet every time that I open a text file I get the warning that no language server compatible with the language is installed.
I tried the following things without success:

  1. Install lsp-ltex via lsp-install-server but the whole application crashes.
  2. lsp-ltex-upgrade-ls, but it fails because unable to unzip the .tat.gz file.
  3. Target another ltex-ls location by updating the value of lsp-ltex-server-store-path.

Emacs Version: GNU Emacs 27.2
lsp-ltex version 20220222.656

@jcs090218
Copy link
Member

This should fix in #20.

@PMuril
Copy link

PMuril commented May 8, 2022

Thank you for the fix and the quick reply.
Should the fix reflect in the behavior of lsp-install-server or lsp-ltex-upgrade-ls?
I've tried both, but the former fails because unable to unzip the tar.gz file, while the latter complains the version must be a string. This is strange as I explicitly specify the version number in the init section of use-package as suggested in the README.
I've also tried to unpack ltex-lsp right lsp-ltex-server-store-path, but nothing seems to have changed.

@jcs090218
Copy link
Member

The fix reflect to the function lsp-ltex-install-ls. Functions lsp-install-server and lsp-ltex-uprade-ls share the same entry.

The server binaries should stored in ~\.emacs.d\.cache\lsp\ltex-ls\latest\. What the installation really does is to extract zip file to ~\.emacs.d\.cache\lsp\ltex-ls\ and rename it to latest.

I have added the activate test and it seems to be working on all platforms! 😕

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants