espressif / idf-eclipse-plugin

Espressif-IDE (ESP-IDF Eclipse Plugin) for ESP-IDF CMake based projects 5.x and above
https://docs.espressif.com/projects/espressif-ide/en/latest/index.html
Eclipse Public License 2.0
313 stars 121 forks source link

Cannot open declaration (IEP-1313) #1036

Open MrDuby opened 3 months ago

MrDuby commented 3 months ago

Describe the bug I installed the Eclipse base ide, Espressif IDE v3.0.0 on windows 10 professional. When I start a project or import any project I have no way to open function or variable declaration. On right click I cannot even find the option "Open Declaration" in the menu. Tried CTRL+click but I'm not even getting the Hyperlink to click to find declaration. When I select lets say the function and press F3 I get a pop-up message saying "The operation is not applicable to the current selection. Select a hyperlink target". The code compiles correctly though.

kolipakakondal commented 3 months ago

Hi @MrDuby Could you please check this https://github.com/espressif/idf-eclipse-plugin/issues/995#issuecomment-2276935107

amin352 commented 3 months ago

I have the same problem and I do many ways to solve the problem include the way you said in other topic, but the problem still remain. I can't open declaration in any way and the open declaration in Navigate tab also is not usable and is off please help

MrDuby commented 3 months ago

This is how I finally solved it. I downloaded the offline installer(Espressif-IDE 3.0.0 with ESP-IDF v5.2.2) and no more the online installer(Universal Online Installer 2.28). After the installation I had to also go to IDE toolbar->Espessif->ESP-IDF Manager then Add ESP-IDF image

amin352 commented 3 months ago

This is how I finally solved it. I downloaded the offline installer(Espressif-IDE 3.0.0 with ESP-IDF v5.2.2) and no more the online installer(Universal Online Installer 2.28). After the installation I had to also go to IDE toolbar->Espessif->ESP-IDF Manager then Add ESP-IDF image

Thanks for your solution I apply it and it works finally, BUUUUUT after closing ide again the problem still exist and not solving either

Ignisuti commented 1 week ago

None of these solutions work for me.

kolipakakondal commented 1 week ago

Hi @Ignisuti Could you please share an error log and LSP log?

Error log https://preview-docs.espressif.com/projects/espressif-ide/en/latest/troubleshooting.html?#error-log

LSP logs can be enabled from the preferences.

Screenshot 2024-11-19 at 11 30 49 AM
Ignisuti commented 1 week ago

I'm not sure how to send the log. This is what I have in my settings. However, there are no files at this location. I've restarted Eclipsed and re-compiled.

Screenshot 2024-11-19 001238

kolipakakondal commented 1 week ago

I'm not sure how to send the log. This is what I have in my settings. However, there are no files at this location. I've restarted Eclipsed and re-compiled.

Screenshot 2024-11-19 001238

Please navigate to the location mentioned in the dialog.

ex: /Users/myuser/workspace-devcon/languageServers-log/org.eclipse.cdt.lsp.server.log

Ignisuti commented 1 week ago

Sorry, I wasn't more clear in my response. Yes, I have navigated there and only see an empty folder.

ua100k commented 1 week ago

Same problem here. with 3.0. Previous versions have no issues.

Ignisuti commented 1 week ago

Espressif, if you're listening, you have free developers, like myself, at your disposal to help you better understand this issue. Please just tell us what data you need to troubleshoot this and how to get it, and we'll try to get it to you.

I tried to provide the log, but Eclipse isn't outputting the log. So, maybe that's where we need to troubleshoot first...

sigmaaa commented 5 days ago

Hi @Ignisuti,

The logs could also be viewed in the console. Can you see them there? Make sure to switch to the language server console first like here:

https://github.com/user-attachments/assets/5b1db7f4-366c-45a3-928d-161af7cf9200

Also, please take a look if clangd settings are set: Example: image

Here are short explanations of these variables:

Also, after building the project "C/C++ Language Server" process runs inside the IDE, and you can track it in the bottom right corner of the IDE. After this process finishes you should able to open declarations.

Ignisuti commented 5 days ago

I do not have the Language Servers option in my console. 20241125_113018

I'm not familiar with clangd, but based on what you have said, I believe mine is setup correctly. Untitled

sigmaaa commented 1 day ago

Hi @Ignisuti,

would it be possible to connect on MS Teams to work through this issue together? The problem is quite unusual, and we have not been able to reproduce it on our end. If this works for you, please write to ide.support@espressif.com with your time zone and a suitable time. We will then send you an invite.

Best regards, Denys

kolipakakondal commented 1 day ago

Error log https://preview-docs.espressif.com/projects/espressif-ide/en/latest/troubleshooting.html?#error-log

Can you please share an error log?

Most likely, the clangd server might be failing during processing.