Temporal Color Code: ReferenceError

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

Temporal Color Code: ReferenceError

Lorenz Maier
Hi everyone,

The Temporal Color Code Script on latest Fiji fails for me with the error message

ReferenceError: "importPackage" is not defined in <eval>

I can't even find an "importPackage" in the eval.

Best,
- Lorenz

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

Re: Temporal Color Code: ReferenceError

ctrueden
Hi Lorenz,

> The Temporal Color Code Script on latest Fiji fails for me with the
> error message
>
> ReferenceError: "importPackage" is not defined in <eval>
>
> I can't even find an "importPackage" in the eval.

I cannot reproduce -- it works for me.

I tried opening Bat Cochlea Volume, and executing Image > Hyperstacks >
Temporal Color-Code and pressing OK, and all works.

I also tried holding Shift while clicking Image > Hyperstacks > Temporal
Color-Code, which opens the script in the Script Editor, then running it
from there, and that also works.

Maybe try Help > Report a Bug to generate some information about your
installation? Have you customized it at all? See also
http://imagej.net/FAQ#How_can_I_verify_that_my_ImageJ_is_really_100.25_up_to_date.3F

Regards,
Curtis

On Thu, Mar 19, 2015 at 7:16 AM, Lorenz Maier <
[hidden email]> wrote:

> Hi everyone,
>
> The Temporal Color Code Script on latest Fiji fails for me with the error
> message
>
> ReferenceError: "importPackage" is not defined in <eval>
>
> I can't even find an "importPackage" in the eval.
>
> Best,
> - Lorenz
>
> --
> ImageJ mailing list: http://imagej.nih.gov/ij/list.html
>

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

Re: Temporal Color Code: ReferenceError

Lorenz Maier
Hi Curtis,

the error depends on the Java version executing Fiji. The bundled JRE runs fine. But as Clearvolume complained that it is too old, I removed the ./java folder, so my Java defaults to 1.8.0-b132.

Best,
- Lorenz


> On 19 Mar 2015, at 18:36, Curtis Rueden <[hidden email]> wrote:
>
> Hi Lorenz,
>
>> The Temporal Color Code Script on latest Fiji fails for me with the
>> error message
>>
>> ReferenceError: "importPackage" is not defined in <eval>
>>
>> I can't even find an "importPackage" in the eval.
>
> I cannot reproduce -- it works for me.
>
> I tried opening Bat Cochlea Volume, and executing Image > Hyperstacks >
> Temporal Color-Code and pressing OK, and all works.
>
> I also tried holding Shift while clicking Image > Hyperstacks > Temporal
> Color-Code, which opens the script in the Script Editor, then running it
> from there, and that also works.
>
> Maybe try Help > Report a Bug to generate some information about your
> installation? Have you customized it at all? See also
> http://imagej.net/FAQ#How_can_I_verify_that_my_ImageJ_is_really_100.25_up_to_date.3F
>
> Regards,
> Curtis
>
> On Thu, Mar 19, 2015 at 7:16 AM, Lorenz Maier <
> [hidden email]> wrote:
>
>> Hi everyone,
>>
>> The Temporal Color Code Script on latest Fiji fails for me with the error
>> message
>>
>> ReferenceError: "importPackage" is not defined in <eval>
>>
>> I can't even find an "importPackage" in the eval.
>>
>> Best,
>> - Lorenz
>>
>> --
>> ImageJ mailing list: http://imagej.nih.gov/ij/list.html
>
> --
> ImageJ mailing list: http://imagej.nih.gov/ij/list.html

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

Re: Temporal Color Code: ReferenceError

ctrueden
Hi Lorenz,

> the error depends on the Java version executing Fiji. The bundled JRE
> runs fine. But as Clearvolume complained that it is too old, I removed
> the ./java folder, so my Java defaults to 1.8.0-b132.

The problem is with Java 8, which removed the Rhino JavaScript engine in
favor of Nashorn, which is not backwards compatible. I fear there will be
many problems with JavaScript scripts related to this change.

I have some ideas on how to fix, but doing so will be non-trivial; I filed
an issue to track progress:

https://github.com/imagej/imagej/issues/116

In the meantime, the lesson is:
- If you need JavaScript, use Java 7.
- If you need Java 8, don't use JavaScript.

Sorry,
Curtis

On Fri, Mar 20, 2015 at 6:42 AM, Lorenz Maier <
[hidden email]> wrote:

> Hi Curtis,
>
> the error depends on the Java version executing Fiji. The bundled JRE runs
> fine. But as Clearvolume complained that it is too old, I removed the
> ./java folder, so my Java defaults to 1.8.0-b132.
>
> Best,
> - Lorenz
>
>
> > On 19 Mar 2015, at 18:36, Curtis Rueden <[hidden email]> wrote:
> >
> > Hi Lorenz,
> >
> >> The Temporal Color Code Script on latest Fiji fails for me with the
> >> error message
> >>
> >> ReferenceError: "importPackage" is not defined in <eval>
> >>
> >> I can't even find an "importPackage" in the eval.
> >
> > I cannot reproduce -- it works for me.
> >
> > I tried opening Bat Cochlea Volume, and executing Image > Hyperstacks >
> > Temporal Color-Code and pressing OK, and all works.
> >
> > I also tried holding Shift while clicking Image > Hyperstacks > Temporal
> > Color-Code, which opens the script in the Script Editor, then running it
> > from there, and that also works.
> >
> > Maybe try Help > Report a Bug to generate some information about your
> > installation? Have you customized it at all? See also
> >
> http://imagej.net/FAQ#How_can_I_verify_that_my_ImageJ_is_really_100.25_up_to_date.3F
> >
> > Regards,
> > Curtis
> >
> > On Thu, Mar 19, 2015 at 7:16 AM, Lorenz Maier <
> > [hidden email]> wrote:
> >
> >> Hi everyone,
> >>
> >> The Temporal Color Code Script on latest Fiji fails for me with the
> error
> >> message
> >>
> >> ReferenceError: "importPackage" is not defined in <eval>
> >>
> >> I can't even find an "importPackage" in the eval.
> >>
> >> Best,
> >> - Lorenz
> >>
> >> --
> >> ImageJ mailing list: http://imagej.nih.gov/ij/list.html
> >
> > --
> > ImageJ mailing list: http://imagej.nih.gov/ij/list.html
>
> --
> ImageJ mailing list: http://imagej.nih.gov/ij/list.html
>

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

Re: Temporal Color Code: ReferenceError

Kota Miura
Hi Lorenz, Curtis,

Try using this another version:

*https://github.com/imagej/ij1-installer/blob/master/app/plugins/Stacks/Time-Lapse_Color_Coder.txt
<https://github.com/imagej/ij1-installer/blob/master/app/plugins/Stacks/Time-Lapse_Color_Coder.txt>*

In the version that comes with Fiji, javascript is indeed used for
retrieving an array of LUTs in the menu. It's a cunning idea, but then from
IJ1.49r, there is a new macro command "getList("LUTs")" to do the same and
does not need to use Javascript for this purpose.

I will later compare these two versions, and see if they could be merged.

Cheers,
Kota



On Fri, Mar 20, 2015 at 6:45 PM, Curtis Rueden <[hidden email]> wrote:

