-
-
Notifications
You must be signed in to change notification settings - Fork 795
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
#includes in included files are not recognized #189
Comments
Is this a typo in this line |
No, sorry, that was just a typo on here. I created a minimal environment to provoke the bug. Running (.env)❯ platformio run
[Sun May 3 23:26:27 2015] Processing uno (targets: upload, platform: atmelavr, board: uno, framework: arduino)
-----------------------------------------------------------------------------
avr-g++ -o .pioenvs/uno/src/Motor.o -c -fno-exceptions -fno-threadsafe-statics -g -Os -Wall -ffunction-sections -fdata-sections -MMD -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO_ARCH_AVR -DARDUINO_AVR_UNO -DARDUINO=10603 -DPLATFORMIO=010400 -I.pioenvs/uno/FrameworkArduino -I.pioenvs/uno/FrameworkArduinoVariant .pioenvs/uno/src/Motor.cpp
In file included from .pioenvs/uno/src/Motor.cpp:1:0:
.pioenvs/uno/src/Motor.h:1:19: fatal error: Servo.h: No such file or directory
#include <Servo.h>
^
compilation terminated.
scons: *** [.pioenvs/uno/src/Motor.o] Error 1
|
@valeros Please re-test it. Thanks in advance! |
@cqql Thanks for report. I've just reproduced it and will fix tomorrow. |
@cqql Please re-test it using PlatformIO Development Version. Thanks in advance! |
Now it works as expected. Thanks a lot :) |
Hi,
I wrote a wrapper for
Servo.h
When I run
platformio run
, it does not recognize the#include <Servo.h>
directive and so the-I
switch for it is missing, when platformio calls avr-g++. I tracked it down to this line, but do not know SCons, so I hope, that this is enough to fix it. The problem seems to be, thatenv.File
is constructing anSCons.Node.FS.File
object for the path"src/motor.h"
, but theFile
constructor manipulates this path to"scripts/src/motor.h"
, which does not exists. Thennode.get_text_contents()
returns""
, which obviously does not include the#include
directive.The text was updated successfully, but these errors were encountered: