Skip to content

Script Interpreter issues #308

@ctrueden

Description

@ctrueden

@acardona made an issue report on the ImageJ Forum about the Script Interpreter:

The issue of printing within the interpreter is easy to solve by redirecting stdout to a PrintWriter that writes to the interpreter.

Other issues:

  1. Fails to keep state, i.e. fails to write the executed commands to a file. The error is puzzling:
WARNING: Couldn't flush user prefs: java.util.prefs.BackingStoreException: /home/albert/.java/.userPrefs/org/scijava/script/_!%g!a@"z!(@!bw"y!(k!.g"v!()!~w!u!(:!}w"p!'o!}@"2!'%!.g"w!'w!d@"n!'k!bg"z!#4!cw"j!()!a@"w!(@!a@"u!'c!.g"j!'w!bw"q!(`!cg"l!#4!@w"s!'8!ag"1!()!~@"^!':!cg"p!(!!d!"&!'4!~w"p!'4!~@== create failed.
  1. The cursor blinks.

  2. When I open a new interpreter, it doesn’t remember the last language that was chosen.

  3. Can’t select commands to re-execute them with e.g. a key binding or a popup menu. I have to select, copy-paste, then push return.

  4. Checking the “Show variable types” doesn’t seem to do anything.

  5. I can’t collapse the table of variables to nothing. Given its apparent uselessness, it is screen noise. In any case it should be fully collapsible.

  6. I have no idea what the list of variables is for or about. Typing the variable into the prompt and pushing return shows that the symbol is not bound to anything (at least in clojure).

  7. The built-in commands e.g. “:lang” should not be bound to a name that starts with “:” in clojure. These can collide with keys for dictionaries. I suggest using something that can’t be bound in any language, perhaps something like what psql (postgres prompt) does: use a leading backslash “\”.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions