Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
pmingkr opened this issue Aug 6, 2024 · 0 comments
Open

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

pmingkr opened this issue Aug 6, 2024 · 0 comments

Comments

@pmingkr
Copy link

pmingkr commented Aug 6, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant