Closed sheldonldev closed 3 years ago
it looked like cssls was not installed. if installed, when checkhealth
it would be shown in health#lspconfig#check
section
did you verify it in ~/.cache/nvim/lspconfig/cssls
?
yes, I'm sure
~/.cache/nvim/lspconfig/cssls ls -l total 8 drwxr-xr-x 13 sheldonl staff 416 Dec 11 16:37 node_modules -rw-r--r-- 1 sheldonl staff 219 Dec 11 16:37 package.json
and run :LspInstallInfo {}
I don't know if this problem is the same as yours. I upgraded nodejs version 14 to 15 on windows and get {} message. I rolling back to nodejs 14 and its working fine.
yes, I think I'v set everything like the documentation.
Well, maybe it's the node version, because I use version 15 right now. I will try to roll back later. Thank you @benawas
@sheldonldev Did you try rolling back node? Is this still an issue?
@mjlbach not yet, I'll try it this Sunday or Monday
This time I uninstall my node 15.4, it seems no problem.
run checkhealth:
health#lspconfig#check
========================================================================
## Checking language server protocol configuration
- INFO: tsserver: configuration checked.
- INFO: cssls: configuration checked.
health#completion_nvim#check
========================================================================
## general
- OK: neovim version is supported
## completion source
- OK: all completion source are valid
## snippet source
- INFO: You haven't setup any snippet source.
## Node.js provider (optional)
- WARNING: `node` and `npm` (or `yarn`) must be in $PATH.
- ADVICE:
- Install Node.js and verify that `node` and `npm` (or `yarn`) commands work.
run LspInstallInfo
:
{
cssls = {
bin_dir = "/Users/sheldonl/.cache/nvim/lspconfig/cssls/node_modules/.bin",
binaries = {
["css-languageserver"] = "/Users/sheldonl/.cache/nvim/lspconfig/cssls/node_modules/.bin/css-languageserver"
},
install_dir = "/Users/sheldonl/.cache/nvim/lspconfig/cssls",
is_installed = true
},
tsserver = {
bin_dir = "/Users/sheldonl/.cache/nvim/lspconfig/tsserver/node_modules/.bin",
binaries = {
["typescript-language-server"] = "/Users/sheldonl/.cache/nvim/lspconfig/tsserver/node_modules/.bin/typescript-language-server"
},
install_dir = "/Users/sheldonl/.cache/nvim/lspconfig/tsserver",
is_installed = true
}
}
It seems like a lot of language servers are affected negatively by node 15. Is your issue resolved by reverting back then, and can we close?
I'm now using node 14 with nvm. It seems OK now. Sure we can close it. Thank you.
Thank you! If you can isolate the issue to something in particular one of the configuration scripts is doing, file another issue. Otherwise if this is an upstream issue it should be reported to the respective language server.
Alright. Thank you!
nvim --version
: 0.5.0 nightly:checkhealth
resulthealth#defx#check
defx.nvim
health#lspconfig#check
Checking language server protocol configuration
health#completion_nvim#check
general
completion source
snippet source
health#deoplete#check
deoplete.nvim
health#nvim#check
Configuration
Performance
Remote Plugins
terminal
health#provider#check
Clipboard (optional)
Python 2 provider (optional)
Python 3 provider (optional)
g:python3_host_prog
is not set. Searching for python3 in the environment.g:python3_host_prog
to avoid surprises.Python virtualenv
Ruby provider (optional)
neovim-ruby-host
not found.gem install neovim
to ensure the neovim RubyGem is installed.gem environment
to ensure the gem bin directory is in $PATH.Node.js provider (optional)
Perl provider (optional)
What language server(If the problem is related to a specific language server): tsserver, cssls
Operating system/version: macOS catalina 10.15.7
Terminal name/version: iTerm2
$TERM
: zshHow to reproduce the problem from neovim startup
run
:LspInstall cssls
oryarn global add cssls
call:LspInstallInfo
It shows: { cssls = { bin_dir = "/Users/sheldonl/.cache/nvim/lspconfig/cssls/node_modules/.bin", binaries = { ["css-languageserver"] = "/Users/sheldonl/.cache/nvim/lspconfig/cssls/node_modules/.bin/css-languageserver" }, install_dir = "/Users/sheldonl/.cache/nvim/lspconfig/cssls", is_installed = true } }Actual behaviour
But, when I leave and restart nvim, run
:LspInstallInfo
, it returns {}, And, no lint, no completion is availableExpected behaviour
When I leave and restart nvim, run
:LspInstallInfo
, it should returns { cssls = { bin_dir = "/Users/sheldonl/.cache/nvim/lspconfig/cssls/node_modules/.bin", binaries = { ["css-languageserver"] = "/Users/sheldonl/.cache/nvim/lspconfig/cssls/node_modules/.bin/css-languageserver" }, install_dir = "/Users/sheldonl/.cache/nvim/lspconfig/cssls", is_installed = true } } either. And , lint and completion should available