Skip to content

Unity header not found when using symlink #5144

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

Open
jcw opened this issue Apr 30, 2025 · 1 comment
Open

Unity header not found when using symlink #5144

jcw opened this issue Apr 30, 2025 · 1 comment

Comments

@jcw
Copy link

jcw commented Apr 30, 2025

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
Copy link
Author

jcw commented Apr 30, 2025

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 jcw changed the title Unity library dependency lost when using symlink Unity header not found when using symlink Apr 30, 2025
@ivankravets ivankravets added this to the 6.1.19 milestone May 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants