Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Remove deprecated echo process directive#7206

Merged
bentsherman merged 2 commits into
masterfrom
remove-echo-directive
Jun 8, 2026
Merged

Remove deprecated echo process directive#7206
bentsherman merged 2 commits into
masterfrom
remove-echo-directive

Conversation

@pditommaso

Copy link
Copy Markdown
Member

Summary

Removes the long-deprecated echo process directive, which has been superseded by debug.

  • Deletes ProcessBuilder.echo() (the alias that warned and forwarded to debug), along with the now-unused @Slf4j annotation/import.
  • Drops the echo backward-compat fallback in TaskConfig.getDebug().

Behavior change

Using echo inside a process now resolves to BaseScript.echo(), which already throws a DeprecationException with a clear message directing users to debug — so users get an explicit error rather than a silent no-op.

A process.echo = true setting in nextflow.config is now ignored (previously it silently mapped to debug).

Tests

  • TaskConfigTest: added getDebug coverage and a regression test asserting echo no longer enables debug output.

🤖 Generated with Claude Code

The `echo` directive was deprecated long ago in favor of `debug`. This
removes the `ProcessBuilder.echo()` alias and the `echo` fallback in
`TaskConfig.getDebug()`.

Using `echo` in a process now resolves to `BaseScript.echo()`, which
throws a `DeprecationException` with a clear message pointing users to
`debug`.

Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
Signed-off-by: Paolo Di Tommaso <[email protected]>
@pditommaso pditommaso requested a review from bentsherman June 8, 2026 13:04
@pditommaso pditommaso marked this pull request as ready for review June 8, 2026 13:04
@netlify

netlify Bot commented Jun 8, 2026

Copy link
Copy Markdown

Deploy Preview for nextflow-docs-staging canceled.

Name Link
🔨 Latest commit d72c1c1
🔍 Latest deploy log https://app.netlify.com/projects/nextflow-docs-staging/deploys/6a26d5b2a16dd900080edb36

@bentsherman bentsherman merged commit 362f6fd into master Jun 8, 2026
20 checks passed
@bentsherman bentsherman deleted the remove-echo-directive branch June 8, 2026 14:58
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.

2 participants