Skip to content

Command line tool requires X to verify or upload? #2802

@jacobrosenthal

Description

@jacobrosenthal

Trying to docker the arduino command line tools. Most stuff works

[ root@a80a54ab13f1:~ ]$ /usr/local/share/arduino/arduino --get-pref pumpkins                                                             
[ root@a80a54ab13f1:~ ]$ echo $?
4
[ root@a80a54ab13f1:~ ]$ /usr/local/share/arduino/arduino --get-pref board   
uno
[ root@a80a54ab13f1:~ ]$ echo $?
0
[ root@a80a54ab13f1:~ ]$ 

But all verify or upload require X?

[ root@a80a54ab13f1:~ ]$ /usr/local/share/arduino/arduino --upload /root/tester/tester.ino --board arduino:avr:uno --port /dev/tty.usbmodem1411
Exception in thread "main" java.awt.HeadlessException: 
No X11 DISPLAY variable was set, but this program performed an operation which requires it.
    at sun.java2d.HeadlessGraphicsEnvironment.getDefaultScreenDevice(HeadlessGraphicsEnvironment.java:82)
    at processing.app.Base.nextEditorLocation(Base.java:476)
    at processing.app.Base.<init>(Base.java:245)
    at processing.app.Base.main(Base.java:162)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions