nim-lang / vscode-nim

A VS Code plugin for the Nim language
Other
75 stars 8 forks source link

Server process exited with signal SIGSEGV #31

Closed Doaxan closed 8 months ago

Doaxan commented 8 months ago

vscode-nim behaves strangely, gives errors, nimsuggest does not terminate after exit.

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/doaxan/Projects/Nim/main.nim
DBG Received the following configuration       configuration="[{\"project\":[],\"projectMapping\":[],\"test-project\":\"\",\"buildOnSave\":false,\"buildCommand\":\"c\",\"runOutputDirectory\":\"\",\"lintOnSave\":true,\"enableNimsuggest\":false,\"provider\":\"lsp\",\"useNimsuggestCheck\":false,\"logNimsuggest\":false,\"licenseString\":\"\",\"nimsuggestRestartTimeout\":60,\"nimprettyIndent\":0,\"nimprettyMaxLineLen\":80}]"
DBG getProjectFile                             project=/home/doaxan/Projects/Nim/main.nim
DBG Document associated with the following projectFile uri=file:///home/doaxan/Projects/Nim/main.nim projectFile=/home/doaxan/Projects/Nim/main.nim
INF Starting nimsuggest                        root=/home/doaxan/Projects/Nim/main.nim timeout=120000 path=nimsuggest fullPath=/home/doaxan/.nimble/bin/nimsuggest workingDir=/home/doaxan/Projects/Nim
SIGSEGV: Illegal storage access. (Attempt to read from nil?)
[Error - 1:03:23 AM] Server process exited with signal SIGSEGV.
[Info  - 1:03:23 AM] Connection to server got closed. Server will restart.
true
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/doaxan/Projects/Nim/main.nim
DBG Received the following configuration       configuration="[{\"project\":[],\"projectMapping\":[],\"test-project\":\"\",\"buildOnSave\":false,\"buildCommand\":\"c\",\"runOutputDirectory\":\"\",\"lintOnSave\":true,\"enableNimsuggest\":false,\"provider\":\"lsp\",\"useNimsuggestCheck\":false,\"logNimsuggest\":false,\"licenseString\":\"\",\"nimsuggestRestartTimeout\":60,\"nimprettyIndent\":0,\"nimprettyMaxLineLen\":80}]"
DBG getProjectFile                             project=/home/doaxan/Projects/Nim/main.nim
DBG Document associated with the following projectFile uri=file:///home/doaxan/Projects/Nim/main.nim projectFile=/home/doaxan/Projects/Nim/main.nim
INF Starting nimsuggest                        root=/home/doaxan/Projects/Nim/main.nim timeout=120000 path=nimsuggest fullPath=/home/doaxan/.nimble/bin/nimsuggest workingDir=/home/doaxan/Projects/Nim
SIGSEGV: Illegal storage access. (Attempt to read from nil?)
[Error - 1:03:23 AM] Server process exited with signal SIGSEGV.
[Info  - 1:03:23 AM] Connection to server got closed. Server will restart.
true
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/doaxan/Projects/Nim/main.nim
DBG Received the following configuration       configuration="[{\"project\":[],\"projectMapping\":[],\"test-project\":\"\",\"buildOnSave\":false,\"buildCommand\":\"c\",\"runOutputDirectory\":\"\",\"lintOnSave\":true,\"enableNimsuggest\":false,\"provider\":\"lsp\",\"useNimsuggestCheck\":false,\"logNimsuggest\":false,\"licenseString\":\"\",\"nimsuggestRestartTimeout\":60,\"nimprettyIndent\":0,\"nimprettyMaxLineLen\":80}]"
DBG getProjectFile                             project=/home/doaxan/Projects/Nim/main.nim
DBG Document associated with the following projectFile uri=file:///home/doaxan/Projects/Nim/main.nim projectFile=/home/doaxan/Projects/Nim/main.nim
INF Starting nimsuggest                        root=/home/doaxan/Projects/Nim/main.nim timeout=120000 path=nimsuggest fullPath=/home/doaxan/.nimble/bin/nimsuggest workingDir=/home/doaxan/Projects/Nim
SIGSEGV: Illegal storage access. (Attempt to read from nil?)
[Error - 1:03:24 AM] Server process exited with signal SIGSEGV.
[Info  - 1:03:24 AM] Connection to server got closed. Server will restart.
true
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/doaxan/Projects/Nim/main.nim
DBG Received the following configuration       configuration="[{\"project\":[],\"projectMapping\":[],\"test-project\":\"\",\"buildOnSave\":false,\"buildCommand\":\"c\",\"runOutputDirectory\":\"\",\"lintOnSave\":true,\"enableNimsuggest\":false,\"provider\":\"lsp\",\"useNimsuggestCheck\":false,\"logNimsuggest\":false,\"licenseString\":\"\",\"nimsuggestRestartTimeout\":60,\"nimprettyIndent\":0,\"nimprettyMaxLineLen\":80}]"
DBG getProjectFile                             project=/home/doaxan/Projects/Nim/main.nim
DBG Document associated with the following projectFile uri=file:///home/doaxan/Projects/Nim/main.nim projectFile=/home/doaxan/Projects/Nim/main.nim
INF Starting nimsuggest                        root=/home/doaxan/Projects/Nim/main.nim timeout=120000 path=nimsuggest fullPath=/home/doaxan/.nimble/bin/nimsuggest workingDir=/home/doaxan/Projects/Nim
SIGSEGV: Illegal storage access. (Attempt to read from nil?)
[Error - 1:03:24 AM] Server process exited with signal SIGSEGV.
[Info  - 1:03:24 AM] Connection to server got closed. Server will restart.
true
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/doaxan/Projects/Nim/main.nim
DBG Received the following configuration       configuration="[{\"project\":[],\"projectMapping\":[],\"test-project\":\"\",\"buildOnSave\":false,\"buildCommand\":\"c\",\"runOutputDirectory\":\"\",\"lintOnSave\":true,\"enableNimsuggest\":false,\"provider\":\"lsp\",\"useNimsuggestCheck\":false,\"logNimsuggest\":false,\"licenseString\":\"\",\"nimsuggestRestartTimeout\":60,\"nimprettyIndent\":0,\"nimprettyMaxLineLen\":80}]"
DBG getProjectFile                             project=/home/doaxan/Projects/Nim/main.nim
DBG Document associated with the following projectFile uri=file:///home/doaxan/Projects/Nim/main.nim projectFile=/home/doaxan/Projects/Nim/main.nim
INF Starting nimsuggest                        root=/home/doaxan/Projects/Nim/main.nim timeout=120000 path=nimsuggest fullPath=/home/doaxan/.nimble/bin/nimsuggest workingDir=/home/doaxan/Projects/Nim
DBG Router: dispatching                        method=textDocument/documentSymbol id=1
SIGSEGV: Illegal storage access. (Attempt to read from nil?)
[Error - 1:03:25 AM] Server process exited with signal SIGSEGV.
[Error - 1:03:25 AM] The Nim Language Server server crashed 5 times in the last 3 minutes. The server will not be restarted. See the output for more information.

image

Doaxan commented 8 months ago

The problem occurred when the extension itself installed nimlangserver. After nimble install nimlangserver@#head the error does not occur

nimble install nimlangserver Downloading https://github.com/nim-lang/langserver using git Installing nimlangserver@0.1.0

nimble install nimlangserver@#head Downloading https://github.com/nim-lang/langserver using git Installing nimlangserver@1.1.0

Doaxan commented 8 months ago

Although the initially described problem has disappeared, the extension is still unstable

image

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/doaxan/Projects/Nim/untitled/main.nim
DBG Received the following configuration       configuration="[{\"project\":[],\"projectMapping\":[],\"test-project\":\"\",\"buildOnSave\":false,\"buildCommand\":\"c\",\"runOutputDirectory\":\"\",\"lintOnSave\":true,\"enableNimsuggest\":false,\"provider\":\"lsp\",\"useNimsuggestCheck\":false,\"logNimsuggest\":false,\"licenseString\":\"\",\"nimsuggestRestartTimeout\":60,\"nimprettyIndent\":0,\"nimprettyMaxLineLen\":80,\"lsp\":{\"path\":\"\"},\"inlayHints\":{\"typeHints\":{\"enable\":\"true\"},\"exceptionHints\":{\"enable\":\"true\",\"hintStringLeft\":\"๐Ÿ””\",\"hintStringRight\":\"\"}}}]"
DBG Failed to parse the configuration.        
DBG getProjectFile                             project=/home/doaxan/Projects/Nim/untitled/main.nim
DBG Document associated with the following projectFile uri=file:///home/doaxan/Projects/Nim/untitled/main.nim projectFile=/home/doaxan/Projects/Nim/untitled/main.nim
DBG Failed to parse the configuration.        
DBG Failed to parse the configuration.        
INF Starting nimsuggest                        root=/home/doaxan/Projects/Nim/untitled/main.nim timeout=120000 path=nimsuggest fullPath=/home/doaxan/.nimble/bin/nimsuggest workingDir=/home/doaxan/Projects/Nim/untitled
SIGSEGV: Illegal storage access. (Attempt to read from nil?)
[Error - 9:42:50 AM] Server process exited with signal SIGSEGV.
[Info  - 9:42:50 AM] Connection to server got closed. Server will restart.
true
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/doaxan/Projects/Nim/untitled/main.nim
DBG Received the following configuration       configuration="[{\"project\":[],\"projectMapping\":[],\"test-project\":\"\",\"buildOnSave\":false,\"buildCommand\":\"c\",\"runOutputDirectory\":\"\",\"lintOnSave\":true,\"enableNimsuggest\":false,\"provider\":\"lsp\",\"useNimsuggestCheck\":false,\"logNimsuggest\":false,\"licenseString\":\"\",\"nimsuggestRestartTimeout\":60,\"nimprettyIndent\":0,\"nimprettyMaxLineLen\":80,\"lsp\":{\"path\":\"\"},\"inlayHints\":{\"typeHints\":{\"enable\":\"true\"},\"exceptionHints\":{\"enable\":\"true\",\"hintStringLeft\":\"๐Ÿ””\",\"hintStringRight\":\"\"}}}]"
DBG Failed to parse the configuration.        
DBG getProjectFile                             project=/home/doaxan/Projects/Nim/untitled/main.nim
DBG Document associated with the following projectFile uri=file:///home/doaxan/Projects/Nim/untitled/main.nim projectFile=/home/doaxan/Projects/Nim/untitled/main.nim
DBG Failed to parse the configuration.        
DBG Failed to parse the configuration.        
INF Starting nimsuggest                        root=/home/doaxan/Projects/Nim/untitled/main.nim timeout=120000 path=nimsuggest fullPath=/home/doaxan/.nimble/bin/nimsuggest workingDir=/home/doaxan/Projects/Nim/untitled
DBG Router: dispatching                        method=textDocument/codeAction id=1
DBG Failed to parse the configuration.        
DBG getProjectFile                             project=/home/doaxan/Projects/Nim/untitled/main.nim
DBG Router: sending response                   method=textDocument/codeAction id=1
DBG Router: dispatching                        method=textDocument/inlayHint id=2
DBG inlayHint received...                     
DBG Failed to parse the configuration.        
DBG Router: dispatching                        method=textDocument/codeAction id=3
DBG Failed to parse the configuration.        
DBG getProjectFile                             project=/home/doaxan/Projects/Nim/untitled/main.nim
DBG Router: sending response                   method=textDocument/codeAction id=3
DBG Router: dispatching                        method=textDocument/documentSymbol id=4
SIGSEGV: Illegal storage access. (Attempt to read from nil?)
[Error - 9:42:50 AM] Server process exited with signal SIGSEGV.
[Info  - 9:42:50 AM] Connection to server got closed. Server will restart.
true
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/doaxan/Projects/Nim/untitled/main.nim
DBG Received the following configuration       configuration="[{\"project\":[],\"projectMapping\":[],\"test-project\":\"\",\"buildOnSave\":false,\"buildCommand\":\"c\",\"runOutputDirectory\":\"\",\"lintOnSave\":true,\"enableNimsuggest\":false,\"provider\":\"lsp\",\"useNimsuggestCheck\":false,\"logNimsuggest\":false,\"licenseString\":\"\",\"nimsuggestRestartTimeout\":60,\"nimprettyIndent\":0,\"nimprettyMaxLineLen\":80,\"lsp\":{\"path\":\"\"},\"inlayHints\":{\"typeHints\":{\"enable\":\"true\"},\"exceptionHints\":{\"enable\":\"true\",\"hintStringLeft\":\"๐Ÿ””\",\"hintStringRight\":\"\"}}}]"
DBG Failed to parse the configuration.        
DBG getProjectFile                             project=/home/doaxan/Projects/Nim/untitled/main.nim
DBG Document associated with the following projectFile uri=file:///home/doaxan/Projects/Nim/untitled/main.nim projectFile=/home/doaxan/Projects/Nim/untitled/main.nim
DBG Failed to parse the configuration.        
DBG Failed to parse the configuration.        
INF Starting nimsuggest                        root=/home/doaxan/Projects/Nim/untitled/main.nim timeout=120000 path=nimsuggest fullPath=/home/doaxan/.nimble/bin/nimsuggest workingDir=/home/doaxan/Projects/Nim/untitled
DBG Router: dispatching                        method=textDocument/documentSymbol id=1
DBG Router: dispatching                        method=textDocument/codeAction id=2
DBG Failed to parse the configuration.        
DBG getProjectFile                             project=/home/doaxan/Projects/Nim/untitled/main.nim
DBG Router: sending response                   method=textDocument/codeAction id=2
DBG Router: dispatching                        method=textDocument/inlayHint id=3
DBG inlayHint received...                     
DBG Failed to parse the configuration.        
DBG Router: dispatching                        method=$/cancelRequest id=null
DBG Cancelling:                                id=1
DBG Router: dispatching                        method=textDocument/documentSymbol id=4
DBG Started nimsuggest                         port=37697 root=/home/doaxan/Projects/Nim/untitled/main.nim
DBG Failed to parse the configuration.        
DBG Running diagnostics                        uri=file:///home/doaxan/Projects/Nim/untitled/main.nim
DBG processQueue                               size=1
DBG Started...                                 benchmark="chk \"/home/doaxan/Projects/Nim/untitled/main.nim\":0:0" command="chk \"/home/doaxan/Projects/Nim/untitled/main.nim\":0:0"
DBG timeoutCallback is set                     timeout=120000 command="chk \"/home/doaxan/Projects/Nim/untitled/main.nim\":0:0"
DBG Sending result(s)                          length=119 command="chk \"/home/doaxan/Projects/Nim/untitled/main.nim\":0:0"
DBG CPU Time                                   benchmark="chk \"/home/doaxan/Projects/Nim/untitled/main.nim\":0:0" time=0.252 command="chk \"/home/doaxan/Projects/Nim/untitled/main.nim\":0:0"
DBG Started...                                 benchmark="known \"/home/doaxan/Projects/Nim/untitled/main.nim\":0:0" command="known \"/home/doaxan/Projects/Nim/untitled/main.nim\":0:0"
DBG timeoutCallback is set                     timeout=120000 command="known \"/home/doaxan/Projects/Nim/untitled/main.nim\":0:0"
DBG Found diagnostics                          file="{\"/home/doaxan/.choosenim/toolchains/nim-2.0.2/lib/pure/times.nim\"}"
DBG Sending diagnostics                        count=2 path=/home/doaxan/.choosenim/toolchains/nim-2.0.2/lib/pure/times.nim
DBG Sending result(s)                          length=1 command="known \"/home/doaxan/Projects/Nim/untitled/main.nim\":0:0"
DBG CPU Time                                   benchmark="known \"/home/doaxan/Projects/Nim/untitled/main.nim\":0:0" time=0.249 command="known \"/home/doaxan/Projects/Nim/untitled/main.nim\":0:0"
DBG Started...                                 benchmark="outline \"/home/doaxan/Projects/Nim/untitled/main.nim\":0:0" command="outline \"/home/doaxan/Projects/Nim/untitled/main.nim\":0:0"
DBG timeoutCallback is set                     timeout=120000 command="outline \"/home/doaxan/Projects/Nim/untitled/main.nim\":0:0"
DBG Sending result(s)                          length=1 command="outline \"/home/doaxan/Projects/Nim/untitled/main.nim\":0:0"
DBG CPU Time                                   benchmark="outline \"/home/doaxan/Projects/Nim/untitled/main.nim\":0:0" time=0.250 command="outline \"/home/doaxan/Projects/Nim/untitled/main.nim\":0:0"
DBG Started...                                 benchmark="inlayHints \"/home/doaxan/Projects/Nim/untitled/main.nim\":1:0:12:0 +exceptionHints" command="inlayHints \"/home/doaxan/Projects/Nim/untitled/main.nim\":1:0:12:0 +exceptionHints"
DBG timeoutCallback is set                     timeout=120000 command="inlayHints \"/home/doaxan/Projects/Nim/untitled/main.nim\":1:0:12:0 +exceptionHints"
DBG Router: sending response                   method=textDocument/documentSymbol id=1
DBG Sending result(s)                          length=1 command="inlayHints \"/home/doaxan/Projects/Nim/untitled/main.nim\":1:0:12:0 +exceptionHints"
DBG CPU Time                                   benchmark="inlayHints \"/home/doaxan/Projects/Nim/untitled/main.nim\":1:0:12:0 +exceptionHints" time=0.250 command="inlayHints \"/home/doaxan/Projects/Nim/untitled/main.nim\":1:0:12:0 +exceptionHints"
DBG Started...                                 benchmark="outline \"/home/doaxan/Projects/Nim/untitled/main.nim\":0:0" command="outline \"/home/doaxan/Projects/Nim/untitled/main.nim\":0:0"
DBG timeoutCallback is set                     timeout=120000 command="outline \"/home/doaxan/Projects/Nim/untitled/main.nim\":0:0"
DBG Router: sending response                   method=textDocument/inlayHint id=3
DBG Sending result(s)                          length=1 command="outline \"/home/doaxan/Projects/Nim/untitled/main.nim\":0:0"
DBG CPU Time                                   benchmark="outline \"/home/doaxan/Projects/Nim/untitled/main.nim\":0:0" time=0.250 command="outline \"/home/doaxan/Projects/Nim/untitled/main.nim\":0:0"
DBG Router: sending response                   method=textDocument/documentSymbol id=4
DBG Router: dispatching                        method=textDocument/hover id=5
DBG processQueue                               size=1
DBG Started...                                 benchmark="def \"/home/doaxan/Projects/Nim/untitled/main.nim\":7:30" command="def \"/home/doaxan/Projects/Nim/untitled/main.nim\":7:30"
DBG timeoutCallback is set                     timeout=120000 command="def \"/home/doaxan/Projects/Nim/untitled/main.nim\":7:30"
DBG Sending result(s)                          length=1 command="def \"/home/doaxan/Projects/Nim/untitled/main.nim\":7:30"
DBG CPU Time                                   benchmark="def \"/home/doaxan/Projects/Nim/untitled/main.nim\":7:30" time=0.062 command="def \"/home/doaxan/Projects/Nim/untitled/main.nim\":7:30"
DBG Router: sending response                   method=textDocument/hover id=5
DBG Router: dispatching                        method=textDocument/hover id=6
DBG processQueue                               size=1
DBG Started...                                 benchmark="def \"/home/doaxan/Projects/Nim/untitled/main.nim\":5:30" command="def \"/home/doaxan/Projects/Nim/untitled/main.nim\":5:30"
DBG timeoutCallback is set                     timeout=120000 command="def \"/home/doaxan/Projects/Nim/untitled/main.nim\":5:30"
DBG Router: dispatching                        method=$/cancelRequest id=null
DBG Cancelling:                                id=6
DBG Future cancelled.                          id=6
DBG Future cancelled, throwing...              id=6
DBG Call was cancelled before sending the result command="def \"/home/doaxan/Projects/Nim/untitled/main.nim\":5:30"
DBG CPU Time                                   benchmark="def \"/home/doaxan/Projects/Nim/untitled/main.nim\":5:30" time=0.157 command="def \"/home/doaxan/Projects/Nim/untitled/main.nim\":5:30"
DBG Router: dispatching                        method=textDocument/hover id=7
DBG processQueue                               size=1
DBG Started...                                 benchmark="def \"/home/doaxan/Projects/Nim/untitled/main.nim\":5:25" command="def \"/home/doaxan/Projects/Nim/untitled/main.nim\":5:25"
DBG timeoutCallback is set                     timeout=120000 command="def \"/home/doaxan/Projects/Nim/untitled/main.nim\":5:25"
DBG Sending result(s)                          length=1 command="def \"/home/doaxan/Projects/Nim/untitled/main.nim\":5:25"
DBG CPU Time                                   benchmark="def \"/home/doaxan/Projects/Nim/untitled/main.nim\":5:25" time=0.195 command="def \"/home/doaxan/Projects/Nim/untitled/main.nim\":5:25"
DBG Router: sending response                   method=textDocument/hover id=7
DBG Router: dispatching                        method=textDocument/hover id=8
DBG processQueue                               size=1
DBG Started...                                 benchmark="def \"/home/doaxan/Projects/Nim/untitled/main.nim\":5:33" command="def \"/home/doaxan/Projects/Nim/untitled/main.nim\":5:33"
DBG timeoutCallback is set                     timeout=120000 command="def \"/home/doaxan/Projects/Nim/untitled/main.nim\":5:33"
DBG Sending result(s)                          length=1 command="def \"/home/doaxan/Projects/Nim/untitled/main.nim\":5:33"
DBG CPU Time                                   benchmark="def \"/home/doaxan/Projects/Nim/untitled/main.nim\":5:33" time=0.181 command="def \"/home/doaxan/Projects/Nim/untitled/main.nim\":5:33"
DBG Router: sending response                   method=textDocument/hover id=8
DBG Router: dispatching                        method=textDocument/hover id=9
DBG processQueue                               size=1
DBG Started...                                 benchmark="def \"/home/doaxan/Projects/Nim/untitled/main.nim\":11:10" command="def \"/home/doaxan/Projects/Nim/untitled/main.nim\":11:10"
DBG timeoutCallback is set                     timeout=120000 command="def \"/home/doaxan/Projects/Nim/untitled/main.nim\":11:10"
DBG Router: dispatching                        method=$/cancelRequest id=null
DBG Cancelling:                                id=9
DBG Future cancelled.                          id=9
DBG Future cancelled, throwing...              id=9
DBG Call was cancelled before sending the result command="def \"/home/doaxan/Projects/Nim/untitled/main.nim\":11:10"
DBG CPU Time                                   benchmark="def \"/home/doaxan/Projects/Nim/untitled/main.nim\":11:10" time=0.149 command="def \"/home/doaxan/Projects/Nim/untitled/main.nim\":11:10"
DBG Router: dispatching                        method=textDocument/hover id=10
DBG processQueue                               size=1
DBG Started...                                 benchmark="def \"/home/doaxan/Projects/Nim/untitled/main.nim\":11:9" command="def \"/home/doaxan/Projects/Nim/untitled/main.nim\":11:9"
DBG timeoutCallback is set                     timeout=120000 command="def \"/home/doaxan/Projects/Nim/untitled/main.nim\":11:9"
DBG Sending result(s)                          length=0 command="def \"/home/doaxan/Projects/Nim/untitled/main.nim\":11:9"
DBG CPU Time                                   benchmark="def \"/home/doaxan/Projects/Nim/untitled/main.nim\":11:9" time=0.132 command="def \"/home/doaxan/Projects/Nim/untitled/main.nim\":11:9"
DBG Router: sending response                   method=textDocument/hover id=10
DBG Router: dispatching                        method=textDocument/hover id=11
DBG processQueue                               size=1
DBG Started...                                 benchmark="def \"/home/doaxan/Projects/Nim/untitled/main.nim\":3:11" command="def \"/home/doaxan/Projects/Nim/untitled/main.nim\":3:11"
DBG timeoutCallback is set                     timeout=120000 command="def \"/home/doaxan/Projects/Nim/untitled/main.nim\":3:11"
DBG Sending result(s)                          length=1 command="def \"/home/doaxan/Projects/Nim/untitled/main.nim\":3:11"
DBG CPU Time                                   benchmark="def \"/home/doaxan/Projects/Nim/untitled/main.nim\":3:11" time=0.088 command="def \"/home/doaxan/Projects/Nim/untitled/main.nim\":3:11"
DBG Router: sending response                   method=textDocument/hover id=11
DBG Router: dispatching                        method=textDocument/documentHighlight id=12
DBG processQueue                               size=1
DBG Started...                                 benchmark="highlight \"/home/doaxan/Projects/Nim/untitled/main.nim\":3:13" command="highlight \"/home/doaxan/Projects/Nim/untitled/main.nim\":3:13"
DBG timeoutCallback is set                     timeout=120000 command="highlight \"/home/doaxan/Projects/Nim/untitled/main.nim\":3:13"
DBG Sending result(s)                          length=0 command="highlight \"/home/doaxan/Projects/Nim/untitled/main.nim\":3:13"
DBG CPU Time                                   benchmark="highlight \"/home/doaxan/Projects/Nim/untitled/main.nim\":3:13" time=0.065 command="highlight \"/home/doaxan/Projects/Nim/untitled/main.nim\":3:13"
DBG Router: sending response                   method=textDocument/documentHighlight id=12
DBG Router: dispatching                        method=textDocument/codeAction id=13
DBG Failed to parse the configuration.        
DBG getProjectFile                             project=/home/doaxan/Projects/Nim/untitled/main.nim
DBG Router: sending response                   method=textDocument/codeAction id=13
DBG Router: dispatching                        method=textDocument/didChange id=null
DBG Failed to parse the configuration.        
DBG Router: dispatching                        method=textDocument/codeAction id=14
DBG Failed to parse the configuration.        
DBG getProjectFile                             project=/home/doaxan/Projects/Nim/untitled/main.nim
DBG Router: sending response                   method=textDocument/codeAction id=14
DBG Router: dispatching                        method=textDocument/didSave id=null
DBG processQueue                               size=1
DBG Started...                                 benchmark="changed \"/home/doaxan/Projects/Nim/untitled/main.nim\":0:0" command="changed \"/home/doaxan/Projects/Nim/untitled/main.nim\":0:0"
DBG timeoutCallback is set                     timeout=120000 command="changed \"/home/doaxan/Projects/Nim/untitled/main.nim\":0:0"
DBG Failed to parse the configuration.        
DBG Checking project                           uri=file:///home/doaxan/Projects/Nim/untitled/main.nim
DBG Failed to parse the configuration.        
DBG Running diagnostics                        uri=file:///home/doaxan/Projects/Nim/untitled/main.nim
DBG Router: dispatching                        method=textDocument/documentSymbol id=15
DBG Sending result(s)                          length=0 command="changed \"/home/doaxan/Projects/Nim/untitled/main.nim\":0:0"
DBG CPU Time                                   benchmark="changed \"/home/doaxan/Projects/Nim/untitled/main.nim\":0:0" time=0.222 command="changed \"/home/doaxan/Projects/Nim/untitled/main.nim\":0:0"
DBG Started...                                 benchmark="chk \"/home/doaxan/Projects/Nim/untitled/main.nim\":0:0" command="chk \"/home/doaxan/Projects/Nim/untitled/main.nim\":0:0"
DBG timeoutCallback is set                     timeout=120000 command="chk \"/home/doaxan/Projects/Nim/untitled/main.nim\":0:0"
>> SIGSEGV: Illegal storage access. (Attempt to read from nil?)
DBG Router: dispatching                        method=textDocument/codeAction id=16
DBG Failed to parse the configuration.        
DBG getProjectFile                             project=/home/doaxan/Projects/Nim/untitled/main.nim
DBG Router: sending response                   method=textDocument/codeAction id=16
DBG Router: dispatching                        method=textDocument/inlayHint id=17
DBG inlayHint received...                     
DBG Failed to parse the configuration.        
WRN Server stopped.                            projectFile=/home/doaxan/Projects/Nim/untitled/main.nim
DBG Failed to parse the configuration.        
DBG Failed to parse the configuration.        
INF Starting nimsuggest                        root=/home/doaxan/Projects/Nim/untitled/main.nim timeout=120000 path=nimsuggest fullPath=/home/doaxan/.nimble/bin/nimsuggest workingDir=/home/doaxan/Projects/Nim/untitled
DBG Server socket closed                       command="chk \"/home/doaxan/Projects/Nim/untitled/main.nim\":0:0"
DBG Call cancelled before sending error        command="chk \"/home/doaxan/Projects/Nim/untitled/main.nim\":0:0"
DBG Call was cancelled before sending the result command="chk \"/home/doaxan/Projects/Nim/untitled/main.nim\":0:0"
DBG CPU Time                                   benchmark="chk \"/home/doaxan/Projects/Nim/untitled/main.nim\":0:0" time=0.918 command="chk \"/home/doaxan/Projects/Nim/untitled/main.nim\":0:0"
DBG Nimsuggest is not working, returning empty result... command="outline \"/home/doaxan/Projects/Nim/untitled/main.nim\":0:0"
DBG Nimsuggest is not working, returning empty result... command="inlayHints \"/home/doaxan/Projects/Nim/untitled/main.nim\":1:0:12:0 +exceptionHints"
DBG Stopping nimsuggest for                    root=/home/doaxan/Projects/Nim/untitled/main.nim
DBG Router: sending response                   method=textDocument/documentSymbol id=15
DBG Router: sending response                   method=textDocument/inlayHint id=17
SIGSEGV: Illegal storage access. (Attempt to read from nil?)
[Error - 9:43:08 AM] Server process exited with signal SIGSEGV.
[Info  - 9:43:08 AM] Connection to server got closed. Server will restart.
true
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/doaxan/Projects/Nim/untitled/main.nim
DBG Received the following configuration       configuration="[{\"project\":[],\"projectMapping\":[],\"test-project\":\"\",\"buildOnSave\":false,\"buildCommand\":\"c\",\"runOutputDirectory\":\"\",\"lintOnSave\":true,\"enableNimsuggest\":false,\"provider\":\"lsp\",\"useNimsuggestCheck\":false,\"logNimsuggest\":false,\"licenseString\":\"\",\"nimsuggestRestartTimeout\":60,\"nimprettyIndent\":0,\"nimprettyMaxLineLen\":80,\"lsp\":{\"path\":\"\"},\"inlayHints\":{\"typeHints\":{\"enable\":\"true\"},\"exceptionHints\":{\"enable\":\"true\",\"hintStringLeft\":\"๐Ÿ””\",\"hintStringRight\":\"\"}}}]"
DBG Failed to parse the configuration.        
DBG getProjectFile                             project=/home/doaxan/Projects/Nim/untitled/main.nim
DBG Document associated with the following projectFile uri=file:///home/doaxan/Projects/Nim/untitled/main.nim projectFile=/home/doaxan/Projects/Nim/untitled/main.nim
DBG Failed to parse the configuration.        
DBG Failed to parse the configuration.        
INF Starting nimsuggest                        root=/home/doaxan/Projects/Nim/untitled/main.nim timeout=120000 path=nimsuggest fullPath=/home/doaxan/.nimble/bin/nimsuggest workingDir=/home/doaxan/Projects/Nim/untitled
DBG Router: dispatching                        method=textDocument/documentSymbol id=1
DBG Router: dispatching                        method=textDocument/codeAction id=2
DBG Failed to parse the configuration.        
DBG getProjectFile                             project=/home/doaxan/Projects/Nim/untitled/main.nim
DBG Router: sending response                   method=textDocument/codeAction id=2
DBG Router: dispatching                        method=textDocument/inlayHint id=3
DBG inlayHint received...                     
DBG Failed to parse the configuration.        
DBG Router: dispatching                        method=$/cancelRequest id=null
DBG Cancelling:                                id=3
DBG Router: dispatching                        method=textDocument/inlayHint id=4
DBG inlayHint received...                     
DBG Failed to parse the configuration.        
>> SIGSEGV: Illegal storage access. (Attempt to read from nil?)
ERR Failed to read nimsuggest port            
WRN Server stopped.                            projectFile=/home/doaxan/Projects/Nim/untitled/main.nim
DBG processQueue                               size=1
DBG Nimsuggest is not working, returning empty result... command="known \"/home/doaxan/Projects/Nim/untitled/main.nim\":0:0"
DBG processQueue                               size=1
DBG Nimsuggest is not working, returning empty result... command="outline \"/home/doaxan/Projects/Nim/untitled/main.nim\":0:0"
DBG processQueue                               size=1
DBG Nimsuggest is not working, returning empty result... command="inlayHints \"/home/doaxan/Projects/Nim/untitled/main.nim\":1:0:12:0 +exceptionHints"
DBG processQueue                               size=1
DBG Nimsuggest is not working, returning empty result... command="inlayHints \"/home/doaxan/Projects/Nim/untitled/main.nim\":1:0:12:0 +exceptionHints"
DBG Router: sending response                   method=textDocument/documentSymbol id=1
DBG Router: sending response                   method=textDocument/inlayHint id=3
DBG Router: sending response                   method=textDocument/inlayHint id=4
jmgomez commented 8 months ago

This is an issue with the langserver rather than the extension. Likely the settings that are being sent to the server. Can you open the issue in the langserver repo and share your conf?