Login  Register

Re: Macro in Plugin Menu fails to run

Posted by dscho on Jun 25, 2014; 10:46pm
URL: http://imagej.273.s1.nabble.com/Macro-in-Plugin-Menu-fails-to-run-tp5008423p5008437.html

Hi Kaitlin,

On Wed, 25 Jun 2014, Snider, Kaitlin wrote:

> Re: Johannes suggestions and questions: I'm currently running ImageJ
> 1.49b.  I double-checked and I don't have any locally modified files.  I
> ran it through the debug mode and copied the output the debug log
> produced to a file, but I'm not sure how to read the debug report and
> haven't the faintest idea if it points to anything of interest - I've
> inserted that file if anyone else wants to take a look.  

The debug log actually does not show anything suspicious, but it is
suspiciously short.

> Also, I glanced at my code again and I know exactly where the "Number or
> numeric function expected" error is coming from.  It's a new line I
> added today while trying to get it to run from the plugin menu.
> Basically line 3 can just be removed.  I'm quite sure that line 3 has
> nothing to do with the failure to run from the plugin menu.

Right. With line 2 removed, I actually can run it here (but it stops
eventually because your classifier cannot be found, of course).

In the report you submitted via Help>Report a Bug (thank you!), it looks
as if you have four versions of this macro, two in macros/ (one with spaces
and one with underscores), one in plugins/Macros/ and one in plugins/.
Could you press Ctrl+L to open the Command Launcher (which claims to be
the Command Finder nowadays, but the "L" is easier to remember if you
think of it as the Launcher), type in "Cell" and see what exactly it shows
as "class name"? It should show something like:

        Script:D:\GOOGLE~1\Fiji\Fiji.app\plugins\Macros\Cell_nuclei_macro_x.ijm

We will fix this problem together, I am certain!

Ciao,
Johannes

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