Closed jpmeijers closed 3 years ago
@cmaglie should we move to arduino-cli
?
Using the following configuration symlinks are followed:
replace github.com/arduino/arduino-cli => C:\some local dir\arduino-cli
to go.mod.No changes to the code were needed.
Thanks so much for reporting this @jpmeijers! I am able to reproduce the bug using Arduino IDE 1.8.10 (arduino-builder 1.4.7), but no problem with Arduino IDE 1.8.16 (arduino-builder 1.6.1). So I'll close this as resolved. Feel free to comment if you find the issue still occurs with the latest version.
I have a project consisting of a single folder containing most of my code, and a couple of sketch directories which mostly contain tests and production sketches.
Example layout:
Inside the sketch I will include the appropriate sources using:
#include "src/OneWire/OneWire.h"
#include "src/custom library 1/library.h"
This layout works perfectly under Ubuntu, but using Windows it does not. On Windows I get an error saying
testHardware:6:10: error: src/OneWire/OneWire.h: No such file or directory
Or more verbose:
It seems like Arduino Builder on Windows does not follow symlinks in the project root directory, neither in the
src
subdirectory - which should be included recursively.Tested on: