saem / vscode-nim

Other
180 stars 23 forks source link

Server failed with nimsuggest process crashed #103

Open joetifa2003 opened 1 year ago

joetifa2003 commented 1 year ago

image LSP doesn't work at all

vscode Windows 11 (wsl ubuntu)

joetifa2003 commented 1 year ago

DBG Router: dispatching method=initialize id=0 DBG Initialize received...
DBG Router: sending response method=initialize id=0 DBG Router: dispatching method=initialized id=null DBG Client initialized.
DBG Requesting configuration from the client
DBG Router: dispatching method=textDocument/didOpen id=null DBG New document opened for URI: uri=file:///home/joetifa/projects/nim/wind-nim/src/compiler/compiler.nim DBG Router: dispatching method=textDocument/documentSymbol id=1 DBG Router: dispatching method=$/cancelRequest id=null DBG Cancelling: id=1 DBG Router: dispatching method=textDocument/documentSymbol id=2 DBG Received the following configuration configuration="[{\"project\":[],\"projectMapping\":{},\"test-project\":\"\",\"buildOnSave\":false,\"buildCommand\":\"c\",\"runOutputDirectory\":\"\",\"lintOnSave\":true,\"enableNimsuggest\":true,\"provider\":\"lsp\",\"useNimsuggestCheck\":false,\"logNimsuggest\":false,\"licenseString\":\"\",\"nimsuggestRestartTimeout\":60,\"nimprettyIndent\":0,\"nimprettyMaxLineLen\":80}]" DBG Failed to parse the configuration.
DBG Found nimble project projectFile=/home/joetifa/projects/nim/wind-nim/src/wind.nim DBG getProjectFile project=/home/joetifa/projects/nim/wind-nim/src/wind.nim DBG Document associated with the following projectFile uri=file:///home/joetifa/projects/nim/wind-nim/src/compiler/compiler.nim projectFile=/home/joetifa/projects/nim/wind-nim/src/wind.nim DBG Failed to parse the configuration.
DBG Starting nimsuggest root=/home/joetifa/projects/nim/wind-nim/src/wind.nim timeout=120000 path=nimsuggest fullPath=/home/joetifa/.nimble/bin/nimsuggest nimsuggest(/home/joetifa/projects/nim/wind-nim/src/wind.nim)>>command line(1, 2) Error: invalid command line option: '--v3' ERR Failed to read nimsuggest port
WRN Server stopped. projectFile=/home/joetifa/projects/nim/wind-nim/src/wind.nim DBG processQueue size=1 DBG Nimsuggest is not working, returning empty result... command="known /home/joetifa/projects/nim/wind-nim/src/compiler/compiler.nim:0:0" DBG processQueue size=1 DBG Nimsuggest is not working, returning empty result... command="outline /home/joetifa/projects/nim/wind-nim/src/compiler/compiler.nim:0:0" DBG processQueue size=1 DBG Nimsuggest is not working, returning empty result... command="outline /home/joetifa/projects/nim/wind-nim/src/compiler/compiler.nim:0:0"