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

Avoid an AssertionError with Maven folds #4957

Merged
merged 1 commit into from
Dec 8, 2022
Merged

Conversation

jglick
Copy link
Contributor

@jglick jglick commented Nov 10, 2022

Fixes #3675 by just disabling output window folds when they would otherwise lead to errors and loss of output. Observed when using mvnd with forked executions in a multimodule build. (The same project gets folds when building one module at a time, or using mvn, and probably also when skipping the mojo causing a forked execution though I did not manage to test that.)

@lkishalmi lkishalmi added this to the NB17 milestone Nov 10, 2022
@lkishalmi lkishalmi added the Maven [ci] enable "build tools" tests label Nov 10, 2022
@mbien
Copy link
Member

mbien commented Nov 11, 2022

restarting tests so that they pick up the label using our super secret restart button.

edit: glad to see someone using mvnd with NetBeans :)

@apache apache locked and limited conversation to collaborators Nov 11, 2022
@apache apache unlocked this conversation Nov 11, 2022
Copy link
Member

@sdedic sdedic left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, Jesse.

@jglick
Copy link
Contributor Author

jglick commented Nov 11, 2022

glad to see someone using mvnd with NetBeans

Other than this issue, it works well! (Almost a satisfactory replacement for compile-on-save, unless you have snapshot dependencies on other projects you are actively editing.) For large multimodule reactors I prefer to run mvnd from a terminal to get parallel builds, which involves complex (multiline) terminal rendering not compatible with an append-style output window.

Copy link
Member

@mbien mbien left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

awesome, lets get this merged.

@mbien mbien merged commit 8bec57f into apache:master Dec 8, 2022
@jglick jglick deleted the foldsBroken branch December 8, 2022 20:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Maven [ci] enable "build tools" tests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Maven threaded build output
4 participants