-
-
Notifications
You must be signed in to change notification settings - Fork 114
Build fails with spaces in path #163
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
From @HP-Sparks on June 21, 2016 9:43 The references to "/home/jenkins/... ", etc... disappeared once I removed a space in the name of an intermediary folder. (didn't spotted it on this 10" NetBook machine...) So, this may me a useful hint for a bug hunt... Best regards, |
The "jenkins" stuff is just a reference to the directory where the arduino-builder utility is compiled, it is just informative. The actual error is
Does that actually fix compilation? Or does it only change the error message? If the latter, what error message remains? Also, as suggested before, make sure to enable verbose compilation for more details. |
From @cmaglie on June 21, 2016 10:9
never saw that I guess it's worth looking how the builder handles errors here:
maybe the file path is passed internally as a format string? |
From @HP-Sparks on June 21, 2016 10:9 @matthijskooijman, No more problem after removing that space. So, may be it is a quick and dirty fix to be addressed by this developer(?) to make Arduino IDE for Linux (only?) able to accept spaces in file/folder/path names. But, are spaces well accepted by other components like avrdude, avrgcc, etc... ? |
So the actual problem is that a space in a filename or directory somewhere breaks compilation. Where exactly did you have this space? |
From @HP-Sparks on June 21, 2016 10:31 @matthijskooijman , At first, I just open the .ino file of the "TFT_Oscillo" project from a folder named "new folder" in my ~/Downloads/ directory. |
From @HP-Sparks on June 22, 2016 0:13 @matthijskooijman , @cmaglie , Did you manage to reproduce the problem or is it only on my system/PC ? |
@HP-Sparks, I moved your issue to this repository, since it seems to be a problem in arduino-builder, not the Arduino IDE. I haven't tried to reproduce it yet, and I might not find the time in the near future (but it's good to have a record of this problem for later). Looking at your description, I believe you had a space in the sketch name, but also had a sketch folder that did not match the name of the primary .ino file (I didn't realize you could even continue in this case without renaming the file or directory, there might be quite some code that assumes you cannot). I'm not sure which of these would cause the issue. Perhaps there's one more thing you could try: Download the latest hourly build from arduino.cc, which will have some more improvements compared to 1.6.9. It would be good to confirm that the issue still exists there. |
@matthijskooijman , Thank you for your feedback. Regards, |
@HP-Sparks, you should be able to download and unzip the nightly build, without actually having to install it, so you can just run it besides your existing install :-) |
Closing as fixed |
From @HP-Sparks on June 21, 2016 8:59
Hi,
I just installed the Arduino IDE v1.6.9 64-bit on a Linux Mint 17.3 Cinnamon 64-bit machine.
Trying to compile an old project involving .h files for which I have to search for hints on many different Web sites since many different versions exist (...), I'm also facing the following error messages:
`Arduino: 1.6.9 (Linux), Board: "Arduino/Genuino Uno"
*errors.errorString invalid syntax
/home/jenkins/jenkins/jobs/arduino-builder-linux64/workspace/src/arduino.cc/builder/i18n/errors.go:19 (0x4b0d72)
/home/jenkins/jenkins/jobs/arduino-builder-linux64/workspace/src/arduino.cc/arduino-builder/main.go:362 (0x403ba0)
/home/jenkins/jenkins/jobs/arduino-builder-linux64/workspace/src/arduino.cc/arduino-builder/main.go:268 (0x402a3a)
/opt/go/src/runtime/proc.go:63 (0x4151d3)
/opt/go/src/runtime/asm_amd64.s:2232 (0x43b271)
Error compiling for board Arduino/Genuino Uno.
This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.
`
Seems like hard-coded paths references as there is No "Jenkins" user on this system. (see "/home/jenkins/..." in above error messages)
Trying to compile a basic example like "blink" doesn't show any error.
Any idea / suggestion for a proper workaround until this bug get fixed ?
Thanks in advance.
Best regards,
HP_
Copied from original issue: arduino/Arduino#5059
The text was updated successfully, but these errors were encountered: