Page 1 of 1

cannot open function declaration

Posted: Thu Oct 10, 2024 5:56 am
by lilarcor
Hi,

I installed the latest eclipse-IDE and ran into issue of cannot open declaration of a function.

it prompted a error in the console saying that:

java.io.UncheckedIOException: java.io.IOException: Cannot run program "clangd" (in directory "C:\Espressif\frameworks\esp-idf-v5.3.1"): CreateProcess error=2, The system cannot find the file specified

java.util.concurrent.CompletionException: java.io.UncheckedIOException: java.io.IOException: Cannot run program "clangd" (in directory "C:\Espressif\frameworks\esp-idf-v5.3.1"): CreateProcess error=2, The system cannot find the file specified
at java.base/java.util.concurrent.CompletableFuture.encodeThrowable(CompletableFuture.java:315)
at java.base/java.util.concurrent.CompletableFuture.completeThrowable(CompletableFuture.java:320)
at java.base/java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1770)
at java.base/java.lang.Thread.run(Thread.java:833)

I tried reinstalled the software it doesnt help.

Anyone has solution to this?

Thank you

Re: cannot open function declaration

Posted: Mon Oct 14, 2024 11:38 am
by ESP_kondalkolipaka
Hello,

Looks like IDE was unable to figure out the correct clangd path for LSP Editor.
https://github.com/espressif/idf-eclips ... figuration

Could you check the preferences? clangd path should point to the correct clangd executable.
Screenshot 2024-10-14 at 1.35.11 PM.png
Screenshot 2024-10-14 at 1.35.11 PM.png (550.71 KiB) Viewed 1034 times