alexander-yakushev / ns-graph

Tool for drawing the dependencies between Clojure namespaces and Java classes.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

run in a pod

nha opened this issue · comments

commented

I used ns-graph to draw a namespace of my program, quite happy with it.
However I then ran my boot prod task on the server and it fails with:

clojure.lang.ExceptionInfo:
                            No X11 DISPLAY variable was set, but this program performed an operation which requires it.
    data: {:file "core.clj", :line 626}
java.awt.HeadlessException:
                            No X11 DISPLAY variable was set, but this program performed an operation which requires it.
sun.awt.HeadlessToolkit.getMenuShortcutKeyMask              HeadlessToolkit.java:  236
                                           ...
                          clojure.core/load/fn                          core.clj: 6008
                clojure.core/load/invokeStatic                          core.clj: 6007
                             clojure.core/load                          core.clj: 5991
                                           ...
            clojure.core/load-one/invokeStatic                          core.clj: 5812
                         clojure.core/load-one                          core.clj: 5807
                      clojure.core/load-lib/fn                          core.clj: 5852
            clojure.core/load-lib/invokeStatic                          core.clj: 5851
                         clojure.core/load-lib                          core.clj: 5832
                                           ...
               clojure.core/apply/invokeStatic                          core.clj:  659
           clojure.core/load-libs/invokeStatic                          core.clj: 5889
                        clojure.core/load-libs                          core.clj: 5873
                                           ...
               clojure.core/apply/invokeStatic                          core.clj:  659
             clojure.core/require/invokeStatic                          core.clj: 5911
                          clojure.core/require                          core.clj: 5911
                                           ...
       ns-graph.core/eval45127/loading--auto--                          core.clj:    1
          ns-graph.core/eval45127/invokeStatic                          core.clj:    1
                       ns-graph.core/eval45127                          core.clj:    1

I believe the solution to that issue would be to use boot pods to require the graphical code only when the task is called.