You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@netbeans.apache.org by "mbien (via GitHub)" <gi...@apache.org> on 2023/11/19 12:39:16 UTC
[I] Editor does not notice code changes until project is rebuilt in modular java projects [netbeans]
mbien opened a new issue, #6725:
URL: https://github.com/apache/netbeans/issues/6725
### Apache NetBeans version
Apache NetBeans 19
### 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:
```java
import org.junit.jupiter.api.Test;
public class RefreshBugTest {
@Test
public void refreshBug() {
// 1) rename method -> editor should refresh as expected, no errors should show up
// 2) uncomment module-info contents, clean build, rename again -> editor does not refresh until rebuild
RefreshBug.rename1();
}
}
```
class:
```java
public class RefreshBug {
// see unit test
public static void rename1() {
System.out.println("Hello There!");
}
}
```
module-info.java
```java
// uncomment to trigger the bug
//module test.module {
// requires jdk.compiler;
//}
```
### 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
### Anything else
_No response_
### Are you willing to submit a pull request?
No
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org
For additional commands, e-mail: notifications-help@netbeans.apache.org
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
Re: [I] Editor does not notice code changes until project is rebuilt in modular java projects [netbeans]
Posted by "mbien (via GitHub)" <gi...@apache.org>.
mbien commented on issue #6725:
URL: https://github.com/apache/netbeans/issues/6725#issuecomment-1828701272
The profiler is likely pausing IO to not influence the measurements. This issue here is something else and specific to java modules.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org
For additional commands, e-mail: notifications-help@netbeans.apache.org
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
Re: [I] Editor does not notice code changes until project is rebuilt in modular java projects [netbeans]
Posted by "FurmigaHumana (via GitHub)" <gi...@apache.org>.
FurmigaHumana commented on issue #6725:
URL: https://github.com/apache/netbeans/issues/6725#issuecomment-1828617434
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.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org
For additional commands, e-mail: notifications-help@netbeans.apache.org
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists