Skip to content

Java multiprject workspaces build fail prompt #888

Closed

Description

@srfrnk

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.

Activity

  1. added a commit that references this issue on Oct 9, 2020
    07ff4b0
  2. srfrnk commented on Oct 9, 2020

    @srfrnk
    ContributorAuthor

    Created PR #889

  3. shaochris commented on Oct 11, 2020

    @shaochris

    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 ?

  4. testforstephen commented on Oct 12, 2020

    @testforstephen
    Contributor

    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?

  5. srfrnk commented on Oct 12, 2020

    @srfrnk
    ContributorAuthor

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

  6. shaochris commented on Oct 12, 2020

    @shaochris
  7. added a commit that references this issue on Jan 30, 2024
    0755aa2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions