Probably smallest buging macro within Fiji scripting window

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Probably smallest buging macro within Fiji scripting window

CARL Philippe (LBP)
Dear all/Fiji team,

when writing the following macro within a Fiji scripting window:

e = 0;

the Fiji scripting window is compiling the code correctly.

But as soon as there is something after "e", like:

ea = 0;

eb = 0;

…

or even:

e0 = 0;

e1 = 0;

…

the following "Macro Error" gets outputed:

Statement cannot begin with '=' in line 2.

<=> ; call ( "net.imagej.legacy.plugin.IJ1MacroEngine.setOutput" , "result"
, result ) ;

I have just submitted a Fiji bug report on this a couple of minutes ago.

Also there is something that it not really clear for me, namely in such a
case (i.e. a bug only connected to the Fiji software/script window and that
is actually not applying to the vanilla ImageJ) should I only submit a Fiji
bug report or is it as well good to post an article here in order to share
it with the community?

I thank you a lot in advance for fixing this bug and as well as answering my
last question.

My best regards,

Philippe

 

Philippe CARL

Laboratoire de Biophotonique et Pharmacologie

UMR 7213 CNRS - Université de Strasbourg

Faculté de Pharmacie

74 route du Rhin

67401 ILLKIRCH

Tel : +33(0)3 68 85 41 84

 


--
ImageJ mailing list: http://imagej.nih.gov/ij/list.html
Reply | Threaded
Open this post in threaded view
|

Re: Probably smallest buging macro within Fiji scripting window

Gabriel Landini
On Wednesday 15 Oct 2014 09:29:57 Philippe CARL wrote:

> when writing the following macro within a Fiji scripting window:
> e = 0;
> the Fiji scripting window is compiling the code correctly.
> But as soon as there is something after "e", like:
> ea = 0;
> eb = 0;
> or even:
> e0 = 0;
> e1 = 0;
> the following "Macro Error" gets outputed:
>
> Statement cannot begin with '=' in line 2.
> <=> ; call ( "net.imagej.legacy.plugin.IJ1MacroEngine.setOutput" , "result"
> , result ) ;

This seems to happen only in Fiji if the first line of the macro starts with
"e". IJ1 is OK.

This macro, however, works fine in Fiji:
a=1;
e=2;
e0=a+e;
print (e0);

Cheers

Gabriel

--
ImageJ mailing list: http://imagej.nih.gov/ij/list.html
Reply | Threaded
Open this post in threaded view
|

Re: Probably smallest buging macro within Fiji scripting window

CARL Philippe (LBP)
Dear Gabriel,
I completely agree with your analysis and for example the following macro is
working as well:

setBatchMode(true);
e0 = 1;
print(e0);

My best regards,
Philippe

-----Message d'origine-----
De : ImageJ Interest Group [mailto:[hidden email]] De la part de
Gabriel Landini
Envoyé : mercredi 15 octobre 2014 10:19
À : [hidden email]
Objet : Re: Probably smallest buging macro within Fiji scripting window

On Wednesday 15 Oct 2014 09:29:57 Philippe CARL wrote:

> when writing the following macro within a Fiji scripting window:
> e = 0;
> the Fiji scripting window is compiling the code correctly.
> But as soon as there is something after "e", like:
> ea = 0;
> eb = 0;
> or even:
> e0 = 0;
> e1 = 0;
> the following "Macro Error" gets outputed:
>
> Statement cannot begin with '=' in line 2.
> <=> ; call ( "net.imagej.legacy.plugin.IJ1MacroEngine.setOutput" ,
"result"
> , result ) ;

This seems to happen only in Fiji if the first line of the macro starts with
"e". IJ1 is OK.

This macro, however, works fine in Fiji:
a=1;
e=2;
e0=a+e;
print (e0);

Cheers

Gabriel

--
ImageJ mailing list: http://imagej.nih.gov/ij/list.html

--
ImageJ mailing list: http://imagej.nih.gov/ij/list.html