Open mbien opened 1 year ago
I noticed the editor also won't acknowledge new files if there is any project or profiler running (Dont even has to be the same project im editing), but as soon as I close everything it triggers a "background scanning" and the changes update.
The profiler is likely pausing IO to not influence the measurements. This issue here is something else and specific to java modules.
Apache NetBeans version
Apache NetBeans 19, 20
What happened
Have a class and a unit test for the class in a maven project which has a module-info.java
Now rename the method name of the tested class, this will successfully rename it in the test and everywhere else, however the editor will show errors until the project is rebuilt.
The error will always show up on the test file, no matter if the code change was initiated from the test (e.g via rename refactoring) or from the actual class.
As soon module-info is removed or commented out it works as expected, the editor refreshes after ~1s and notices code updates - no error annotations are shown.
How to reproduce
test:
class:
module-info.java
Did this work correctly in an earlier version?
No / Don't know
Operating System
linux
JDK
JDK 21
Apache NetBeans packaging
Apache NetBeans binary zip
Are you willing to submit a pull request?
Maybe