espressif / idf-eclipse-plugin

Espressif-IDE (based on Eclipse CDT) for ESP-IDF CMake based projects 4.x and above
Eclipse Public License 2.0
295 stars 115 forks source link

Bullshitty error message about format specifier (IEP-1261) #992

Open powerbroker opened 2 weeks ago

powerbroker commented 2 weeks ago

Describe the bug specifying printf("%lu", ...)" for value of 'uint32_t' results in Eclipse error message 'Format specifies type unsigned long but argument is of type unsigned int...' even if code WAS BUILT SUCCESSFULLY. applying suggested fix - change '%lu' to '%u' - removes error message but BUILD FAILS with format error.

To Reproduce just compile printf from screenshot enjoy fake error / build failure of 'correct' code

Expected behavior successfully compiled code HAS NO ERRORS like this.

Screenshots image

Espressif-IDE Product Information: Operating System: windows 11 Java Runtime Version: 21.0.3+9-LTS Eclipse Version: 4.32.0.v20240601-0610 Eclipse CDT Version: 11.6.0.202403071917 IDF Eclipse Plugin Version: 3.0.0.202406051940 ESP-IDF v5.2.1-dirty Python set for IDF_PYTHON_ENV: Python 3.9.16