These are chat archives for fiji/fiji

23rd
Apr 2016
Ulrik Günther
@skalarproduktraum
Apr 23 2016 12:54
oh wow, nice discussion — i had left after i posted the traceback though, sorry :(
thanks for the fix and the infos @kephale @ctrueden :+1:
Ulrik Günther
@skalarproduktraum
Apr 23 2016 18:18
@ctrueden: i think i found a small bug in the swing gui — when you go through history with up/down, there’s always a trailing \n appended, which is quite annoying — especially as they accumulate… i submitted a PR for that, after the fix it seems to work fine
Curtis Rueden
@ctrueden
Apr 23 2016 19:14
Thanks Ulrik! I noticed that bug too yeaterday and yeah, super annoying. Thanks for the fix.
Ulrik Günther
@skalarproduktraum
Apr 23 2016 19:15
np, the repl is really awesome!
mh, i just realized something which might be related to the fix...
when i run the python interpreter, i get
>>> n = 5.0f
SyntaxError: ("mismatched input '=' expecting EOF", ('<string>', 1, 2, 'n = 5.0f\n'))
no, actually that can’t be related, the trim() just modifies what comes from history
Ulrik Günther
@skalarproduktraum
Apr 23 2016 19:22
is there a way to make classes known to the interpreter?
so i can e.g. run var myobjinst = MyObject(some, parameter)?
Curtis Rueden
@ctrueden
Apr 23 2016 21:51
Python is broken like that yeah. Groovy works well. Clojure needs better Bindings handling before it will work.
You mean use the class' s short name? Import it. Language-specific.
or do you mean pass a specific object instance in? Then yes, set the var via the interpreter object.
See http://imagej.net/Scripting language links on right side bar.
@skalarproduktraum Almost every language page on that wiki has an "importing classes" subsection.
Ulrik Günther
@skalarproduktraum
Apr 23 2016 22:00
that would have been the obvious place to look, argh. thanks for pointing it out!
it is possible to have a startup script for the repl?