platformio-core icon indicating copy to clipboard operation
platformio-core copied to clipboard

Unity header not found when using symlink

Open jcw opened this issue 8 months ago • 1 comments

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).

jcw avatar Apr 30 '25 17:04 jcw

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.

jcw avatar Apr 30 '25 17:04 jcw