Which JDK are you using? Gj
On Tue, Nov 26, 2019 at 9:11 AM Humphrey Clerx <[email protected]> wrote: > Uninstalling nb-javac does remove the error badges, but it also removes > any functionality to use Ctrl-click on a class to open the file, and it > doesn't indicate any error(s) in the file when edititng. > > On Mon, Nov 25, 2019 at 2:45 PM Geertjan Wielenga <[email protected]> > wrote: > >> Uninstall nb-javac. Then, do not reinstall it. Do not use nb-javac to see >> if that solves the problem. >> >> Gj >> >> On Mon, Nov 25, 2019 at 2:13 PM Humphrey Clerx <[email protected]> wrote: >> >>> Hi Gj, >>> >>> I tried de-activating nb-javac and then re-starting NetBeans (with and >>> without clearing the Cache folder) and re-activating nb-javac. This doesn't >>> solve the problem. >>> >>> I also tried de-installing nb-javac and then re-starting NetBeans (with >>> and without clearing the Cache folder) and re-installing nb-javac. This >>> also doesn't solve the problem. >>> >>> How and where can I check how/why the indexing seems to go wrong? When I >>> do a Ctrl-O and type the name of the duplicate class, both appear in the >>> list. >>> >>> Greets, >>> H. >>> >>> On Sun, Nov 24, 2019 at 9:15 AM Geertjan Wielenga <[email protected]> >>> wrote: >>> >>>> What happens if you uninstall the nb-javac plugin. >>>> >>>> Gj >>>> >>>> >>>> On Sun, 24 Nov 2019 at 09:07, Humphrey Clerx <[email protected]> wrote: >>>> >>>>> Slightly modifying a file with an error badge doesn't solve the >>>>> problem. And it doesn't involve any enum classes. Somehow NetBeans >>>>> "forgets" the first class when it parses/indexes/caches the second one >>>>> with >>>>> the same name (in a different module). >>>>> >>>>> On Sat, Nov 23, 2019 at 1:19 AM Eirik Bakke <[email protected]> wrote: >>>>> >>>>>> Is this a Maven or an Ant project? >>>>>> >>>>>> >>>>>> >>>>>> If you open up the source for _each_ of the classes involved, >>>>>> including classes imported by the class with an error icon on it, insert >>>>>> a >>>>>> space somewhere, and save it (to trigger Compile-on-Save), does the error >>>>>> go away? >>>>>> >>>>>> >>>>>> >>>>>> Are there, by any chance, any "enum" classes involved? What about >>>>>> annotations? (E.g. "@Nullable".) >>>>>> >>>>>> >>>>>> >>>>>> (I've had quite a few of these errors myself, but possibly in >>>>>> different situations.) >>>>>> >>>>>> >>>>>> >>>>>> -- Eirik >>>>>> >>>>>> >>>>>> >>>>>> *From:* Humphrey Clerx <[email protected]> >>>>>> *Sent:* Friday, November 22, 2019 4:36 AM >>>>>> *To:* [email protected] >>>>>> *Subject:* NetBeans 11.2 "cannot find symbol" error >>>>>> >>>>>> >>>>>> >>>>>> I've recently installed NetBeans 11.2 and found a problem that a lot >>>>>> of files are marked with an "error" symbol that a certain class cannot be >>>>>> found, annotated by an "cannot find symbol" icon on an import statement >>>>>> even though the class to be imported exists. >>>>>> >>>>>> >>>>>> >>>>>> Clearing the cache and restarting NetBeans does not solve the problem. >>>>>> >>>>>> >>>>>> >>>>>> This problem did not occur on NetBeans 8.2 or NetBeans 11.0/11.1. >>>>>> >>>>>> >>>>>> >>>>>> It seems to be related to there being two classes (in different >>>>>> modules) with the same class name. NetBeans 11.2 only seems to 'index' >>>>>> the >>>>>> first of the two and indicates the error on al imports of the second one. >>>>>> >>>>>> >>>>>> >>>>>> When building the project however, there is no problem. Only the >>>>>> incorrect error annotations on the files. I am using NetBeans 11.2 >>>>>> together >>>>>> with the nb-javac plugin. >>>>>> >>>>>> >>>>>> >>>>>> Is there any means of clearing this invalid error? >>>>>> >>>>>> -- >>>>>> >>>>>> In the mountains of truth, you never climb in vain - Nietzsche >>>>>> #------------------------------------------------------------- >>>>>> \_O >>>>>> ,__/> >>>>>> <" >>>>>> ' >>>>>> >>>>> >>>>> >>>>> -- >>>>> In the mountains of truth, you never climb in vain - Nietzsche >>>>> #------------------------------------------------------------- >>>>> \_O >>>>> ,__/> >>>>> <" >>>>> ' >>>>> >>>> >>> >>> -- >>> In the mountains of truth, you never climb in vain - Nietzsche >>> #------------------------------------------------------------- >>> \_O >>> ,__/> >>> <" >>> ' >>> >> > > -- > In the mountains of truth, you never climb in vain - Nietzsche > #------------------------------------------------------------- > \_O > ,__/> > <" > ' >
