Skip to content

Live process is not auto connected when app is launched in internalConsole #794

Closed
@Eskibear

Description

@Eskibear

When a spring app is launched with "console": "internalConsole", live process is not auto connected.

In such case, I observe below details:

Java debugger reported correct processId:

{"event":"processid","body":{"processId":5952,"shellProcessId":-1,"type":"processid"},"seq":2,"type":"event"}

In debug console we have below error thrown by sts-vscode:

rejected promise not handled within 1 second: Error: No child process found for parent shell process with pid = -1

stack trace: Error: No child process found for parent shell process with pid = -1
    at c:\Users\<username>\.vscode-insiders\extensions\pivotal.vscode-spring-boot-1.36.0\out\lib\debug-config-provider.js:123:19
    at Generator.next (<anonymous>)
    at fulfilled (c:\Users\<username>\.vscode-insiders\extensions\pivotal.vscode-spring-boot-1.36.0\out\lib\debug-config-provider.js:28:58)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)

Currently the workaround is either of the following options:

  • Manually connect to the process.
  • Use "integratedTerminal" to launch the app.

Since java-debugger extension has already provided processId, it would be better to cover this case.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions