Skip to content

--verify for 'release' version of arduino IDE executable on Windows #3461

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

Closed
pfeerick opened this issue Jul 4, 2015 · 5 comments
Closed
Assignees
Labels
Component: CLI The Arduino IDE's command line interface Component: IDE The Arduino IDE
Milestone

Comments

@pfeerick
Copy link
Contributor

pfeerick commented Jul 4, 2015

So, after reading the recent Adafruilt writeup on Travis CI integration (and getting it to work for both a library and a sketch github repo, yay!), I thought it would be handy to be able to have automated sketch verification on Windows also. So I tried the below cl and it didn't work how I expected... I get that of course the 'release' build of the Arduino IDE doesn't output any messages to the console after starting as it has already returned control to the OS... so my question is more along the lines of 'is running the 'debug' exe the officially supported method of accessing --verify and --upload on the Windows platform"? As if it ain't, and you should be able to do this with the release exe, then we've got ourselves a bug!

Release (arduino.exe)

D:\Open Source Programming\arduino-hourly>arduino --board arduino:avr:uno --verify "examples\01.Basics\Blink\Blink.ino"

[splash screen, loading configuration, initialising packages, preparing boards, then nothing]

Debug (arduino_debug.exe)

D:\Open Source Programming\arduino-hourly>arduino_debug --board arduino:avr:uno--verify "examples\01.Basics\Blink\Blink.ino"
Loading configuration...
Initializing packages...
Preparing boards...
Verifying...

Sketch uses 1,030 bytes (3%) of program storage space. Maximum is 32,256 bytes.
Global variables use 9 bytes (0%) of dynamic memory, leaving 2,039 bytes for local variables. Maximum is 2,048 bytes.
@pfeerick
Copy link
Contributor Author

pfeerick commented Jul 5, 2015

Yes, my mistake... sorry about that @matthijskooijman . I must have submitted #3460 by mistake as I had this one open for a while, and then had another thought about the Travis CI lockup I has having problems with, and then must have submitted this instead of closing it. On the Travis CI linux VM, it locks up at 'preparing boards' if you don't have the sketch in a correctly named sub-folder :( So moving the files into a subfolder fixed that issue. All that remains is the focus of this issue (-- verify / --upload on windows).

@ffissore
Copy link
Contributor

ffissore commented Jul 6, 2015

Using arduino.exe for CLI is useless. It will produce a sketch but it won't print any output. This is because of how apps work on windows: they can be either console or gui. gui apps produce no text output
Stick to arduino_debug when using CLI

@ffissore ffissore closed this as completed Jul 6, 2015
@ffissore ffissore added Component: IDE The Arduino IDE Component: CLI The Arduino IDE's command line interface labels Jul 6, 2015
@ffissore ffissore added this to the Release 1.6.6 milestone Jul 6, 2015
@ffissore ffissore self-assigned this Jul 6, 2015
pfeerick added a commit to pfeerick/Arduino that referenced this issue Jul 6, 2015
Amendment to CLI documentation re: Windows GUI/console executable differences and behaviours, as per arduino#3461, unless it is expected to change in the near future...
@carlosperate
Copy link
Contributor

Out of curiosity, when did this change happened? was it in 1.6.2?

@matthijskooijman
Copy link
Collaborator

#1970 (which is about the splash screen showing, but still related) suggests that arduino_debug.exe has been available since 1.5.7. I'm not sure what the situation before that was - probably just the arduino.exe showing no output.

@carlosperate
Copy link
Contributor

I'm pretty sure some of the 1.5.x arduino.exe versions (after the addition of arduino_debug.exe) would still print their output to the terminal, only difference being the splash screen being shown (which I personally liked, but I can understand the need to run cli commands without gui).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Component: CLI The Arduino IDE's command line interface Component: IDE The Arduino IDE
Projects
None yet
Development

No branches or pull requests

4 participants