-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
V and Vue seem incompatible #6267
Comments
Look at #6164 (comment) |
I'm on that comment thread and this is a different problem. Once the language is set with |
Sorry I didn't notice the lsp issue, I back to the release 22.05 version for testing. This is an lsp configuration error for v. 22.05 Lines 1457 to 1463 in 1de17a2
It has fixed in master branch. Lines 1686 to 1692 in 14f1a62
ref: https://github.com/vlang/vls#via-v-cli-recommended, vls has change to 'v ls' from 0.3.1. You can wait for the next version, or set your own configuration [[language]]
name = "v"
file-types = ["v", "vv"]
language-server = { command = "v", args = ["ls"] }
[[grammar]]
name = "v"
source = { git = "https://github.com/vlang/vls", subpath = "tree_sitter_v", rev = "66cf9d3086fb5ecc827cb32c64c5d812ab17d2c6" }
Because vlang changes quickly, hx's support for languages sometimes needs to be updated by configuring |
Yeah this is fixed on master by #5677 since vlang changed its binary for the language server ( |
Summary
I've downloaded V and got it's lsp setup but for some reason when I use
:set-language
to V it seems to be using my Vue lsp as my auto completes are showing Vue things but the syntax highlighting is in V. They have the same name in thehx --health
vls but when I look at the language.toml I don't see anything that seems to be causing Helix to confuse the use of two.Is anyone else having this issue when they have both vue and v lsp installed on their machine?
Reproduction Steps
I tried this:
hx .
in a V project:set-language
and select V as there is another bug being reported on some file name oddities3 . Trigger code suggestion
I expected this to happen:
see V code suggestion and autocompletion
Instead, this happened:
I see Vue's suggestion and auto completion
Helix log
2023-03-10T14:04:46.381 helix_view::editor [ERROR] Failed to initialize the LSP for
source.verilog
{ cannot find binary path }2023-03-10T14:05:21.311 helix_view::editor [ERROR] Failed to initialize the LSP for
source.verilog
{ cannot find binary path }2023-03-10T14:12:40.584 helix_view::editor [ERROR] Failed to initialize the LSP for
source.verilog
{ cannot find binary path }2023-03-10T14:13:13.834 helix_term::application [ERROR] Language Server: Method not found client/registerCapability
2023-03-10T14:13:14.068 helix_term::application [ERROR] Language Server: Method not found window/showMessageRequest
2023-03-10T14:13:14.068 helix_term::application [ERROR] Language Server: Method not found window/showMessageRequest
2023-03-10T21:50:56.799 helix_view::editor [ERROR] Failed to initialize the LSP for
source.verilog
{ cannot find binary path }2023-03-10T21:51:04.875 helix_term::application [ERROR] Language Server: Method not found client/registerCapability
2023-03-10T21:51:05.110 helix_term::application [ERROR] Language Server: Method not found window/showMessageRequest
2023-03-10T21:51:05.110 helix_term::application [ERROR] Language Server: Method not found window/showMessageRequest
2023-03-10T21:55:14.994 helix_view::editor [ERROR] Failed to initialize the LSP for
source.verilog
{ cannot find binary path }2023-03-10T21:55:22.243 helix_term::application [ERROR] Language Server: Method not found client/registerCapability
2023-03-10T21:55:22.474 helix_term::application [ERROR] Language Server: Method not found window/showMessageRequest
2023-03-10T21:55:22.474 helix_term::application [ERROR] Language Server: Method not found window/showMessageRequest
2023-03-10T22:03:27.299 helix_view::editor [ERROR] Failed to initialize the LSP for
source.verilog
{ cannot find binary path }2023-03-10T22:03:33.486 helix_term::application [ERROR] Language Server: Method not found client/registerCapability
2023-03-10T22:03:33.716 helix_term::application [ERROR] Language Server: Method not found window/showMessageRequest
2023-03-10T22:03:33.716 helix_term::application [ERROR] Language Server: Method not found window/showMessageRequest
Platform
Linux
Terminal Emulator
Alacritty
Helix Version
helix 22.05 (1de17a2)
The text was updated successfully, but these errors were encountered: