Open dizcza opened 2 years ago
Hi @dizcza,
sorry for the late reply. Looks like this issue in the eclipse itself https://bugs.eclipse.org/bugs/show_bug.cgi?id=445297#c8. The indexer does not recognize the _Atomic
keyword, which subsequently leads to the mentioned problem.
I don't see the indexer issue for the identical library for c++ - <atomic>
, so you can try to use it as a workaround, but you need to convert your project to c++.
fix related to the dirent.h
is on the master branch now and we will include it to the next release. I'll take a look on the issue related to the driver/sdmmc_host.h
and will keep you updated. Thanks for reporting it
Hi @dizcza,
Regarding the definition of SDMMC_SLOT_FLAG_INTERNAL_PULLU
from the filedriver / sdmmc_host.h
, can you check the indexer settings, please?
Right click on the project -> Properties -> General C / C ++ -> Indexer -> Index all header options
check if this option is disabled for your project or for your workspace settings. I just discovered that this option can lead to your indexer issue where you can navigate to the definition but still see it as unresolved inclusion.
I did some testing on the host
(peripherals -> sdio -> host) template, which is using this library. I don't see errors with index all header options
is disabled, and I see them otherwise. Also, with this option enabled, looks like headers order has some value for the indexer, so if I move driver/sdmmc_host.h
on the top, unresolved inclusions are gone.
The Indexer configuration was the default one, without the "Index all header options" option enabled. When I enabled it, apart from being unable to resolve SDMMC_SLOT_FLAG_INTERNAL_PULLUP
, it failed to resolve other things from the driver/sdmmc_host.h
header like SDMMC_FREQ_HIGHSPEED
. So I turned it off and moved the header to the top of a file. I didn't help either.
I can reproduce the problem with SDMMC_SLOT_FLAG_INTERNAL_PULLUP
only when this option is turned on, so I was thinking it was your case. We will investigate further, than.
well, the issue I've opened here is merely for you to know. I doubt this should be a high-priority task IMHO.
This is still an issue.
Describe the bug
stdatomic.h
functions and macros are shown in red in Eclipse with the IDF plugin. I'm not sure if this is an issue in the Eclipse itself or specific to the ESP-IDF plugin.To Reproduce
Expected behavior Eclipse recognizes the
atomic_int
keyword.Screenshots
Environment Information: eclipse_info.txt
ESP-IDF Tools Information:
IDF Eclipse Plugin Version: Version: 2.2.0.202108131352
Eclipse Error log: There are no errors in the build commands, and the "Error log" tab is empty.
List of unsupported reserved words Eclipse does not recognize the following keywords:
atomic_xxx
functions defined in<stdatomic.h>
DIR
,DT_DIR
and others in<dirent.h>
SDMMC_SLOT_FLAG_INTERNAL_PULLUP
defined indriver/sdmmc_host.h
(although I can navigate to its definition)