These are chat archives for fiji/fiji

24th
Apr 2016
Ulrik Günther
@skalarproduktraum
Apr 24 2016 15:12
okay, i tried using context.getService(ScriptService.class).run() with the same context i’m using for InterpreterWindow, but that service seemingly does not know about object and the other vars
Ulrik Günther
@skalarproduktraum
Apr 24 2016 15:35
okay, i circumvented the issue now by adding two methods to InterpreterWindow, getREPL() and getInterpreter() — if you have a cleaner solution @ctrueden please let me know :)
Curtis Rueden
@ctrueden
Apr 24 2016 16:55
@skalarproduktraum Can you post a gist of what you are trying to do? I will look tonight or tomorrow.
Ulrik Günther
@skalarproduktraum
Apr 24 2016 18:22
thanks for having a look :)
Curtis Rueden
@ctrueden
Apr 24 2016 18:25
@skalarproduktraum IIRC you can feed an existing ScriptREPL to the InterpreterWindow constructor. Then you won't need the accessor.
Ulrik Günther
@skalarproduktraum
Apr 24 2016 18:26
i only see the public InterpreterWindow(final Context context) constructor
is there a way to feed it indirectly via the context or so?
Curtis Rueden
@ctrueden
Apr 24 2016 18:30
Oh sorry. I guess my memory is wrong. We should add that ctor. An accessor is good too.
Ulrik Günther
@skalarproduktraum
Apr 24 2016 18:31
okay, i’ll add it and send a PR, how about that?
Curtis Rueden
@ctrueden
Apr 24 2016 20:35
Sounds good! Thanks!
Ulrik Günther
@skalarproduktraum
Apr 24 2016 21:11
np, thank you for the repl — it’s incredibly awesome 8-)