-
-
Notifications
You must be signed in to change notification settings - Fork 17
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
Replace dependency while waiting for fix to be merged #199
base: main
Are you sure you want to change the base?
Conversation
It should be noted that this would cause
If you choose not to merge this PR for that reason, I request that you at least leave it open so that others using Neovim v0.10+ can find this fix. Workaround install instructions are: git clone https://github.com/speelbarrow/arduino-language-server.git
cd arduino-language-server
go install |
Hey, |
@diffusive0047 This workaround allows the language server to properly attach to the buffer, which lets it work at all. The message in |
Hi @speelbarrow I just tested this and it is working for me. Also had to use Edit: no, apparently it is not working. I was sure that the buffer was attached first, but now not any more :/ . Edit 2: Here are some logs:
|
Hi @cristobaltapia! I cloned speelbarrow's repo in /tmp, entered the arduino-language-server directory and ran: I then navigated to ~/.local/share/nvim/mason/bin, deleted the arduino-language-server symlink created by Mason and then created a new symlink to /tmp/arduino-language-server/arduino-language-server. I used clangd from Mason in my config. My lsp.lua: local lspconfig = require('lspconfig')
require('lspconfig').arduino_language_server.setup {
cmd = {
"/Users/valentino/.local/share/nvim/mason/bin/arduino-language-server",
"-clangd", "/Users/valentino/.local/share/nvim/mason/bin//clangd",
"-cli", "/usr/local/bin/arduino-cli",
"-cli-config", "/Users/valentino/Library/Arduino15/arduino-cli.yaml",
"-fqbn", "arduino:renesas_uno:unor4wifi"
},
root_dir = lspconfig.util.root_pattern("*.ino"),
filetypes = { "arduino" },
autostart = true,
log_level = vim.lsp.protocol.MessageType.Log,
settings = {
arduino_language_server = {
log = {
verbosity = "debug"
}
}
}
} My environment: With these steps, the ALS attaches to the buffer when i open an .ino file in Neovim. Hope this is any help :) |
Hi @speelbarrow. I tested the proposed fix and I am obtaining the same errors as mentioned by @cristobaltapia. I am including the arduino-language-server logs as well as the similar line under the lsp logs.
All that I am noticing is is that the following notifications generated by my sketch is not being propagated to clangd: Unfortunately this is quite out of my domain, I hope the logs at least provide some use. My environment is:
|
Please check if the PR fulfills these requirements
Replaces the dependency on bugst/go-lsp with a patched version created by @mike-lloyd03 and organized together with the latest upstream commits by myself. This is a temporary measure to restore compatibility with Neovim v0.10+ while waiting for Fix for nvim 10+ bugst/go-lsp#5 to be merged.
Because bugst/go-lsp's
go.mod
file has been updated to Go 1.22, I have also updated this package'sgo.mod
from Go 1.21.5 to Go 1.22.8. In order to keep the Actions running, I've updated the Go version in DistTasks.yml as well.Arduino LS "rpc.lua" problem with neovim #186.
What is the new behavior?
Resolves Arduino LS "rpc.lua" problem with neovim #186.
Other information:
I'd like to re-iterate that this is @mike-lloyd03's fix from nvim-lspconfig + arduino-language-server doesn't attach to buffer #187, not mine. I've just packaged it all together with the latest commits from bugst/go-lsp to make this PR.