> Hi Lorenz,
>
> > the error depends on the Java version executing Fiji. The bundled JRE
> > runs fine. But as Clearvolume complained that it is too old, I removed
> > the ./java folder, so my Java defaults to 1.8.0-b132.
>
> The problem is with Java 8, which removed the Rhino JavaScript engine in
> favor of Nashorn, which is not backwards compatible. I fear there will be
> many problems with JavaScript scripts related to this change.
>
> I have some ideas on how to fix, but doing so will be non-trivial; I filed
> an issue to track progress:
>
> https://github.com/imagej/imagej/issues/116
>
> In the meantime, the lesson is:
> - If you need JavaScript, use Java 7.
> - If you need Java 8, don't use JavaScript.
>
> Sorry,
> Curtis
>
> On Fri, Mar 20, 2015 at 6:42 AM, Lorenz Maier <
> [hidden email]> wrote:
>
> > Hi Curtis,
> >
> > the error depends on the Java version executing Fiji. The bundled JRE
> runs
> > fine. But as Clearvolume complained that it is too old, I removed the
> > ./java folder, so my Java defaults to 1.8.0-b132.
> >
> > Best,
> > - Lorenz
> >
> >
> > > On 19 Mar 2015, at 18:36, Curtis Rueden <[hidden email]> wrote:
> > >
> > > Hi Lorenz,
> > >
> > >> The Temporal Color Code Script on latest Fiji fails for me with the
> > >> error message
> > >>
> > >> ReferenceError: "importPackage" is not defined in <eval>
> > >>
> > >> I can't even find an "importPackage" in the eval.
> > >
> > > I cannot reproduce -- it works for me.
> > >
> > > I tried opening Bat Cochlea Volume, and executing Image > Hyperstacks >
> > > Temporal Color-Code and pressing OK, and all works.
> > >
> > > I also tried holding Shift while clicking Image > Hyperstacks >
> Temporal
> > > Color-Code, which opens the script in the Script Editor, then running
> it
> > > from there, and that also works.
> > >
> > > Maybe try Help > Report a Bug to generate some information about your
> > > installation? Have you customized it at all? See also
> > >
> >
> http://imagej.net/FAQ#How_can_I_verify_that_my_ImageJ_is_really_100.25_up_to_date.3F
> > >
> > > Regards,
> > > Curtis
> > >
> > > On Thu, Mar 19, 2015 at 7:16 AM, Lorenz Maier <
> > > [hidden email]> wrote:
> > >
> > >> Hi everyone,
> > >>
> > >> The Temporal Color Code Script on latest Fiji fails for me with the
> > error
> > >> message
> > >>
> > >> ReferenceError: "importPackage" is not defined in <eval>
> > >>
> > >> I can't even find an "importPackage" in the eval.
> > >>
> > >> Best,
> > >> - Lorenz
> > >>
> > >> --
> > >> ImageJ mailing list: http://imagej.nih.gov/ij/list.html
> > >
> > > --
> > > ImageJ mailing list: http://imagej.nih.gov/ij/list.html
> >
> > --
> > ImageJ mailing list: http://imagej.nih.gov/ij/list.html
> >
>
> --
> ImageJ mailing list: http://imagej.nih.gov/ij/list.html
>



--

-------------------------------------------------------------
Dr. Kota Miura <[hidden email]>

Senior Image Analyst / NINS Research Administrator
European Molecular Biology Laboratory
Meyerhofstr. 1, 69117 Heidelberg, GERMANY
Tel +49 6221 387 8404
Mobile +49 160 95001177http://cmci.embl.de
++++++++++++++++++

Dr. Kota Miura  <[hidden email]>
Project Associate Professor
National Institutes of Natural Sciences (NINS), Japan
Bonn Office: Ahrstr. 58, 53175 Bonn, Germany
Tel: +4916095001177http://www.nins.jp/english/
-------------------------------------------------------------

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

Re: Temporal Color Code: ReferenceError

Lorenz Maier
Hi Kota,
 
thanks a lot, this version is working fine for me!
 
Best,
Lorenz

---------

Von: [hidden email] [mailto:[hidden email]] Im Auftrag von Kota Miura
Gesendet: Mittwoch, 25. März 2015 10:55
An: ImageJ Interest Group
Cc: Lorenz Maier; Curtis Rueden
Betreff: Re: Temporal Color Code: ReferenceError
 
Hi Lorenz, Curtis,
 
Try using this another version:
 
https://github.com/imagej/ij1-installer/blob/master/app/plugins/Stacks/Time-Lapse_Color_Coder.txt
 
