-
-
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
Getting error when trying to open a .ino file with the arduino language server #180
Comments
I have the same issue. This LSP message gets displayed as soon as I open the .ino file:
This Arduino LSP was working fine a few months back. |
I may have a possible fix. For everyone who is facing this issue, I was having the exact same issue, and JUST COULDN'T FIGURE IT OUT. But finally! I have managed to fix it for myself. My config was just the fact that I was using NeoVim with the Arduino LSP, and the Arduino-cli to to upload sketches. But to check it out, I downloaded the official ide, and turns out that the LSP wasn't working EVEN THERE! So, I tried compiling a Hello, World program, and it showed me an error saying, "serial not found", turns out, my system-wide install of python was missing the pyserial library. Which is really simple to fix! Just try the Note: The pipx install didn't work, and had to use the --break-system-packages instead. |
@mroavi Let me know if my suggested fix works for you!! |
I already had pyserial globally installed 😔.
I still get
when I open an .ino file in neovim. Here is my LSP log: Click to expand!
|
I finally fixed my problem. When I updated the LSPs installed in my Mason setup, clangd was updated, and the path to its executable changed. I updated it to the new path, and everything works fine now. Sorry for the noise. The problem I was having is different from the one that the OP described. I assumed it was the same since we both experienced the issue on the exact same day. My mistake. |
Describe the problem
Failed to run client.before_init for settings/plugins/lspconfig
vim/shared.lua:0: Cannot deepcopy object of type userdata
stack traceback:
vim/shared.lua: in function 'deepcopy'
vim/shared.lua: in function 'deepcopy'
vim/shared.lua: in function 'deepcopy'
vim/shared.lua: in function 'deepcopy'
vim/shared.lua: in function 'deepcopy'
vim/shared.lua: in function 'deepcopy'
...nvim/lazy/neoconf.nvim/lua/neoconf/plugins/lspconfig.lua:44: in function 'on_config'
....local/share/nvim/lazy/neoconf.nvim/lua/neoconf/util.lua:47: in function <....local/share/nvim/lazy/neoconf.nvim/lua/neoconf/util.lua:46>
[C]: in function 'func'
...al/share/nvim/lazy/nvim-lspconfig/lua/lspconfig/util.lua:54: in function 'func'
...al/share/nvim/lazy/nvim-lspconfig/lua/lspconfig/util.lua:54: in function <...al/share/nvim/lazy/nvim-lspconfig/lua/lspconfig/util.lua:52>
[C]: in function 'pcall'
...share/nvim/lazy/nvim-lspconfig/lua/lspconfig/configs.lua:207: in function 'make_config'
...share/nvim/lazy/nvim-lspconfig/lua/lspconfig/manager.lua:203: in function 'add'
...share/nvim/lazy/nvim-lspconfig/lua/lspconfig/manager.lua:278: in function <...share/nvim/lazy/nvim-lspconfig/lua/lspconfig/manager.lua:267>
[C]: in function 'pcall'
...l/share/nvim/lazy/nvim-lspconfig/lua/lspconfig/async.lua:5: in function <...l/share/nvim/lazy/nvim-lspconfig/lua/lspconfig/async.lua:4>
To reproduce
I am using Astrovim, and installed arduino language server with mason.
Expected behavior
For the Language server to start and work. Right now it doesn't. it can just make the syntax. But no completion
Arduino Language Server version
0.7.6
Arduino CLI version
arduino-cli Version: 0.35.3 Commit: 95cfd654 Date: 2024-02-19T13:24:18Z
Operating system
Linux
Operating system version
Linux Mint with i3
Additional context
No response
Issue checklist
The text was updated successfully, but these errors were encountered: