-
Notifications
You must be signed in to change notification settings - Fork 874
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
Priming build and reload improvements revisited #6789
Conversation
nice! I would like to help testing this (local smoke test). To avoid that we test it on the same projects, what testing was already done? |
For the following I regrettably can't provide numbers, but I think I can trace it back to the changes this is a followup for: I noticed that NetBeans became to feel sluggish at work (Windows Laptop) when invoking "Run file" in a semi-big maven project and editing the
The source is here:
Stacktrace:
The interesting bit is, that |
@matthiasblaesing good catch; even the |
@matthiasblaesing should be addressed in 6c1127f. @mbien test plan:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think the direction is reasonable, although I am not a real expert on this code. Some very minor comments inline.
java/maven/test/unit/src/org/netbeans/modules/maven/NbMavenProjectImplTest.java
Outdated
Show resolved
Hide resolved
2f6d7ac
to
a200e00
Compare
Consolidated fixes before merge. If no objections are raised, I'll merge the PR today. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
code looks good to me (the new tests did also run in CI this time)
java/maven/src/org/netbeans/modules/maven/classpath/AbstractProjectClassPathImpl.java
Outdated
Show resolved
Hide resolved
java/maven/src/org/netbeans/modules/maven/problems/MavenModelProblemsProvider.java
Outdated
Show resolved
Hide resolved
java/maven/src/org/netbeans/modules/maven/problems/MavenModelProblemsProvider.java
Outdated
Show resolved
Hide resolved
java/maven/src/org/netbeans/modules/maven/problems/MavenModelProblemsProvider.java
Outdated
Show resolved
Hide resolved
89faee1
to
1ddad0c
Compare
89faee1 logging fixes folded into the feature commit. |
restarted job |
Hm ! So far tests run fine on local. So let's add some debugging if it fails again. |
@sdedic thank you for the update. The interactive usage seems to be much better. But I'm observing another problem now. My dropwizard projects user maven-shade. This in normally causes projects problem to be reported or warning level ("Project's main artifact is processed through maven-shade-plugin"). With the update after the IDE is loaded this warning is no longer there. I can get it back once I make a change to the pom. Then it |
@sdedic ignore my previous comment, it was a wrong observation. It is correct, that the problem report is not there when the project is opened, but that is not a regression as it was the same in NB19 and NB20 (just tested with clean userdir). You have to build the project or interact otherwise to get the problem report. |
@matthiasblaesing it should be sufficient to just "prime" the project - or open it provided that all build plugins + parent POM are in the local repository; otherwise Maven POM parsing fails miserably. But if primed or the artifacts are ready, it should display the error right on open. |
@sdedic you can test it trivially yourself. What I did was this:
In step 4 all dependencies were present. |
@matthiasblaesing sorry, was busy on other part of Maven. Can I take it that the current situation is no worse than the with NB <=20 ? If so, I'd suggest to track that as an issue and try to fix it in NB21/22 separately. |
Yes, sorry about the wrong observation. |
1ddad0c
to
73ab3c2
Compare
Rebased onto newest master, will merge as soon as tests pass. |
This is a reiteration of #6514 early in the release cycle. Includes also NPE fix #6624. For detailed description, see the original issue #6514 - but comment here, please.