In the version that comes with Fiji, javascript is indeed used for retrieving an array of LUTs in the menu. It's a cunning idea, but then from IJ1.49r, there is a new macro command "getList("LUTs")" to do the same and does not need to use Javascript for this purpose.
 
I will later compare these two versions, and see if they could be merged.
 
Cheers,
Kota
 
 
 
On Fri, Mar 20, 2015 at 6:45 PM, Curtis Rueden <[hidden email]> wrote:
Hi Lorenz,

> the error depends on the Java version executing Fiji. The bundled JRE
> runs fine. But as Clearvolume complained that it is too old, I removed
> the ./java folder, so my Java defaults to 1.8.0-b132.

The problem is with Java 8, which removed the Rhino JavaScript engine in
favor of Nashorn, which is not backwards compatible. I fear there will be
many problems with JavaScript scripts related to this change.

I have some ideas on how to fix, but doing so will be non-trivial; I filed
an issue to track progress:

https://github.com/imagej/imagej/issues/116

In the meantime, the lesson is:
- If you need JavaScript, use Java 7.
- If you need Java 8, don't use JavaScript.

Sorry,
Curtis

On Fri, Mar 20, 2015 at 6:42 AM, Lorenz Maier <
[hidden email]> wrote:

> Hi Curtis,
>
> the error depends on the Java version executing Fiji. The bundled JRE runs
> fine. But as Clearvolume complained that it is too old, I removed the
> ./java folder, so my Java defaults to 1.8.0-b132.
>
> Best,
> - Lorenz
>
>
> > On 19 Mar 2015, at 18:36, Curtis Rueden <[hidden email]> wrote:
> >
> > Hi Lorenz,
> >
> >> The Temporal Color Code Script on latest Fiji fails for me with the
> >> error message
> >>
> >> ReferenceError: "importPackage" is not defined in <eval>
> >>
> >> I can't even find an "importPackage" in the eval.
> >
> > I cannot reproduce -- it works for me.
> >
> > I tried opening Bat Cochlea Volume, and executing Image > Hyperstacks >
> > Temporal Color-Code and pressing OK, and all works.
> >
> > I also tried holding Shift while clicking Image > Hyperstacks > Temporal
> > Color-Code, which opens the script in the Script Editor, then running it
> > from there, and that also works.
> >
> > Maybe try Help > Report a Bug to generate some information about your
> > installation? Have you customized it at all? See also
> >
> http://imagej.net/FAQ#How_can_I_verify_that_my_ImageJ_is_really_100.25_up_to_date.3F
> >
> > Regards,
> > Curtis
> >
> > On Thu, Mar 19, 2015 at 7:16 AM, Lorenz Maier <
> > [hidden email]> wrote:
> >
> >> Hi everyone,
> >>
> >> The Temporal Color Code Script on latest Fiji fails for me with the
> error
> >> message
> >>
> >> ReferenceError: "importPackage" is not defined in <eval>
> >>
> >> I can't even find an "importPackage" in the eval.
> >>
> >> Best,
> >> - Lorenz
> >>
> >> --
> >> ImageJ mailing list: http://imagej.nih.gov/ij/list.html
> >
> > --
> > ImageJ mailing list: http://imagej.nih.gov/ij/list.html
>
> --
> ImageJ mailing list: http://imagej.nih.gov/ij/list.html
>

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


 
--
-------------------------------------------------------------
Dr. Kota Miura <[hidden email]>
 
Senior Image Analyst / NINS Research Administrator
European Molecular Biology Laboratory
Meyerhofstr. 1, 69117 Heidelberg, GERMANY
Tel +49 6221 387 8404
Mobile +49 160 95001177
http://cmci.embl.de
++++++++++++++++++
 
Dr. Kota Miura  <[hidden email]>
Project Associate Professor
National Institutes of Natural Sciences (NINS), Japan
Bonn Office: Ahrstr. 58, 53175 Bonn, Germany
Tel: +4916095001177
http://www.nins.jp/english/
-------------------------------------------------------------
--
ImageJ mailing list: http://imagej.nih.gov/ij/list.html