Skip to content

Fix for nvim 10+ #5

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

Merged
merged 1 commit into from
Mar 19, 2025
Merged

Fix for nvim 10+ #5

merged 1 commit into from
Mar 19, 2025

Conversation

mike-lloyd03
Copy link
Contributor

The arduino-language-server depends on this library. However, as of nvim 10.0, the LSP fails to attach to the buffer and it cannot be used.

A simple fix was recommended in the issue above to change the datatype for jsonrcp.ProgressToken from json.RawMessage to string. The original datatype json.RawMessage is itself an alias for a byte array so coercing to a string would just ensure the content is UTF-8 I think. I'm not too familiar with how LSPs work but I think it's reasonable to expect that all data is UTF-8 encoded.

Fixes #3.

@DaiAoMori
Copy link

I'd second this request, arduino-language-server for nvim 0.10 really depends on it :)

@mike-lloyd03
Copy link
Contributor Author

@cmaglie Any chance I could get a review on this?

@nicolasauler
Copy link

Also seconding the request.
Can we get some eyes on this?

@schlosserleo
Copy link

would be really nice if this could get merged

@LAST7
Copy link

LAST7 commented Nov 30, 2024

Any update on this?

miracoly added a commit to miracoly/.nix-config that referenced this pull request Jan 5, 2025
Currently, this does not work because of an upstream bug in one of
arduino-language-server dependencies
(bugst/go-lsp#5)
@DaiAoMori
Copy link

I strongly believe this is still an issue, soooo... any news?

@brandoncc
Copy link

Please consider merging this so we don't have to keep using workarounds to make arduino-language-server work 😄

@cmaglie cmaglie merged commit 07d833c into bugst:master Mar 19, 2025
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.

Add new capabilities
8 participants