-
-
Notifications
You must be signed in to change notification settings - Fork 7k
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
Fix command line with relative paths #5878
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me. Just tested this with the script that exposed this problem, that also works.
@cmaglie, are you also fixing the missing error handling? |
✅ Build completed. Please test this code using one of the following: ⬇️ http://downloads.arduino.cc/javaide/pull_requests/arduino-PR-5878-BUILD-639-linux32.tar.xz ℹ️ The |
Not yet, I didn't looked the internals yet, but from looking at the code that launch the build: try {
[............]
outputFile = new Compiler(sketch).build(progress -> {}, false);
} catch (Exception e) {
// Error during build
System.exit(1);
} it seems that an excpetion is raised also when a compile error occurs (that should not be an exception at all...) and in that case we should not print the exception/stacktrace. |
Yeah, probably indeed. Perhaps showing just the exception message and not the stacktrace is a compromise for now? Then at least something is shown on errors, instead of just nothing when some internal exception happens? |
I'll cover this in another PR. |
This fix #5836