-
Notifications
You must be signed in to change notification settings - Fork 459
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
[LSP] Format request failed, no matching language servers. #306
Comments
What filetype are u editting? Does it have a corresponding lsp? |
I just edit shell files and html files with .html and .sh extension files . |
So |
Nvim 0.8.0 looks fine. |
so so so strange 。。。 |
What kind of sh file are u editing? |
XXX.sh |
and 1.html |
Can close and re-open the same file |
I believe it's an upstream issue, maybe we need to wait for bash-lsp or related plugins to update. |
@nevertoday so did u have the similar error like mine in the sceenshot? |
Spawning language server with cmd: |
Have you tried |
For html files, you have to install the lsp manually. nvimdots/lua/modules/completion/lsp.lua Line 66 in 61fe5b7
nvimdots/lua/modules/completion/lsp.lua Lines 212 to 224 in 61fe5b7
Html lsp are not install automatically, install it via: npm i -g vscode-langservers-extracted ref: https://github.com/hrsh7th/vscode-langservers-extracted |
Also u might need to change the html's config. Please take this as refernce. |
macos system version 13.0 |
Hmmm, weird... nvimdots/lua/modules/completion/lsp.lua Line 277 in 61fe5b7
Sorry i can't help u further... |
i can use = g to format all code |
xxx.sh file same error message |
Maybe wait for the repo author to help u |
@nevertoday Formatting support for After installing Detail: nvimdots/lua/modules/completion/lsp.lua Line 277 in 61fe5b7
nvimdots/lua/modules/completion/lsp.lua Line 281 in 61fe5b7
|
Looks like the problem has been resolved. Feel free to reopen it if you encounter other related issues 👍 |
u mean i should change lsp to Mason ?? |
Mason and lsp are not the same thing, please do some research first. |
The short answer is: Long answer: Does this sound a bit clearer? |
thanks all handsome and pretty I finally decide use lunarvim |
I really don't know how to fix this , too hard to get the right way . |
|
@nevertoday I once tried Lunarvim, but it also has it's own issue. One day u will still need to know how to fix bugs like this. |
brew install efm-langserver after install this, all things work fine. maybe this is the right answer. |
Seems like it's stated in the wiki
or
|
:MasonInstall efm failed : go failed with exit code - and signal -. go is not executable |
In mason.nvim's requirements
And efm-lsp is written in |
npm config set perfix ~/.local this works for me then markdown no error appear anymore . |
good, as u mentioned earlier. |
thank u so much , and I have many bulk edit skill need to learn. |
我反复安装多次了, 其他貌似都欧克, 但这个总提示, 也无法 在保存的时候,格式化代码, 请问 how to fixed this .
thks .
The text was updated successfully, but these errors were encountered: