PlatformIO Community

Issue with ESP-IDF <time.h>


#1

#include <time.h> results in the IDE not properly seeing setenv() and tzset(), though compile works fine.


#2

Which IDE? VSCode? Eclipse shows it properly in .platformio/packages/framework-espidf/components/newlib/include/stdlib.h (for setenv()) and time.h for tzset after you execute the Build and “Rebuild C/C++ project index” target


#3

Yes VScode. (Looks like I need 20 chars to post eh…)


#4

Then do a rebuild intellisense index (http://docs.platformio.org/en/latest/ide/vscode.html#project-tasks)


#5

I tried that but it did not work. Intelisense is still not seeing it properly.


#6

I still have not figured this out yet, sofar the only solution is to keep that file closed in the IDE unless I need to work on it.