Update deprecated arduino-language-server docs #2875
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
arduino-language-server dropped supporting
sketch.json
so the example in docs doesn't work, instead you have to createsketch.yaml
that also has different configuration keywords, for example this was oldsketch.json
format:now in
sketch.yaml
format it's like this:also
arduino-cli board attach -p /dev/ttyACM0 test.ino
command does not generate thedefault_fqbn: arduino:avr:uno
part, it just generatesdefault_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 usesketch.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)