You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
In general, the switch to the LSP editor is a total disaster but here's a specific issue not previously reported...
If your host system isn't set up for 32 bit glibc development and doesn't have /usr/include/gnu/stubs-32.h, you get lots of errors in the LSP editor.
"Too many errors, stopping now" at the top of files.
Lots of "not founds" for esp-idf types and functions.
Lots of "not founds" for standard types like uint32_t.
Error "gnu/stubs-32.h" not found when doing #include <memory>
In included file: 'gnu/stubs-32.h' file not found
/usr/include/gnu/stubs.h:7:11:
note: error occurred here
Lots of namespace errors.
Reference to 'std' is ambiguous
/home/gtjoseph/.espressif/tools/xtensa-esp-elf/esp-13.2.0_20240530/xtensa-esp-elf/bin/../lib/gcc/xtensa-esp-elf/13.2.0/../../../../xtensa-esp-elf/include/c++/13.2.0/bits/unique_ptr.h:53:11:
note: candidate found by name lookup is 'std'
/home/gtjoseph/.espressif/tools/xtensa-esp-elf/esp-13.2.0_20240530/xtensa-esp-elf/bin/../lib/gcc/xtensa-esp-elf/13.2.0/../../../../xtensa-esp-elf/include/c++/13.2.0/vector:100:11:
note: candidate found by name lookup is 'std::std'
Project compile fine both in Eclipse and from command line using idf.py. It's just the editor that's messed up.
To Reproduce
Steps to reproduce the behavior:
Shut down Eclipse if running.
If you have a /usr/include/gnu/stubs-32.h file, remove or rename it temporarily.
Open Eclipse
Open any c, cpp, h or hpp file in a IDF project.
Notice errors.
Shut down Eclipse
Create an empty /usr/include/gnu/stubs-32.h
Reopen Eclipse and a source file.
Notice the errors have gone away.
Replace the empty stubs-32.h with your original one.
Expected behavior
No errors. Your host system should NOT be required to have a 32 bit glibc development environment.
The text was updated successfully, but these errors were encountered:
github-actionsbot
changed the title
Espressif-IDE 3.0.0 Indexer totally broken if /usr/include/gnu/stubs-32.h is missing
Espressif-IDE 3.0.0 Indexer totally broken if /usr/include/gnu/stubs-32.h is missing (IEP-1305)
Aug 10, 2024
Describe the bug
In general, the switch to the LSP editor is a total disaster but here's a specific issue not previously reported...
If your host system isn't set up for 32 bit glibc development and doesn't have /usr/include/gnu/stubs-32.h, you get lots of errors in the LSP editor.
#include <memory>
Project compile fine both in Eclipse and from command line using idf.py. It's just the editor that's messed up.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
No errors. Your host system should NOT be required to have a 32 bit glibc development environment.
Screenshots
Espressif-IDE Product Information:
product-info.txt
Eclipse Error log:
error.log
Please attach the error log as described here https://github.com/espressif/idf-eclipse-plugin#error-log
The text was updated successfully, but these errors were encountered: