Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

Script execution is aborted when line with comment is found

クローズ
#1,189 コメント 4 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 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 の本文から書いたものです。

説明

status/need-triage

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

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

spring-projects/spring-shell のほかの issue

spring-projects/spring-shell の issue をすべて見る

似ている issue

Java の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。