You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
## versions
vim version: NVIM v0.4.4
node version: v14.15.4
coc.nvim version: 0.0.80-50544406f0
coc.nvim directory: C:\Neovim\config\nvim\plugged\coc.nvim
term: undefined
platform: win32
## Log of coc.nvim
2021-01-31T15:54:27.641 INFO (pid:24080) [services] - registered service "languageserver.ghdlLS"
2021-01-31T15:54:27.883 INFO (pid:24080) [plugin] - coc.nvim 0.0.80-50544406f0 initialized with node: v14.15.4 after 308ms
2021-01-31T15:54:30.772 INFO (pid:24080) [attach] - receive notification: showInfo []
Describe the bug
I defined a LSP entry in the coc-settings.json file, this involve running the ghdl-ls executable when analyzing VHDL files.
When one of those VHDL files is opened, coc.nvim detect it and start the ghdl-ls LSP Server, but an error is generated, the following:
Cannot read property 'capabilities' of null
I'm using other VHDL LSP Servers with success, which are currently disabled, but this issue only occurs when using ghdl-ls.
Reproduce the bug
Create file mini.vim with:
" -----------------------------" Paths" -----------------------------lets:ghdl_p='C:\GHDL\bin'lets:ghdl_ls_p='C:\Users\pcuser\.local\bin'if (has('win32') ||has('win64'))
if!executable('ghdl')
if (isdirectory(s:ghdl_p))
let$PATH.=';' . s:ghdl_pendifendifif!executable('ghdl-ls')
if (isdirectory(s:ghdl_ls_p))
let$PATH.=';' . s:ghdl_ls_pendifendifendif" -----------------------------setnocompatiblesetruntimepath^=C:\Neovim\config\nvim\plugged\coc.nvim
filetypepluginindentonsyntaxonsethidden
It occurs when I load the file added to the LSP config project, or any file of the VHDL type.
Coc.nvim returns:
[coc.nvim] Caught exception while handling initialize, see VHDL language server output for details.
[coc.nvim] Cannot read property 'capabilities' of null
[coc.nvim] Server languageserver.ghdlLS failed to start: TypeError: Cannot read property 'capabilities' of null
CocCommand workspace.showOutput shows an empty buffer.
The text was updated successfully, but these errors were encountered:
Result from CocInfo
Describe the bug
I defined a LSP entry in the coc-settings.json file, this involve running the ghdl-ls executable when analyzing VHDL files.
When one of those VHDL files is opened, coc.nvim detect it and start the ghdl-ls LSP Server, but an error is generated, the following:
Cannot read property 'capabilities' of null
I'm using other VHDL LSP Servers with success, which are currently disabled, but this issue only occurs when using ghdl-ls.
Reproduce the bug
mini.vim
with:Start (neo)vim with command:
vim -u mini.vim
Operate vim.
My
coc-settings.json
:LSP server config file
hdl-prj.json
:hdl-prj.json
path:set pwd? result in Neovim:
ghdl-ls manual execution test in Neovim:
The Issue
It occurs when I load the file added to the LSP config project, or any file of the VHDL type.
Coc.nvim returns:
CocCommand workspace.showOutput
shows an empty buffer.The text was updated successfully, but these errors were encountered: