Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

Script execution is aborted when line with comment is found

Đã đóng
#1,189 4 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Đánh giá

Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức phù hợp với người mới
65/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Ít trao đổi
Công nghệ
java, spring-boot
Lĩnh vực
cli

Hướng nghiên cứu

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.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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
Ngôn ngữ chính
Java
Star
827
Fork
405
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của spring-projects/spring-shell

Tất cả issue của spring-projects/spring-shell

Issue tương tự

Thêm issue về Java

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.