-
-
Notifications
You must be signed in to change notification settings - Fork 7k
Command line options not working at all [OS X - Java 7 Bundle] #2342
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
Hmm, if that path changed, I suspect that the method of launching the application has changed and the new method doesn't pass on commandline arguments or something like that. @cmaglie, do you remember any changes in this regard? |
Thanks, that's indeed where the problem is. I just cloned the current master and built it, and there everything is correct. So it seems that it is "just" the binary download of the Java 7 version that has this issue. For some reason the Launcher got renamed in there. Can we expect a fix for this sometime soon? We would like to incorporate the command line functionality into Fritzing and this would save a lot of confusion. :) |
If you tried master, that's the 1.0.x release series. The 1.5.x releases come from the ide-1.5.x branch, so that might explain the difference. Could you try with ide-1.5.x as well? |
Sorry, I actually did try the |
@aknoerig |
@cmaglie, hmm any reason not to merge that branch into ide-1.5.x? It has (apparently) been used to release 1.5.8, so it shouldn't be hidden in a separate branch? Also, shouldn't the 1.5.8 tag be updated to point to this commit? It now doesn't point to the actual code used for the release (at least not for OSX)... |
If we merge the The best solution would be to make the java7 build parametric, so we can build for java6 and 7 with a single build.xml, but this is not a priority right now (BTW I'll be happy to review/merge a pull request if someone cares to do). |
Ah, I seen now that there are two different versions of the 1.5.8 release for OSX, didn't realize that. In that case, merging doesn't make sense indeed, but I think a 1.5.8-osx-java7 tag might be good? |
Yeah, I'm doing so. I'd want also to edit on the download page to make it clearer that the Java 7 version is still experimental. |
Thanks for the push, I just built it and indeed the problem concerning the command line is in there. But I'm not sure how it comes about. This is what I could find:
.
So it looks like this is introduced during the build process. |
I suspect the issue is with |
Thanks, but that's getting too involved for me, sorry! I have no clue about the differences between how Java 6 and 7 handle this. But I assume the simple fix would be to change the arduino-customised applauncher to use JavaApplicationStub instead of JavaAppLauncher, or vice versa. |
Fixed since 1.6.2 |
I don't believe this is fixed. I'm trying to run from command line using 1.6.4 at the moment and any instruction passed to /Applications/Arduino.app/Contents/MacOS/Arduino are simply ignored and the IDE starts with a blank new sketch - usually with the error of "can't open sketch ..." Could this be a regression? |
Confirmed it's working in nightly. How long until this hits release? I'm worried about NodeBots day coming up next weekend and us not having a reliable CLI tool for OSX for that. |
I'm trying to get the CLI to work as described here:
https://github.com/arduino/Arduino/blob/ide-1.5.x/build/shared/manpage.adoc
I'm using 1.5.8 with Java 7 on OS X, and am aware that I have to use the full path to
Arduino.app/Contents/MacOS/JavaAppLauncher
(which btw needs to be updated in the manpage). However, any command line arguments are always ignored, and Arduino is always launching with the GUI and an empty sketch.Thanks for any pointers.
The text was updated successfully, but these errors were encountered: