CosmicNvim / CosmicNvim

CosmicNvim is a lightweight and opinionated Neovim config for web development, specifically designed to provide a 💫 COSMIC programming experience!

Home Page:https://cosmicnvim.vercel.app/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[LSP] Format request failed, no matching language servers.

josepot opened this issue · comments

Hi and thanks a lot for setting up this project!

I've followed all the instructions, I've also made sure that I have all the prerequisites:

  • nvim --version output:
NVIM v0.8.0-dev+595-g95c65a6b2
Build type: RelWithDebInfo
LuaJIT 2.1.0-beta3
Compilation: /usr/bin/cc -DNVIM_TS_HAS_SET_MATCH_LIMIT -DNVIM_TS_HAS_SET_ALLOCATOR -O2 -g -Og -g -Wall -Wextra -pedantic -Wno-unused-parameter -Wstrict-prototypes -std=gnu99 -Wshadow -Wconversion -Wdouble-promotion -Wmissing-noreturn -Wmissing-format-attribute -Wmissing-prototypes -Wimplicit-fallthrough -Wvla -fstack-protector-strong -fno-common -fdiagnostics-color=always -DINCLUDE_GENERATED_DECLARATIONS -D_GNU_SOURCE -DNVIM_MSGPACK_HAS_FLOAT32 -DNVIM_UNIBI_HAS_VAR_FROM -DMIN_LOG_LEVEL=3 -I/home/josep/neovim/build/cmake.config -I/home/josep/neovim/src -I/home/josep/neovim/.deps/usr/include -I/usr/include -I/home/josep/neovim/build/src/nvim/auto -I/home/josep/neovim/build/include
Compiled by josep@josep-thinkpad

Features: +acl +iconv +tui
See ":help feature-compile"

   system vimrc file: "$VIM/sysinit.vim"
  fall-back for $VIM: "/usr/local/share/nvim"

Run :checkhealth for more info
  • node --version output: v16.16.0
  • prettierd --version output: prettierd 0.21.1
  • eslint_d --version output: v8.19.0 (eslint_d v12.2.0)

Right after the install, everything looks great, but as soon as I try to edit and save a ts file, then I get the following error (in a very nice looking notification 🙂 ): [LSP] Format request failed, no matching language servers.

I ran:checkhealth and everything looks good, except -perhaps- for the last warning on the nvim-lsp-installer section:

nvim-lsp-installer: require("nvim-lsp-installer.health").check()
========================================================================
## nvim-lsp-installer report
  - OK: neovim version >= 0.7.0
  - WARNING: **Go**: not available
  - WARNING: **cargo**: not available
  - WARNING: **luarocks**: not available
  - WARNING: **Ruby**: not available
  - WARNING: **RubyGem**: not available
  - WARNING: **Composer**: not available
  - WARNING: **PHP**: not available
  - OK: **npm**: `8.11.0`
  - OK: **node**: `v16.16.0`
  - OK: **python3**: `Python 3.10.5`
  - WARNING: **pip3**: not available
  - WARNING: **javac**: not available
  - WARNING: **java**: not available
  - WARNING: **julia**: not available
  - OK: **wget**: `GNU Wget 1.21.3 built on linux-gnu.`
  - OK: **curl**: `curl 7.84.0 (x86_64-pc-linux-gnu) libcurl/7.84.0 OpenSSL/1.1.1p zlib/1.2.12 brotli/1.0.9 zstd/1.5.2 libidn2/2.3.2 libpsl/0.21.1 (+libidn2/2.3.0) libssh2/1.10.0 nghttp2/1.48.0`
  - OK: **gzip**: `gzip 1.12`
  - OK: **tar**: `tar (GNU tar) 1.34`
  - OK: **bash**: `GNU bash, version 5.1.16(1)-release (x86_64-pc-linux-gnu)`
  - OK: **sh**: `Ok`
  - OK: GitHub API rate limit. Used: 2. Remaining: 58. Limit: 60. Reset: Mon 11 Jul 2022 12:32:58 PM CEST.
  - WARNING: The following servers have not been enhanced by nvim-lsp-installer: 
    - html
    - rust_analyzer
    - tsserver
    - sumneko_lua
    - jsonls
    - pyright
    *Make sure you set up nvim-lsp-installer before you set up these servers.*

which seems strange b/c running :LspInstallInfo shows those installed servers (html, jsonls, pyright, rust_analyzer, sumneko_lua, tsserver) as green.

Any assistance would be greatly appreciated 🙏

After tweaking the config.lua file the error went away... Thanks!

After tweaking the config.lua file the error went away... Thanks!

I have the same issue, can you share your config.lua, please? Thanks!