Open DrummyFloyd opened 1 year ago
That would be awesome indeed !
Right now helm-ls breaks when it can't find any values.yaml
or Chart.yaml
:
[START][2023-07-10 13:42:19] LSP logging initiated
[ERROR][2023-07-10 13:42:19] .../vim/lsp/rpc.lua:734 "rpc" "/home/varac/.local/share/nvim/mason/bin/helm_ls" "stderr" '{"level":"info","msg":"helm-lint-langserver: connections opened","time":"2023-07-10T13:42:19+02:00"}\n'
[ERROR][2023-07-10 13:42:19] .../vim/lsp/rpc.lua:734 "rpc" "/home/varac/.local/share/nvim/mason/bin/helm_ls" "stderr" '{"level":"info","msg":"Error loaing values.yaml file open /home/varac/.../mastodon-helmfiles/values.yaml: no such file or directory","time":"2023-07-10T13:42:19+02:00"}\n'
[ERROR][2023-07-10 13:42:19] .../vim/lsp/rpc.lua:734 "rpc" "/home/varac/.local/share/nvim/mason/bin/helm_ls" "stderr" 'panic: request "initialize" was never replied to\n\ngoroutine 7 [running]:\n'
[ERROR][2023-07-10 13:42:19] .../vim/lsp/rpc.lua:734 "rpc" "/home/varac/.local/share/nvim/mason/bin/helm_ls" "stderr" "go.lsp.dev/jsonrpc2.ReplyHandler.func1({0x1a33478, 0xc000046160}, 0xc00051f360, {0x7ffaf8285cd8?, 0xc000520b40?})\n\t/go/pkg/mod/go.lsp.dev/jsonrpc2@v0.10.0/handler.go:44 +0x165\ngo.lsp.dev/jsonrpc2.(*conn).run(0xc000523a90, {0x1a33478, 0xc000046160}, 0xc000135a20)\n\t/go/pkg/mod/go.lsp.dev/jsonrpc2@v0.10.0/conn.go:206 +0x22b\ncreated by go.lsp.dev/jsonrpc2.(*conn).Go\n\t/go/pkg/mod/go.lsp.dev/jsonrpc2@v0.10.0/conn.go:189 +0xb0\n"
Can someone provide a example project, so the bug can be reproduced? The official examples seem to be working (e.g. https://github.com/helmfile/helmfile/tree/main/examples/charts/argocd-helmfile-deployment).
@qvalentin: I can reproduce the issue with the helmfile.yaml.txt example from the docs: https://github.com/helmfile/helmfile/blob/main/docs/index.md#configuration
(renamed to .yaml.txt to be able to upload here)
@hinricht, thank you, I think I now understand the problem.
The bug occurs under the following condition:
It should be possible to fix the crash, but we have to seem what features of helm-ls will work on helmfile files.
Edit: I can confirm basic features, such as hover documentation (but only for functions that are also used in helm) are working.
Would be great to add the support of this wrapper
Which is mostly the same syntax as helm
http://github.com/helmfile/helmfile