cannot open function declaration

lilarcor
Posts: 2
Joined: Sat Aug 12, 2023 1:04 pm

cannot open function declaration

Postby lilarcor » Thu Oct 10, 2024 5:56 am

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

ESP_kondalkolipaka
Posts: 188
Joined: Wed Jul 17, 2019 5:26 pm

Re: cannot open function declaration

Postby ESP_kondalkolipaka » Mon Oct 14, 2024 11:38 am

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 415 times

Who is online

Users browsing this forum: No registered users and 9 guests