-
-
Notifications
You must be signed in to change notification settings - Fork 19
Open
Description
i have Arduino Nvim ad i wanted autocomplete , etc ... so when i installed arduino-language-server i get:
LSP[arduino_language_server]: Error INVALID_SERVER_MESSAGE: { error = { code = -32603, message = "-32001 invalid AST" }, id = 10, jsonrpc = "2.0", result = vim.NIL }
a yaml file in the same dir exists with contains :
default_fqbn: esp8266:esp8266:generic default_port: /dev/ttyUSB0
my lua plugin file (after some help with chatgpt)
cmd = {
"arduino-language-server",
"-cli", "arduino-cli",
"-cli-config", vim.fn.expand("~/.arduino15/arduino-cli.yaml"),
"-clangd", "/usr/bin/clangd",
"-fqbn", "esp8266:esp8266:generic",
"-build-path", vim.fn.expand("~/.cache/arduino-lsp-build"),
}
PS: If i run the command above directly onto my terminal it works normally as far as i know
arduino-language-server, clangd, arduino-cli all installed system-wide
Metadata
Metadata
Assignees
Labels
No labels