Skip to content
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

Update deprecated arduino-language-server docs #2875

Merged
merged 1 commit into from
Oct 26, 2023

Conversation

Arian8j2
Copy link
Contributor

arduino-language-server dropped supporting sketch.json so the example in docs doesn't work, instead you have to create sketch.yaml that also has different configuration keywords, for example this was old sketch.json format:

{
  "cpu": {
    "fqbn": "arduino:avr:uno",
    "port": "serial:///dev/ttyACM0"
  }
}

now in sketch.yaml format it's like this:

default_fqbn: arduino:avr:uno
default_port: /dev/ttyACM0

also arduino-cli board attach -p /dev/ttyACM0 test.ino command does not generate the default_fqbn: arduino:avr:uno part, it just generates default_port: /dev/ttyACM0, you need to explicitly specify board in attach command, example: arduino-cli board attach -p /dev/ttyACM0 -b arduino:avr:uno test.ino to generate ready to use sketch.yaml for lsp to work.

i couldn't find the exact commit that they dropped supporting sketch.json, but found a comment on one of issues from official arduino dev arduino/arduino-language-server#80 (comment)

@Arian8j2 Arian8j2 requested a review from glepnir as a code owner October 26, 2023 10:04
@github-actions
Copy link
Contributor

Do not change server_configurations.md directly. Edit the lua source file instead. See https://github.com/neovim/nvim-lspconfig/blob/master/CONTRIBUTING.md#generating-docs

@glepnir glepnir merged commit bd1b4dc into neovim:master Oct 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants