Skip to content

Neovim LSP seems broken ? #51

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

Closed
kinooyume opened this issue Aug 19, 2021 · 1 comment
Closed

Neovim LSP seems broken ? #51

kinooyume opened this issue Aug 19, 2021 · 1 comment

Comments

@kinooyume
Copy link

kinooyume commented Aug 19, 2021

Hey, I use this plugin with native LSP on neovim. It used to work fine, when I open a project, it ask me if I want to compile stuff, I enter 1 and here we go ! It compile at each save. But since 2/3 days, probably after an update or something, it doesn't work anymore.

:LspInfo:

Configured servers: lua, typescript, go, json, css, svelte, efm, vue, rescriptls
Neovim logs at: /home/equinox/.cache/nvim/lsp.log

2 client(s) attached to this buffer: efm, rescriptls

  Client: efm (id: 1 pid: 7655)
  	root:      /home/equinox/Programming/opo/pupil/pupil-core
  	filetypes: 
  	cmd:       /home/equinox/.local/share/nvim/lspinstall/efm/./efm-langserver
  	autostart: True

  Client: rescriptls (id: 2 pid: 7656)
  	root:      /home/equinox/Programming/opo/pupil/pupil-core
  	filetypes: rescript
  	cmd:       node /home/equinox/.local/share/nvim/site/pack/paqs/start/vim-rescript/server/out/server.js --stdio
  	autostart: True

2 active client(s): 

  Client: efm (id: 1 pid: 7655)
  	root:      /home/equinox/Programming/opo/pupil/pupil-core
  	filetypes: 
  	cmd:       /home/equinox/.local/share/nvim/lspinstall/efm/./efm-langserver
  	autostart: True

  Client: rescriptls (id: 2 pid: 7656)
  	root:      /home/equinox/Programming/opo/pupil/pupil-core
  	filetypes: rescript
  	cmd:       node /home/equinox/.local/share/nvim/site/pack/paqs/start/vim-rescript/server/out/server.js --stdio
  	autostart: True

Clients that match the filetype rescript:

Config: efm
	filetype: No filetypes defined, please define filetypes in setup().
  
  Config: rescriptls
  	cmd:               node /home/equinox/.local/share/nvim/site/pack/paqs/start/vim-rescript/server/out/server.js --stdio
  	cmd is executable: True
  	identified root:   /home/equinox/Programming/opo/pupil/pupil-core
  	autostart:         True
  	custom handlers:   
❯ nvim -v
NVIM v0.5.0
Build type: Release
LuaJIT 2.0.5
Compilation: /usr/bin/cc -D_FORTIFY_SOURCE=2 -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1 -DNVIM_TS_HAS_SET_MATCH_LIMIT -O2 -DNDEBUG -Wall -Wextra -pedantic -Wno-unused-parameter -Wstrict-prototypes -std=gnu99 -Wshadow -Wconversion -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/build/neovim/src/neovim-0.5.0/build/config -I/build/neovim/src/neovim-0.5.0/src -I/usr/include -I/build/neovim/src/neovim-0.5.0/build/src/nvim/auto -I/build/neovim/src/neovim-0.5.0/build/include
Compiled by builduser

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

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

Run :checkhealth for more info

LSP config:

local capabilities = vim.lsp.protocol.make_client_capabilities()
capabilities.textDocument.completion.completionItem.snippetSupport = true
capabilities.textDocument.completion.completionItem.resolveSupport = {
  properties = {
    'documentation',
    'detail',
    'additionalTextEdits',
  }
}

lspconfig.rescriptls.setup{
  capabilities = capabilities,
    cmd = {'node', '/home/equinox/.local/share/nvim/site/pack/paqs/start/vim-rescript/server/out/server.js' ,'--stdio'},
   on_attach = function()
        lsp_signature.on_attach()
    end
}

@kinooyume
Copy link
Author

It work today.. not sure why.. ^^'

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

1 participant