example-script-collectionwas intended to show how to manage scripts that show up in the main ImageJ menu, but not targeting script templates in the script editor.
Ah, ok, got it. What about this:
This is required so that templates are made available only when the corresponding script language is available.
Seems like this check is no longer happening and scripts are added independent of which language is available, is this correct or am I missing something in the code you linked above?
scijava/scripting-<foo>components, so the language will be available for those. The only chance of a missing language might be a component that ships scripts without an explicit Maven-side runtime dependency on the relevant
scripting-<foo>component—which would then prevent automated testing of the scripts. So I think it's OK.
scripting-groovy, but no runtime dependency. So it might be possible to have an ImageJ installation without Groovy support, which still shows this template in the menu...
@ctrueden I currently experience problems logging in to the ImageJ wiki. I get the following error message:
There seems to be a problem with your login session; this action has been canceled as a precaution against session hijacking. Go back to the previous page, reload that page and then try again.
Could this be related to your recent changes? Or should I look to fix things at our end? (I'm behind a proxied firewall, and noticed laggy TLS handshake behavior earlier...)
$wgMainCacheType = CACHE_ACCEL;to
$wgMainCacheType = CACHE_NONE;
CACHE_ACCELthing working in order for the
StopForumSpamextension to work.
StopForumSpamstill does not easily work. I'll dig more later when I have time.
Hi @frauzufall, do you have any clue why recent Travis CI builds on pull requests of
imagej-ui-swing fail? The error is:
sh: 0: Can't open /etc/init.d/xvfb The command "sh -e /etc/init.d/xvfb start" failed and exited with 127 during .
Colorconstructor is not recognised as such in the if statement of this method. Eclipse recognised it as a method of the class Roi. Eventhough, I have imported the Color class https://github.com/LauLauThom/ImageJA/blob/531d9fa22ea59dfe74e49456d48a4945994a59dc/src/main/java/ij/gui/Roi.java#L2192
newkeyword? It’s Java, not Jython ;-)
Hi guys, I am adding some new functions to the macro language to match some functions I added to the Roi class. I manage to have the following methods working into a macro equivalent: roi.setGroup(int x), roi.getGroup(), Roi.getCurrentGroup(), but I have a runtime issue with the last one Roi.setCurrentGroup(int x):. I dont get why...
Error: ')' expected in line 1: var ; initializeSciJavaParameters ( ) ; Roi . setCurrentGroup ( <5> ) ;
@LauLauThom just from looking at the other
set*() functions: they don’t have a
interp.getParens() statement… but I have no clue how the IJ1 Macro Interpreter works internally.
Before you invest too much effort in improving the legacy IJ1 code, you should contact Wayne directly to know whether he is willing to include your changes. Usually he’ll add changes in some of his own commits, instead of accepting any pull requests or similar.
var ; initializeSciJavaParameters ( ) ;statement is added by the SciJava preprocessing of the macro code in order to add the variables defined by script parameters. Unfortunately it shows up in the error message when the issue is in the first line of the macro : (
getParens()worked thanks! About Wayne, he did not reply when I suggested the idea on the forum so I decided to start anyway and learn some stuff on the way. I am thinking that if I propose only part of the solution, he might not be very motivated to implement it while if I have some solid prototype that the community can already try then he might be more willing to take the change