-
-
Notifications
You must be signed in to change notification settings - Fork 114
arduino-builder fails if tools directory contains broken symlinks #159
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
Comments
I was editing a file in my own library with Emacs and this happened:
For those not familiar with Emacs: that is the lock file it creates and it is a symlink to |
Fixes arduino#159, please make sure that it doesn't introduce any regression Tests are passing on Linux but something nasty could happen on different OS
Fixes arduino#159, please make sure that it doesn't introduce any regression Tests are passing on Linux but something nasty could happen on different OS Signed-off-by: Martino Facchin <[email protected]>
Hi @lmoellendorf , |
Not completely fixed: it still fails if there is a broken symlink directly under |
Ugh, are you sure about that? I tried to reproduce by creating a broken symlink in |
That depends on which libraries the sketch includes and where they are located:
Clarification: 'fails' means that the directory in question is not added to the search path. The compilation may still succeed if the header can be found under a 'clean' directory. |
Got it! I've been able to reproduce, reopening |
This replaces 8bbac23 and solves arduino#159 (again)
Hi @oqibidipo , could you test #216 as soon as @ArduinoBot produces the build? Thanks! |
Looks good. |
Saw this in 1.8.1 downloaded tonight. It wouldn't have been a problem if there had been an error message about the bad link, but since the only error message was a failure to include the .h file from a library that really was there, it took hours to track down the real problem. |
Fixed by merging 14ca8f2 |
Steps to reproduce:
Create a tools dir with broken symlink:
mkdir tools-dir
ln -s /no/way tools-dir/broken-link
Call arduino-builider with created tools dir:
~/Makeblock/arduino-1.6.9/arduino-builder -hardware "~/Makeblock/arduino-1.6.9/hardware/" -tools "~/tools-dir" -fqbn "arduino:avr:uno" -verbose ~/Arduino/mBot/mBot-default-program/mBot-default- program.ino
The error is:
stat tools-dir/broken-link: no such file or directory
Note, this error also occurs if a valid tools directory is specified which contains broken sym-links.
The text was updated successfully, but these errors were encountered: