I can't seem to sort out how to get Snyk-ls to work #1887
Unanswered
shMorganson
asked this question in
Q&A
Replies: 1 comment
-
I got the same issue. Did you find the answer @shMorganson ? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I have snyk cli installed and I have snyk-ls and then a file load that snyk-ls will wok on I get this error.
[ERROR][2025-02-26 11:04:55] .../vim/lsp/rpc.lua:770 "rpc" "/Users/user/.local/share/nvim/mason/bin/snyk-ls" "stderr" "LSP logger: waiting for ready signal...\nLSP logger: started\n" [ERROR][2025-02-26 11:04:56] .../vim/lsp/rpc.lua:770 "rpc" "/Users/user/.local/share/nvim/mason/bin/snyk-ls" "stderr" "LSP logger: starting with non-nil server\n" [ERROR][2025-02-26 11:04:56] .../vim/lsp/rpc.lua:770 "rpc" "/Users/user/.local/share/nvim/mason/bin/snyk-ls" "stderr" "LSP logger: waiting for ready signal...\nLSP logger: started\n" [ERROR][2025-02-26 11:04:56] .../vim/lsp/rpc.lua:770 "rpc" "/Users/user/.local/share/nvim/mason/bin/snyk-ls" "stderr" "2025-02-26T11:04:56-05:00 INF - Error reporting initialized\n" [ERROR][2025-02-26 11:04:56] .../vim/lsp/rpc.lua:770 "rpc" "/Users/user/.local/share/nvim/mason/bin/snyk-ls" "stderr" "panic: runtime error: invalid memory address or nil pointer dereference\n[signal SIGSEGV: segmentation violation code=0x2 addr=0x20 pc=0x10554dd0c" [ERROR][2025-02-26 11:04:56] .../vim/lsp/rpc.lua:770 "rpc" "/Users/user/.local/share/nvim/mason/bin/snyk-ls" "stderr" "]\n\ngoroutine 25 [running]:\ngithub.com/snyk/snyk-ls/infrastructure/authentication.(*AuthenticationServiceImpl).Authenticate(0x14000786d20, {0x105a5d640?, 0x10634db40?})\n\tgithub.com/snyk/snyk-ls/infrastructure/authentication/auth_service_impl.go:70 +0x2c\ngithub.com/snyk/snyk-ls/infrastructure/authentication.(*Initializer).authenticate(0x140000eef00, {0x105a64420, 0x14000786d20}, {0x10561baac, 0x28})\n\tgithub.com/snyk/snyk-ls/infrastructure/authentication/initializer.go:79 +0x70\ngithub.com/snyk/snyk-ls/infrastructure/authentication.(*Initializer).Init(0x140000eef00)\n\tgithub.com/snyk/snyk-ls/infrastructure/authentication/initializer.go:66 +0x108\ngithub.com/snyk/snyk-ls/domain/ide/initialize.(*DelegatingInitializer).Init(0x1400039f188?)\n\tgithub.com/snyk/snyk-ls/domain/ide/initialize/initializer.go:33 +0x54\ngithub.com/snyk/snyk-ls/domain/snyk/scanner.(*DelegatingConcurrentScanner).Init(0x14000134f30)\n\tgithub.com/snyk/snyk-ls/domain/snyk/scanner/scanner.go:213 +0x30\ngithub.com/snyk/snyk-ls/application/server.initHandlers.initializedHandler.func2({0x0?, 0x4?}, {})\n\tgithub.com/snyk/snyk-ls/application/server/server.go:419 +0x6e8\n" [ERROR][2025-02-26 11:04:56] .../vim/lsp/rpc.lua:770 "rpc" "/Users/user/.local/share/nvim/mason/bin/snyk-ls" "stderr" "reflect.Value.call({0x1058dde40?, 0x140000d11a0?, 0x1400035bd58?}, {0x1055e589f, 0x4}, {0x140035e29c0, 0x2, 0x10634db40?})\n\treflect/value.go:596 +0x970\nreflect.Value.Call({0x1058dde40?, 0x140000d11a0?, 0x10634db40?}, {0x140035e29c0?, 0x10595b5a0?, 0x140035e28d0?})\n\treflect/value.go:380 +0x94\ngithub.com/creachadair/jrpc2/handler.(*FuncInfo).Wrap.func8({0x105a5d720?, 0x140035e28d0?}, 0x140035e28d0?)\n\tgithub.com/creachadair/[email protected]/handler/handler.go:238 +0xd4\ngithub.com/creachadair/jrpc2.(*Server).invoke(0x140002021e0, {0x105a5d720?, 0x140035e28a0?}, 0x1400007f7c0, 0x140002989c0)\n\tgithub.com/creachadair/[email protected]/server.go:387 +0xf4\ngithub.com/creachadair/jrpc2.(*Server).dispatchLocked.func1()\n\tgithub.com/creachadair/[email protected]/server.go:259 +0x158\ngithub.com/creachadair/jrpc2.(*Server).serve.func1()\n\tgithub.com/creachadair/[email protected]/server.go:180 +0x5c\ncreated by github.com/creachadair/jrpc2.(*Server).serve in goroutine 67\n\tgithub.com/creachadair/[email protected]/server.go:178 +0x2c\n"
I have authored the cli tool many times and I still am not sure what to do.
Beta Was this translation helpful? Give feedback.
All reactions