imagej / imagej/imagej2

Allow returning error codes when running scripts headlessly

Open
#61 10 comments 1 reaction 0 assignees View on GitHub
Dominant language
Java
Stars
1.4k
Forks
350
PR merge metrics
No merged PRs in 30d

Description

When executing ImageJ scripts, plugins or macros headlessly, it would be nice if the process could give a non-zero return code in case of error. Currently, ImageJ1 does not do this.

Added by @luxigo:

> It would be helpful if Fiji exit code was not zero when an unhandled exception (eg: java.awt.HeadlessException) is raised in headless mode... at least optionally.

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by tracing how headless ImageJ scripts, plugins, and macros are executed and how the process currently handles unhandled exceptions. Define and verify an optional non-zero exit code for failures, including a headless exception, while preserving the existing behavior when the option is not enabled.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
cli
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.