Script execution is aborted when line with comment is found
メンテナーはふだん 3 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 初心者へのやさしさ
- 65/100
- issue の種類
- バグ
- 明瞭さ
- おおむね明確
- 活発さ
- 静か
- 技術スタック
- java, spring-boot
- 領域
- cli
調査の方向性
Start by reproducing the regression with shell:>script --file test.script, comparing a script containing only help with one beginning with // test. Trace the script execution path to see how comment lines are handled, then verify that commands after a leading comment execute as they did in Spring Shell 3.4.0.
索引モデルが issue の本文から書いたものです。
説明
Summary
After upgrading to spring shell version 3.4.1 scripts starting with a comment (//) are not executed anymore. Version 3.4.0 does not have that problem.
System
Linux: 6.16.9+deb14-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.16.9-1 (2025-09-27) x86_64 GNU/Linux
Java version: openjdk version "21.0.9-ea" 2025-10-21
Spring boot version: 3.5.6
Spring shell version: 3.4.1
Status quo:
After upgrading to spring shell version 3.4.1 scripts starting with a comment (//) are not executed anymore.
Wanted behavior:
Even if a script starts with a comment the following lines should be executed.
Reproduce:
Run shell:>script --file test.script interactively.
File test.script that works (prints help text):
help
File test.script that doesn't work (prints nothing):
// test
help
- 主要言語
- Java
- スター
- 826
- フォーク
- 405
- 平均マージ
- 6日 9時間
- マージ済み PR(30日)
- 1
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
spring-projects/spring-shell のほかの issue
-
NonInteractiveShellRunner, wrong exit value when Commands cannot be parsed対応中かも @czpilar が 7 日前に担当しました。 オープン
難易度 3/5 1〜2日 初心者へのやさしさ 72/100
spring-projects/spring-shell#1391 · コメント 2 件 ·
メンテナーはふだん 3 日以内に返信
-
Options validation error messages in non-interactive mode対応中かも @czpilar が 7 日前に担当しました。 オープン
難易度 3/5 1〜2日 初心者へのやさしさ 65/100
spring-projects/spring-shell#1390 · コメント 3 件 ·
メンテナーはふだん 3 日以内に返信
-
ShellInputProvider inputs are not consumed by `ComponentFlow`-based interactive components (e.g. `ConfirmationInput`, `StringInput`)対応中かも @czpilar が 19 日前に担当しました。 オープンtype/enhancement
難易度 3/5 1〜2日 初心者へのやさしさ 68/100
spring-projects/spring-shell#1383 · コメント 6 件 ·
メンテナーはふだん 3 日以内に返信
-
area/dependencies type/enhancement
難易度 5/5 1週間以上 初心者へのやさしさ 25/100
spring-projects/spring-shell#1213 · リアクション 2 件 ·
メンテナーはふだん 3 日以内に返信
-
Revisit dependency to Spring Messaging対応中かも @piotrooo が 293 日前に担当しました。 オープンarea/dependencies type/enhancement
難易度 5/5 1週間以上 初心者へのやさしさ 25/100
spring-projects/spring-shell#1205 · コメント 1 件 ·
メンテナーはふだん 3 日以内に返信
spring-projects/spring-shell の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 77/100
apache/rocketmq-dashboard#6610 ·
メンテナーはふだん 3 日以内に返信
-
`RedisList.reversed()` view returns an empty `range` and `trim` removes all elements対応中かも @CCCLL が今日担当しました。 オープンstatus: waiting-for-triage
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
spring-projects/spring-data-redis#3461 ·
メンテナーはふだん 2 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 73/100
javapathfinder/jpf-core#649 ·
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
devops-thiago/ThrillhouseBot#1093 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 67/100
wimdeblauwe/htmx-spring-boot#205 ·