arduino-language-server icon indicating copy to clipboard operation
arduino-language-server copied to clipboard

Getting error when trying to open a .ino file with the arduino language server

Open franciscodeazeredo opened this issue 11 months ago • 5 comments

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

  • [X] I searched for previous reports in the issue tracker
  • [X] I verified the problem still occurs when using the latest version
  • [X] My report contains all necessary details

franciscodeazeredo avatar Mar 11 '24 21:03 franciscodeazeredo