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:
1. Shut down Eclipse if running.
2. If you have a /usr/include/gnu/stubs-32.h file, remove or rename it temporarily.
3. Open Eclipse
4. Open any c, cpp, h or hpp file in a IDF project.
5. Notice errors.
6. Shut down Eclipse
7. Create an empty /usr/include/gnu/stubs-32.h
8. Reopen Eclipse and a source file.
9. Notice the errors have gone away.
10. 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.
**Screenshots**
![image](https://github.com/user-attachments/assets/838dfa3c-ea8e-46eb-935e-5f60820db471)
![image](https://github.com/user-attachments/assets/22e7ac7f-dd81-41c7-95f4-c2cdcbfbe8fc)
![image](https://github.com/user-attachments/assets/55710af1-0171-4cb4-8a38-08bcb72c755c)
**Espressif-IDE Product Information:**
[product-info.txt](https://github.com/user-attachments/files/16570243/product-info.txt)
**Eclipse Error log:**
[error.log](https://github.com/user-attachments/files/16570253/error.log)
Please attach the error log as described here https://github.com/espressif/idf-eclipse-plugin#error-log
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>
/usr/include/gnu/stubs.h:7:11: note: error occurred here
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'