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

Debugger for Java, "javaExec": "java.bat", spawn EINVAL

Đang mở
#1,501 1 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
35/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Đình trệ
Công nghệ
java, typescript, vscode

Hướng nghiên cứu

Bắt đầu với .vscode/launch.json được cung cấp và java.bat tùy chỉnh trên Windows 10, sau đó tái hiện việc khởi chạy bằng thiết lập javaExec và kiểm tra lỗi spawn EINVAL được báo cáo. Hoàn thành khi trình gỡ lỗi Java khởi chạy thành công với tệp thực thi dạng batch và không xuất hiện lỗi spawn.

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

Mô tả

ai-triaged bug

Java debugger cannot launch with "javaExec": "java.bat" option.

Environment
  • Operating System: Windows 10
  • JDK version: openjdk 11.0.19 2023-04-18
  • Visual Studio Code version: 1.92.0
  • Java extension version: -
  • Java Debugger extension version: v0.58.2024072207 (pre-release)
Steps To Reproduce
  1. make custom java.bat for javaExec
"%JAVA_HOME%\bin\java.exe" %*
  1. make .vscode/launch.json with "javaExec" option
{
  "version": "0.2.0",
  "configurations": [
    {
      "type": "java",
      "name": "Test",
      "request": "launch",
      "mainClass": "Test",
      "javaExec": "${workspaceFolder}/java.bat"
    }
  ]
}
  1. Launch Debugger
  • sample project - java-report.zip

  • error logs, but it seems it does not helpful.

notificationsAlerts.ts:42 spawn EINVAL
c	@	notificationsAlerts.ts:42
(anonymous)	@	notificationsAlerts.ts:28
B	@	event.ts:1230
C	@	event.ts:1241
fire	@	event.ts:1265
addNotification	@	notifications.ts:228
notify	@	notificationService.ts:253
(anonymous)	@	mainThreadMessageService.ts:86
f	@	mainThreadMessageService.ts:51
$showMessage	@	mainThreadMessageService.ts:45
S	@	rpcProtocol.ts:458
Q	@	rpcProtocol.ts:443
M	@	rpcProtocol.ts:373
L	@	rpcProtocol.ts:299
(anonymous)	@	rpcProtocol.ts:161
B	@	event.ts:1230
fire	@	event.ts:1261
fire	@	ipc.net.ts:652
K.onmessage	@	localProcessExtensionHost.ts:378
Current Result

image

Expected Result

No error.

Additional Informations

it worked yesterday but it failed today.

Ngôn ngữ chính
TypeScript
Star
591
Fork
429
Merge trung bình
1 ngày 9 giờ
Pull request đã merge (30 ngày)
19

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

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 microsoft/vscode-java-debug

Tất cả issue của microsoft/vscode-java-debug

Issue tương tự

Thêm issue về TypeScript

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.