kelemen / netbeans-gradle-project

This project is a NetBeans plugin able to open Gradle based Java projects. The implementation is based on Geertjan Wielenga's plugin.
173 stars 57 forks source link

Netbeans sometimes shows that almost all of my code is erroneous #240

Open Barteks2x opened 8 years ago

Barteks2x commented 8 years ago

Note: This may be specific to MInecraftForge setup, I know no other way to reproduce it. Sometimes when I run tasks: clean cleanCache build and setupDecompWorkspace (the build task in the middle is what seems to break things, and I do it when I forget to use setupDecompWorkspace after clean and cleanCache) Netbeans will mark all code that uses Forge as erroneous. All errors are something like "Type of XXX is erroneous", and when I try to find the root cause - it mysteriously disappears. Sometimes I can find error in class A because class B is erroneous and class B is erroneous because class A is erroneous. No amount of waiting seems to fix it, but all errors disappear when I attempt to find the cause (go to source of erroneous parts of different files).

Barteks2x commented 8 years ago

Now it also happened without running the build task between cleanCache and setupDecompWorkspace. Clean and build sometimes fizes, reload project doesn't fix it. And I'm not sure if it's actually the same bug, but autocomplete randomly stops working after running these tasks. It doesn't see classes from one specific jar file. It doesn't show compile error when I manually type fully qualified class name. It also says that the jar file is "ignored"