Closed Karthik-Dulam closed 2 years ago
I tried with nvim-cmp this time. Still unsuccessful.
[ERROR][2022-06-30 21:59:06] .../vim/lsp/rpc.lua:420 "rpc" "ncat" "stderr" "Ncat: Connection refused.\n"
Apparently in newer versions the LSP server port is 6005 by default.
@Karthik-Dulam can you add that to the README and create a pull request?
@cprn I need confirmation that this is the case. Need to be sure that it wasn't me who changed the port and forgot about it. Are you sure that the default port in Godot 4 is 6005 instead of 6008?
@Karthik-Dulam
Honestly, no, not at all. I think at some point I must have changed it to a different port as well and coincidentally to the exact same value as you did (i.e. 6005) - the default value still seems to be 6008
because this comment is from 3 days ago:
https://github.com/neoclide/coc.nvim/issues/3910#issuecomment-1173259099
[edit] I created a new system user and installed Godot there, the Remote port
value is 6008
by default. Maybe it's worth mentioning in the README that the host and port can be changed in Editor Settings > General > Network > Language Server
so that people having issues would look there?
Currently I'm using a version of Godot compiled by me today (June 30th 2022) (v4.0.alpha.custom_build [fd3970f76]). I have also tried Godot 4. LSP does not work with coc.
[coc.nvim] Server languageserver.godot failed to start: Error: Connection error for languag eserver.godot: connect ECONNREFUSED 127.0.0.1:6008
I used the same configuration as recommended as here for Godot for 3.2.2+ since I am using coc.