Build: NetBeans IDE Dev (Build 201702150002)
VM: Java HotSpot(TM) 64-Bit Server VM, 25.112-b15, Java(TM) SE Runtime Environment, 1.8.0_112-b15
OS: Windows 7
muellermi: switching file in editor
Created attachment 163649 [details]
Created attachment 163652 [details]
Created attachment 163680 [details]
Created attachment 163745 [details]
Exception occurred while generating entity classes from database
This bug already has 10 duplicates
problem occurs nearly every time I switch via ctrl+b to a non-opened source file. If the source is open, or had been opened within the same NB session before, it seems to work without exception.
The same problem occurs in different situations.
Reproducible, if I try to invoke autocompletion for a self defind annotation, which is not imported to the current file yet.
really annoying. Every week I try the latest dev build and stop using after a short while :(
I don't like to stop evaluating the daily build everytime because of this annoying bug. Increased priority to 1. Please fix soon!
This bug might be OS dependent:
At home I'm using Linux. I can't remember that I faced this problem there. But I really code less than in office.
Unfortunately, I cannot reproduce the problem. Is it reproducible on your sources? If so, could you please create a simple test project with the exact steps to reproduce and attach it to the issue? Thanks.
Created attachment 164420 [details]
Trying to refactor an interface method's return type from String to CharSequence with many projects open that both call and implement the method
Possible way to reproduce:
1. First, clone this repo and run its init script (it pulls in a bunch of git submodules that contain maven subprojects - it will run a build that will eventually fail unless you have mongodb installed, but it will do enough - make sure you work against the commit specified below, before this refactoring was done):
git clone https://github.com/timboudreau/mastfrog-parent.git
git checkout 87409dcd1682b8bc63b929ad24d5cc7a5c869dfe
2. Now, open the root project in NetBeans; expand the Modules node fully, select all of them, right click and open all subprojects; wait for NetBeans to finish scanning.
3. In the project Acteur Headers (acteur-modules/acteur-parent/acteur-headers), refactor HeaderValueType.name() to return CharSequence instead of String.
You should get the exception when the preview dialog comes up.
Side-note: after this and then doing the refactoring manually, compile-on-save makes an absolute mess of things, generating classes which see HeaderValueType as an erroneous type and substituting Object for it where it is passed.
I've tried the steps described in the Comment 13 - but everything worked as expected. Tim, could you please try to run your scenario with the latest dev build? Thanks.
With the current build (20170705) it seems to be ok. I could not reproduce it the way I could before.
I haven't checke thoudreau's steps to reproduce.
Should be fixed in the current dev build.