gepd / Deviot

Sublime Text plugin for IoT development based in PlatformIO ecosystem (Arduino IDE)
Apache License 2.0
306 stars 56 forks source link

is this normal compile ? #212

Open tablatronix opened 6 years ago

tablatronix commented 6 years ago

dev version

I put a warning in a .h file, and noticed it outputs twice does the precompiler run twice on .h files?

Compiling .pioenvs\esp32doit-devkit-v1\src\OnDemandConfigPortal.ino.o
In file included from C:/Users/user/documents/projects/arduino/sketches/libraries/WiFiManager/examples/OnDemandConfigPortal/OnDemandConfigPortal.ino:1:0:
C:/Users/user/documents/projects/arduino/sketches/libraries/WiFiManager/WiFiManager.h:38:10: warning: #warning "WEBSERVER not implemented in espressif/esp32, see readme notes" [-Wcpp]
#warning "WEBSERVER not implemented in espressif/esp32, see readme notes"
^
Compiling .pioenvs\esp32doit-devkit-v1\libe17\WiFiManager\WiFiManager.o
In file included from C:\Users\user\documents\projects\arduino\sketches\libraries\WiFiManager\WiFiManager.cpp:14:0:
C:\Users\user\documents\projects\arduino\sketches\libraries\WiFiManager\WiFiManager.h:38:10: warning: #warning "WEBSERVER not implemented in espressif/esp32, see readme notes" [-Wcpp]
#warning "WEBSERVER not implemented in espressif/esp32, see readme notes"
^
Archiving .pioenvs\esp32doit-devkit-v1\libe17\libWiFiManager.a
Linking .pioenvs\esp32doit-devkit-v1\firmware.elf
gepd commented 6 years ago

I noted the first time I used the WiFiManager, I have not had time to verify it but, seems like the warning will be displayed for each #include to the .h file

You can see the first call is made in the OnDemandConfigPoral.ino

C:/Users/user/documents/projects/arduino/sketches/libraries/WiFiManager/examples/OnDemandConfigPortal/OnDemandConfigPortal.ino:1:0:

And the second one in the WiFiManager.cpp

C:\Users\user\documents\projects\arduino\sketches\libraries\WiFiManager\WiFiManager.cpp:14:0:

Seems normal to me, does Arduino IDE display the same?

tablatronix commented 6 years ago

Ill check arduino I added a ifdef to .cpp and it still did it