Bug 1298 : Command line interface
Last modified: 2010-02-23 10:11




Status:
RESOLVED
Resolution:
DUPLICATE of bug 1048
Priority:
P2
Severity:
normal

 

Reporter:
fv
Assigned To:
fry

Attachment Type Created Size Actions

Description:   Opened: 2009-07-31 05:40
Hi,

The command line interface (Commander.java) does not works. I managed to
identify the following problem but was not able to correct them:

- At processing.app.Sketch.preprocess(Sketch.java:1420): the
Base.importToLibraryTable is not initialized. Thus the
Base.importToLibraryTable.get(...) results in a NullPointerException.
Seems the initialization stuffs made in Base.rebuildImportMenu(...) are not
done in the Commander interface. I think it's somewhat normal as this
function use JMenu and GUI stuffs that shouldn't be used in Commander. A
basic solution i found is check if the HshTable is null and construct it
just before the 'get' that throws the exception. Anyway initialization
stuffs that are done in rebuildImportMenu(...) may be done in the commander
interface too.

- The other problem that i was able to correct is that --preferences
option is not parsed in Commander.java. A simple solution to correct this
is to add the following "else if" statement in Commander.java (svn 168):

...
133 } else if (arg.startsWith(preferencesArg)) {

134 preferencesPath = arg.substring(preferencesArg.length());
135
136 } else if (arg.startsWith(platformArg)) {
. ...



Regards,
F.
Additional Comment #1 From fry 2009-07-31 06:49


*** This bug has been marked as a duplicate of 1048 ***
Additional Comment #2 From fry 2010-02-23 10:11
*** Bug 1476 has been marked as a duplicate of this bug. ***