microsoft / microsoft/vscode-java-debug
Debugger for Java, "javaExec": "java.bat", spawn EINVAL
Đang mở
Chưa có ai nhận issue này.
ai-triaged
bug
- 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
Mô tả
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
- make custom
java.batforjavaExec
"%JAVA_HOME%\bin\java.exe" %*
- make
.vscode/launch.jsonwith"javaExec"option
{
"version": "0.2.0",
"configurations": [
{
"type": "java",
"name": "Test",
"request": "launch",
"mainClass": "Test",
"javaExec": "${workspaceFolder}/java.bat"
}
]
}
- 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
Expected Result
No error.
Additional Informations
it worked yesterday but it failed today.
Hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- 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.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
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.
Đánh giá
- Công nghệ
- java, typescript, vscode
- Lĩnh vực
- devtools, operating-systems
- Loại issue
- Lỗi
- Độ khó
- 3/5
- Thời gian dự kiến
- 1-2 ngày
- Mức độ hoạt động
- Đình trệ
- Độ rõ ràng
- Khá rõ ràng
- Mức phù hợp với người mới
- 35/100