-
Notifications
You must be signed in to change notification settings - Fork 11
Long term idea: Move to clangd or Arduino LSP. #24
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
Comments
I will keep that in mind, but the current mindset is to keep things working without changing things too much, until there will be room for biger changes |
Just in case it will be relevant, I'll mention that Arduino IDE 2.x uses clangd. This is done via a wrapper tool named "Arduino Language Server", which provides the necessary interpretation between the Arduino sketch framework and the standard C++ that clangd needs: |
Thanks, I didn't realise that Arduino was using its own customised clangd LSP in its latest editor, it'd probably be better to use that. I can edit the issue's title to say something like "Long term idea: use the Arduino LSP" if so desired? |
To be clear, Arduino doesn't make any modifications to the clangd application itself. We run the stock clangd from LLVM (we do build the clangd binary from source for ease of distribution, but without any modifications at all to the source code). But the separate "Arduino Language Server" tool sits between Arduino IDE and clangd. |
Oh right, sorry! I noticed the README says this: "The Arduino Language Server is the tool that powers the auto-completion of the new Arduino IDE 2. It implements the standard Language Server Protocol so it can be used with other IDEs as well." I imagine that would still make using Arduino's wrapper the best choice? That way should Arduino team choose to make any customisations/extensions/whatever they would be easily brought to VS Code/ium. |
I was going to come here to request the same thing, to keep it as foss as possible and compatible with codium. It's worth considering as an option even if it would be in beta. |
Hello,
First and foremost - thank you for this community edition of the Arduino extension.
I'm wondering if you might consider changing this extension to no longer depend on Microsoft's C/C++ Extension?
I ask this because I like to use VSCodium, but due to the Microsoft's extension having proprietary parts and licensing it can't easily be used with open builds such as VSCodium. A popular alternative is the clangd extension.
Of course when this was under Microsoft's jurisdiction that would never happen, but it is a possibility for the community edition!
Thank you.
The text was updated successfully, but these errors were encountered: