Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

LSP error while running under Windows 11 #30

Closed
rudesome opened this issue May 8, 2023 · 4 comments
Closed

LSP error while running under Windows 11 #30

rudesome opened this issue May 8, 2023 · 4 comments
Labels
bug Something isn't working help wanted Extra attention is needed

Comments

@rudesome
Copy link

rudesome commented May 8, 2023

Receiving the following error while trying to launch helm-ls in Windows 11:

[START][2023-05-08 11:27:49] LSP logging initiated
[ERROR][2023-05-08 11:27:49] .../vim/lsp/rpc.lua:734	"rpc"	"cmd.exe"	"stderr"	'{"level":"info","msg":"helm-lint-langserver: connections opened","time":"2023-05-08T11:27:49+02:00"}\n'
[ERROR][2023-05-08 11:27:49] .../vim/lsp/rpc.lua:734	"rpc"	"cmd.exe"	"stderr"	"panic: runtime error: slice bounds out of range [1:0]\n\ngoroutine 13 [running]:\ngit.luolix.top/mrjosh/helm-ls/internal/util.URIToPath({0xc0002b0660?, 0xd82afe?})\n\t/home/runner/work/helm-ls/helm-ls/internal/util/strings.go:53 +0x145\n"
[ERROR][2023-05-08 11:27:49] .../vim/lsp/rpc.lua:734	"rpc"	"cmd.exe"	"stderr"	"github.com/mrjosh/helm-ls/internal/lsp.(*DocumentStore).normalizePath(0xc00074f020, {0xc0002b0660, 0x51})\n\t/home/runner/work/helm-ls/helm-ls/internal/lsp/document.go:61 +0x32\ngit.luolix.top/mrjosh/helm-ls/internal/lsp.(*DocumentStore).DidOpen(0xc00074f020, {{{0xc0002b0660, 0x51}, {0xc000443cc8, 0x4}, 0x0, {0xc000287a40, 0x49}}})\n\t/home/runner/work/helm-ls/helm-ls/internal/lsp/document.go:33 +0x65\ngit.luolix.top/mrjosh/helm-ls/internal/handler.(*langHandler).handleTextDocumentDidOpen(0xc0004394d0, {0x1fc3a78, 0xc0000340d8}, 0xc000796fc0, {0x14df9c65018, 0xc000796f90})\n\t/home/runner/work/helm-ls/helm-ls/internal/handler/handler.go:107 +0xb7\ngit.luolix.top/mrjosh/helm-ls/internal/handler.(*langHandler).handle(0xc0004394d0, {0x1fc3a78, 0xc0000340d8}, 0xc000796fc0, {0x14df9c65018?, 0xc000796f90?})\n\t/home/runner/work/helm-ls/helm-ls/internal/handler/handler.go:49 +0x2d8\ngo.lsp.dev/jsonrpc2.ReplyHandler.func1({0x1fc3a78, 0xc0000340d8}, 0xc000707aa0, {0x14df9c65018?, 0xc000796f90?})\n\t/home/runner/go/pkg/mod/go.lsp.dev/jsonrpc2@v0.10.0/handler.go:35 +0xf6\ngo.lsp.dev/jsonrpc2.(*conn).run(0xc00045ea00, {0x1fc3a78, 0xc0000340d8}, 0xc0002b3720)\n\t/home/runner/go/pkg/mod/go.lsp.dev/jsonrpc2@v0.10.0/conn.go:206 +0x24b\ncreated by go.lsp.dev/jsonrpc2.(*conn).Go\n\t/home/runner/go/pkg/mod/go.lsp.dev/jsonrpc2@v0.10.0/conn.go:189 +0xb0\n"

any idea what this can be?

@qvalentin
Copy link
Collaborator

qvalentin commented May 8, 2023

Seems to be a bug with the handling of filepaths on Windows. Must be fixed in the code.

@rudesome if you want me to help debugging this: I created a debug release with more logs, you can grab it from by fork: https://github.com/qvalentin/helm-ls/releases

@mrjosh
Copy link
Owner

mrjosh commented Jun 4, 2023

What's the problem that causing this error?
Can we have a fix on this? @qvalentin @rudesome

@mrjosh mrjosh added the help wanted Extra attention is needed label Jun 4, 2023
@mrjosh mrjosh added the bug Something isn't working label Jun 17, 2023
@Anakael
Copy link

Anakael commented Sep 7, 2023

Same here on windows 10.

@qvalentin
Copy link
Collaborator

qvalentin commented Feb 3, 2024

Fixed in v0.0.10

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

4 participants