Skip to content

Conversation

bvandenbroek
Copy link

Prevent truncation at 120 characters of 'Macro Error' messages (only in the debug window).
See also https://forum.image.sc/t/ij1-macro-error-message-feature-requests/114729

Prevent truncation at 120charcters of 'Macro Error' messages (only in the debug window).
@imagesc-bot
Copy link

This pull request has been mentioned on Image.sc Forum. There might be relevant details there:

https://forum.image.sc/t/ij1-macro-error-message-feature-requests/114729/5

@bvandenbroek bvandenbroek changed the title Update Interpreter.java Prevent truncation of Macro Error messages in the Debug Window Jul 16, 2025
Edited earlier changes to only display a truncated line in the error message window, and the full line in the debug window.
@rasband
Copy link
Member

rasband commented Jul 22, 2025

I'm traveling for the next three weeks. I will implement this bug fix when I get back.

@bvandenbroek
Copy link
Author

Dear Wayne @rasband,
I hope you're doing fine. A small reminder to review and (hopefully) implement this PR.

All the best,
Bram

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actually, line 1380 needs to be
String truncatedLine = line;

@rasband
Copy link
Member

rasband commented Oct 2, 2025

Macro error messages longer than 90 characters in the the latest ImageJ daily build ( 1.54s6) are displayed on multiple lines and the full message is displayed in the Debug window. The commit is at ht4tps://github.com/imagej/ImageJ/commits/master/ij.

@rasband rasband closed this Oct 2, 2025
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

Successfully merging this pull request may close these issues.

4 participants