Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Iterative evaluation executes old versions of the code #5

Closed
ctrueden opened this issue Oct 7, 2014 · 1 comment
Closed

Iterative evaluation executes old versions of the code #5

ctrueden opened this issue Oct 7, 2014 · 1 comment

Comments

@ctrueden
Copy link
Member

ctrueden commented Oct 7, 2014

It seems that old versions of Java code get executed, in a sort of strange pattern.

Here is my recipe to demonstrate. Unexpected behavior is noted with bold bangs (!!!).

  1. Launch ImageJ
  2. Open the Script Editor ([)
  3. Templates > Java > Bare Plugin
  4. Save to Desktop
  5. Add import ij.IJ; at line 2
  6. Insert IJ.showMessage("Hello world!"); at line 18
  7. Save then Run, and note that "Hello world!" is shown
  8. Change world to there
  9. Save then Run, and note that "Hello there!" is shown
  10. Change there to my friend
  11. Save then Run, and note that "Hello world!" is shown again (!!!)
  12. Run again (without further changes), and note that "Hello there!" is now shown (!!!)
  13. Run a third time (again, no changes), and note that it is back to "Hello world!" again (!!!)

It seems to alternate between the first and second iterations of the class. At no point are the third or later iterations of the code executed.

@ctrueden ctrueden changed the title Iterative evaluation does not always execute the latest version Iterative evaluation executes old versions of the code Oct 7, 2014
@ctrueden
Copy link
Member Author

I can no longer reproduce this problem using an up-to-date Java-8 version of Fiji. Presuming fixed. Please reopen if you are able to reproduce.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant