-
-
Notifications
You must be signed in to change notification settings - Fork 653
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
Vim (neovim): clangd and ccls gives errors with esp32s3box #1063
Comments
I tried to setup a plain teensy project and it works fine there so seem to be a issue with espressif? |
I got it working with clangd :) Changing the query driver to this: And I need the espressif clang version and .clangd file from the issue I linked above |
This issue has been automatically marked as stale because it has not had recent activity. Please provide more details or it will be closed if no further activity occurs. Thank you for your contributions. |
This is still an issue so should not be closed. |
Having the same problem here, could you actually fix your problem? Thanks! |
I'm also having this issue, specifically for the esp32s3 and the arduino framework. I have clangd working well for esp32 and esp32c3, and I'm achieving that by setting the It looks like either the compile_commands.json commands are not correct, or clangd is not able to parse those commands. Has anyone found the root of the problem, and a solution for this? |
This python script fixes it for me. :) As you wrote, the compile_commands need the full path
|
Thanks for the tip @Tloe but that one hasn't solved it in my case for the s3 :(. To be fair, the LSP is mostly working really well, but it's the errors I'm getting for Arduino functions that I can't seem to get rid of. Do you mind sharing what you have in your .clangd and clangd.setup to make this one work? |
I don't have a clangd.setup clangd:
|
oh sorry.. been a while since I set this up.. thought clangd.setup was a file :p
|
/home/t/dev/llvm-project-xtensa/ is a build of the patched version that I linked to in the first post.. |
Perfect, thanks for that - that will be the missing piece of the puzzle. Otherwise, everything else is equivalent. I appreciate the help! |
Linux (manjaro)
PlatformIO Core, version 6.1.7a3
Platform IO builds and uploads the project just fine, but in vim (neovim) I get some errors. I've tried both with clangd and ccls.
This is with clangd, I can use goto defenitions and go to function defenitions:
With ccls I get a lot of these errors when I use compile_commands.json and no errors with just the .ccls file from
pio project init
. No errors are actually shown in the code and I cannot use goto defenitions shortcuts so it dosn't seem to work properly:With this platformio.ini:
I run (I have also tried to generated compile_commands.json with bear but getting the same there):
pio project init --ide vim --board esp32s3box
pio run --target compiledb
This is my clangd setup (The --query-driver doesnt seem to do much):
This is my ccls setup:
I have also tried to follow these steps (this post is rather old though), but with the changes below using the platformio xtensa toolchain.:
espressif/esp-idf#6721 (comment)
The text was updated successfully, but these errors were encountered: