platformio-core
platformio-core copied to clipboard
Unity header not found when using symlink
When I have a project with libdeps = jcw/jeeh in it, and run tests based on Unity, the dependency shows as:
Found 2 compatible libraries
Scanning dependencies...
Dependency Graph
|-- JeeH @ 7.0.0 (License: Unlicense, Path: /Users/jcw/code/jee/jeeh/boards/.pio/libdeps/f103r/JeeH)
|-- Unity @ 2.6.0 (License: MIT, Path: /Users/jcw/code/jee/jeeh/boards/.pio/libdeps/f
Building in test mode
But when I use lib_deps = symlink://.., then the unity.h header is not found, and dependencies show as:
Found 2 compatible libraries
Scanning dependencies...
Dependency Graph
|-- JeeH @ 7.0.0 (License: Unlicense, Path: /Users/jcw/code/jee/jeeh)
Building in test mode
Compilation then fails. It looks like some information got lost in the symlink case?
(PIO CLI 6.1.18, macOS)
Update: note that there are also some upper/lowercase differences (macOS FS is case-insensitive).
Oops, my bad: the second case was run with .pio/ still present. Unity IS installed in both cases.
But the problem as described remains: with a repository name it works, with a symlink it fails.