idf-eclipse-plugin icon indicating copy to clipboard operation
idf-eclipse-plugin copied to clipboard

Does not resolve any libraries (IEP-1148)

Open hcanak opened this issue 2 years ago • 10 comments

Describe the bug **I want to develop an RFID application using esp32-c3. My rfid chip has its own library. I created a blank project and copy the rfid libraries to the project folder. When i open the library files i see that it does not resolve include files. How can i fix this issue? Thanks for all...

See picture please:**

Espressif-IDE Product Information: Operating System: windows 10 Java Runtime Version: 21.0.1+12-LTS-29 Eclipse Version: 4.29.0.v20230903-1000 Eclipse CDT Version: 11.3.0.202307110141 IDF Eclipse Plugin Version: 2.11.1.202310270725 ESP-IDF v4.4.6-dirty Python set for IDF_PYTHON_ENV: Python 3.12.1

error.log

image

image

hcanak avatar Dec 21 '23 20:12 hcanak

Hi @hcanak Do you see this issue even after the build? Headers and symbols will be resolved only after the build.

kolipakakondal avatar Dec 26 '23 09:12 kolipakakondal

Hi @hcanak Do you see this issue even after the build? Headers and symbols will be resolved only after the build.

Yes. Building gives same errors.

hcanak avatar Dec 26 '23 09:12 hcanak

From the log, I see parser is failed.

!ENTRY org.eclipse.cdt.core 4 0 2023-12-21 22:23:33.734 !MESSAGE Unexpected overload for binary operator 28: 'operator =='

Hi @hcanak If the build is sucessful and you still see headers and symbols issues, then this could be due to new C/C++ 20 language features used in the some of these files you have added, which is not yet supported by the Eclipse CDT Indexer.

I would suggest you can setup CDT LSP based editor which has a support for new language features. For setup, please refer to this documentation.

If the build not successful, then this might be an issue with configuring CMake build system. Please refer to this.

Ref: https://github.com/espressif/idf-eclipse-plugin/issues/861

kolipakakondal avatar Dec 26 '23 09:12 kolipakakondal

I have uninstalled everthing and started a fresh install using esp-idf-tools-setup-online-2.24.exe. After installation completed, I gives the folloving error when i want to install LSP.

image

image

hcanak avatar Dec 26 '23 15:12 hcanak

Here is what you can do:

  1. Download and install https://dl.espressif.com/dl/idf-eclipse-plugin/ide/Espressif-IDE-2.12.0-win32.win32.x86_64.zip
  2. Launch the IDE
  3. Install CDT-LSP using this udpate site https://dl.espressif.com/dl/idf-eclipse-plugin/updates/latest/
  4. Restart IDE
  5. Configure/Install ESP-IDF and Tools using menu "Espressif> ESP-IDF Tools Manager > Install Tools", here choose your existing esp-idf directory path, python and git and click on install.
  6. Configure clangd as mentioned here

Let us know how it goes.

kolipakakondal avatar Dec 27 '23 03:12 kolipakakondal

Here is what you can do:

  1. Download and install https://dl.espressif.com/dl/idf-eclipse-plugin/ide/Espressif-IDE-2.12.0-win32.win32.x86_64.zip
  2. Launch the IDE
  3. Install CDT-LSP using this udpate site https://dl.espressif.com/dl/idf-eclipse-plugin/updates/latest/
  4. Restart IDE
  5. Configure/Install ESP-IDF and Tools using menu "Espressif> ESP-IDF Tools Manager > Install Tools", here choose your existing esp-idf directory path, python and git and click on install.
  6. Configure clangd as mentioned here

Let us know how it goes.

All these steps success. I started example project but LSP does not seem to work, see below please:

log.log

image

hcanak avatar Dec 27 '23 18:12 hcanak

Hi @hcanak Syntax coloring seems to be missing, will take a look.

But editor will detect syntax errors, provide content proposals and works well with the new C/C++ lang features. For navigation you can use F3 or Ctrl+Click.

kolipakakondal avatar Dec 28 '23 05:12 kolipakakondal

Hi @hcanak Syntax coloring seems to be missing, will take a look.

But editor will detect syntax errors, provide content proposals and works well with the new C/C++ lang features. For navigation you can use F3 or Ctrl+Click.

The project builds succesfully but F3 or CRTL+Click does not work;

image

hcanak avatar Dec 28 '23 17:12 hcanak

Hello, I formatted windows and install everything several times, both in win10 and win11, the issue is same:( Is there any suggestion? @kolipakakondal

Is someone interested in this issue or should I consider to switch stm32?

hcanak avatar Jan 17 '24 06:01 hcanak

Hi @hcanak,

Apologies for the delayed response. Fortunately, we were able to reproduce and address this issue by updating dependencies. You can find the details of the fix here: https://github.com/espressif/idf-eclipse-plugin/issues/892#issuecomment-1999786320.

sigmaaa avatar Mar 15 '24 15:03 sigmaaa