Vscode-java-debug: Java multiprject workspaces build fail prompt

Created on 9 Oct 2020  路  5Comments  路  Source: microsoft/vscode-java-debug

When debugging in a workspace with multiple Java projects some may not be building at the moment and so the build will fails.
This triggers a prompt each time you try to debug your project even if it is building correctly.
Until now a configuration flag as been added to disable the build process to this case but if you still want to have your project built you cannot use it.

A better solution would be to add a configuration flag to allow building and proceeding with the debug session even if the build fails.

Steps To Reproduce
  1. Create workspace
  2. Add two Java projects
  3. Make one project buildable
  4. Make another project un-buildable (introduce a syntax error)
  5. Try to debug the buildable project
Current Result

Prompts for build failure with following options: "Proceed","Fix...","Cancel"
If "Proceed" selected - allows debugging.

Expected Result

If a configuration flag exists with value "Proceed" allow proceeding with debug session.

All 5 comments

I'm wondering that if I have multiple separate projects in a single workspace, is that possible to build each single project individually without relating to other projects in the same workspace ?

Currently the build command doesn't support building a single project yet, could you open a feature request at https://github.com/redhat-developer/vscode-java/issues?

@shaochris if you open this I'd love to +1 it! If you could please link it here?

Was this page helpful?
0 / 5 - 0 ratings

Related issues

TheSinding picture TheSinding  路  6Comments

khe817 picture khe817  路  4Comments

mojo2012 picture mojo2012  路  3Comments

manastalukdar picture manastalukdar  路  7Comments

PG-practice picture PG-practice  路  3Comments