This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Product Version = NetBeans IDE 8.0.2 (Build 201411181905) Operating System = Linux version 4.1.1-040101-generic running on amd64 Java; VM; Vendor = 1.8.0_45 Runtime = Java HotSpot(TM) 64-Bit Server VM 25.45-b02 Yesterday my project was fine, it compiled and run with no problem. Today, when I opened it Netbeans can't find a class (CompilationController) in one of the libraries the project depends on: Java Source. To be clear: Java Source is shown on Projects Properties -> Libraries -> Module Dependencies. CompilationController was underlined in my code and I could click on the yellow bulb to find the right dependency (Java Source), but even after that Netbeans couldn't find the class. I tried by removing Java Source from the libraries and adding it again through the described mechanism with no luck. Even after restarting Netbeans with no open project, and creating a new standalone module with the dependency to CompilationController will trigger the problem. The steps I used to solve the problem are (it did not work until the last one): - I turned off Netbeans, deleted the .cache/netbeans folder - I rebooted the computer - I uninstalled Netbeans, run a file system check on the next reboot and reinstalled Netbeans. - I turned off Netbeans and deleted my ~./netbeans/8.0.2 folder with all the contents. I actually did the last step because I was unable to report the bug through Netbeans (my password was not recognized anymore) and someone suggested to delete the ~/.netbeans/dev/config/Preferences/org/netbeans/modules/bugtracking.properties Now, this bug has many duplicates in Bugzilla. The solution that I've seen is "Worksforme", "Incomplete" and "Marked as Duplicated". There is something going on with the contents of the ~./netbeans/8.0.2 folder. I am sure the developers know what folder might be causing the issue. It is annoying to loose all the IDE customizations to finally have the problem gone: it took me hours to hunt the problem down and I lost all my configurations to the IDE. With all the information provided, please fix this bug! Netbeans at least should provide a button somewhere (easy to find, maybe in the Help menu) to erase the problematic (sub)folder(s) -including the cache one that many pointed as the problem but it was not the case this time. Thanks!
Assuming this is about NetBeans Module ant project type.
Yes, it's about a NetBeans Module Ant project type.
Created attachment 154764 [details] .netbeans config folder The error happened again. I deleted the .netbeans/8.0.2 folder and when I restarted Netbeans it worked as expected. I am attaching the contents of .netbeans as a Zip file. The config folder marked as OLD is the one that causes the problem. I don't know where to look to narrow the search. If someone points me to the right subfolder(s) I can investigate further.
Created attachment 154765 [details] config folder content It happened again, but this time with a clean NetBeans install. I managed to narrow the contents of the current and old .netbeans config folders (hence, the new attachment). This is what a diff command gives: diff -qr .netbeans/8.0.2 .netbeans/8.0.2-OLD | sort Files .netbeans/8.0.2/build.properties and .netbeans/8.0.2-OLD/build.properties differ Files .netbeans/8.0.2/config/org-netbeans-api-project-libraries/libraries-timestamps.properties and .netbeans/8.0.2-OLD/config/org-netbeans-api-project-libraries/libraries-timestamps.properties differ Files .netbeans/8.0.2/config/Preferences/org/netbeans/modules/apisupport/ant.properties and .netbeans/8.0.2-OLD/config/Preferences/org/netbeans/modules/apisupport/ant.properties differ Files .netbeans/8.0.2/config/Preferences/org/netbeans/modules/autoupdate/certified-update-provider.properties and .netbeans/8.0.2-OLD/config/Preferences/org/netbeans/modules/autoupdate/certified-update-provider.properties differ Files .netbeans/8.0.2/config/Preferences/org/netbeans/modules/autoupdate/distribution-update-provider.properties and .netbeans/8.0.2-OLD/config/Preferences/org/netbeans/modules/autoupdate/distribution-update-provider.properties differ Files .netbeans/8.0.2/config/Preferences/org/netbeans/modules/autoupdate.properties and .netbeans/8.0.2-OLD/config/Preferences/org/netbeans/modules/autoupdate.properties differ Files .netbeans/8.0.2/config/Preferences/org/netbeans/modules/project/ant.properties and .netbeans/8.0.2-OLD/config/Preferences/org/netbeans/modules/project/ant.properties differ Files .netbeans/8.0.2/config/Preferences/org/netbeans/modules/uihandler.properties and .netbeans/8.0.2-OLD/config/Preferences/org/netbeans/modules/uihandler.properties differ Files .netbeans/8.0.2/config/Preferences/org/netbeans/modules/utilities/RecentFilesHistory.properties and .netbeans/8.0.2-OLD/config/Preferences/org/netbeans/modules/utilities/RecentFilesHistory.properties differ Files .netbeans/8.0.2/config/Services/org-netbeans-modules-debugger-Settings.properties and .netbeans/8.0.2-OLD/config/Services/org-netbeans-modules-debugger-Settings.properties differ Files .netbeans/8.0.2/config/Windows2Local/Components/breakpointsView.settings and .netbeans/8.0.2-OLD/config/Windows2Local/Components/breakpointsView.settings differ Files .netbeans/8.0.2/config/Windows2Local/Components/callstackView.settings and .netbeans/8.0.2-OLD/config/Windows2Local/Components/callstackView.settings differ Files .netbeans/8.0.2/config/Windows2Local/Components/classes.settings and .netbeans/8.0.2-OLD/config/Windows2Local/Components/classes.settings differ Files .netbeans/8.0.2/config/Windows2Local/Components/debuggingView.settings and .netbeans/8.0.2-OLD/config/Windows2Local/Components/debuggingView.settings differ Files .netbeans/8.0.2/config/Windows2Local/Components/evaluator.settings and .netbeans/8.0.2-OLD/config/Windows2Local/Components/evaluator.settings differ Files .netbeans/8.0.2/config/Windows2Local/Components/gsf-testrunner-results.settings and .netbeans/8.0.2-OLD/config/Windows2Local/Components/gsf-testrunner-results.settings differ Files .netbeans/8.0.2/config/Windows2Local/Components/localsView.settings and .netbeans/8.0.2-OLD/config/Windows2Local/Components/localsView.settings differ Files .netbeans/8.0.2/config/Windows2Local/Components/MultiView-java#002Eso10CA9CC1xt#002Ehistory#007C_1.settings and .netbeans/8.0.2-OLD/config/Windows2Local/Components/MultiView-java#002Eso10CA9CC1xt#002Ehistory#007C_1.settings differ Files .netbeans/8.0.2/config/Windows2Local/Components/navigatorTC.settings and .netbeans/8.0.2-OLD/config/Windows2Local/Components/navigatorTC.settings differ Files .netbeans/8.0.2/config/Windows2Local/Components/output.settings and .netbeans/8.0.2-OLD/config/Windows2Local/Components/output.settings differ Files .netbeans/8.0.2/config/Windows2Local/Components/projectTabLogical_tc.settings and .netbeans/8.0.2-OLD/config/Windows2Local/Components/projectTabLogical_tc.settings differ Files .netbeans/8.0.2/config/Windows2Local/Components/resultsView.settings and .netbeans/8.0.2-OLD/config/Windows2Local/Components/resultsView.settings differ Files .netbeans/8.0.2/config/Windows2Local/Components/sessionsView.settings and .netbeans/8.0.2-OLD/config/Windows2Local/Components/sessionsView.settings differ Files .netbeans/8.0.2/config/Windows2Local/Components/sources.settings and .netbeans/8.0.2-OLD/config/Windows2Local/Components/sources.settings differ Files .netbeans/8.0.2/config/Windows2Local/Components/threadsView.settings and .netbeans/8.0.2-OLD/config/Windows2Local/Components/threadsView.settings differ Files .netbeans/8.0.2/config/Windows2Local/Components/watchesView.settings and .netbeans/8.0.2-OLD/config/Windows2Local/Components/watchesView.settings differ Files .netbeans/8.0.2/config/Windows2Local/Modes/.nbattrs and .netbeans/8.0.2-OLD/config/Windows2Local/Modes/.nbattrs differ Files .netbeans/8.0.2/config/Windows2Local/Modes/output/gsf-testrunner-results.wstcref and .netbeans/8.0.2-OLD/config/Windows2Local/Modes/output/gsf-testrunner-results.wstcref differ Files .netbeans/8.0.2/config/Windows2Local/Modes/output/output.wstcref and .netbeans/8.0.2-OLD/config/Windows2Local/Modes/output/output.wstcref differ Files .netbeans/8.0.2/config/Windows2Local/Modes/output.wsmode and .netbeans/8.0.2-OLD/config/Windows2Local/Modes/output.wsmode differ Files .netbeans/8.0.2/config/Windows2Local/WindowManager.wswmgr and .netbeans/8.0.2-OLD/config/Windows2Local/WindowManager.wswmgr differ Files .netbeans/8.0.2/var/filehistory/167/bf3821695a37aa15c3634044810370c5/data and .netbeans/8.0.2-OLD/var/filehistory/167/bf3821695a37aa15c3634044810370c5/data differ Files .netbeans/8.0.2/var/filehistory/335/63c0977ec5849ef4136fda0297cb2950/data and .netbeans/8.0.2-OLD/var/filehistory/335/63c0977ec5849ef4136fda0297cb2950/data differ Files .netbeans/8.0.2/var/filehistory/68/956db51e0a6491fded95152e84cb3d3b/data and .netbeans/8.0.2-OLD/var/filehistory/68/956db51e0a6491fded95152e84cb3d3b/data differ Files .netbeans/8.0.2/var/filehistory/95/b9b0f14763c57befb66990b6cf4e2fea/data and .netbeans/8.0.2-OLD/var/filehistory/95/b9b0f14763c57befb66990b6cf4e2fea/data differ Files .netbeans/8.0.2/var/log/messages.log and .netbeans/8.0.2-OLD/var/log/messages.log differ Files .netbeans/8.0.2/var/log/metrics.1 and .netbeans/8.0.2-OLD/var/log/metrics.1 differ Files .netbeans/8.0.2/var/log/metrics and .netbeans/8.0.2-OLD/var/log/metrics differ Files .netbeans/8.0.2/var/log/uigestures and .netbeans/8.0.2-OLD/var/log/uigestures differ Only in .netbeans/8.0.2/config/Windows2Local/Modes/output: breakpointsView.wstcref Only in .netbeans/8.0.2/config/Windows2Local/Modes/output: callstackView.wstcref Only in .netbeans/8.0.2/config/Windows2Local/Modes/output: localsView.wstcref Only in .netbeans/8.0.2/config/Windows2Local/Modes/output: watchesView.wstcref Only in .netbeans/8.0.2-OLD/config/Windows2Local/Components: MultiView-java#002Eso888FBB5t#002Ehistory#007C_27.settings Only in .netbeans/8.0.2-OLD/config/Windows2Local/Modes/editor: MultiView-java#002Eso888FBB5t#002Ehistory#007C_27.wstcref Only in .netbeans/8.0.2-OLD/config/Windows2Local/Modes/leftSlidingSide: breakpointsView.wstcref Only in .netbeans/8.0.2-OLD/config/Windows2Local/Modes/leftSlidingSide: callstackView.wstcref Only in .netbeans/8.0.2-OLD/config/Windows2Local/Modes/leftSlidingSide: localsView.wstcref Only in .netbeans/8.0.2-OLD/config/Windows2Local/Modes/leftSlidingSide: watchesView.wstcref Only in .netbeans/8.0.2-OLD/var/filehistory/167/bf3821695a37aa15c3634044810370c5: 1437480184000 Only in .netbeans/8.0.2-OLD/var/filehistory/167/bf3821695a37aa15c3634044810370c5: 1437482312000 Only in .netbeans/8.0.2-OLD/var/filehistory/335/63c0977ec5849ef4136fda0297cb2950: 1437480167000 Only in .netbeans/8.0.2-OLD/var/filehistory/335/63c0977ec5849ef4136fda0297cb2950: 1437480438000 Only in .netbeans/8.0.2-OLD/var/filehistory/335/63c0977ec5849ef4136fda0297cb2950: 1437480476000 Only in .netbeans/8.0.2-OLD/var/filehistory/68/956db51e0a6491fded95152e84cb3d3b: 1437480184000 Only in .netbeans/8.0.2-OLD/var/filehistory/68/956db51e0a6491fded95152e84cb3d3b: 1437482312000 Only in .netbeans/8.0.2-OLD/var/filehistory/95/b9b0f14763c57befb66990b6cf4e2fea: 1437480184000 Only in .netbeans/8.0.2-OLD/var/filehistory/95/b9b0f14763c57befb66990b6cf4e2fea: 1437482312000 Only in .netbeans/8.0.2-OLD/var/log: messages.log.1 Only in .netbeans/8.0.2/var/filehistory/167/bf3821695a37aa15c3634044810370c5: 1437483629000 Only in .netbeans/8.0.2/var/filehistory/335/63c0977ec5849ef4136fda0297cb2950: 1437480549000 Only in .netbeans/8.0.2/var/filehistory/68/956db51e0a6491fded95152e84cb3d3b: 1437483629000 Only in .netbeans/8.0.2/var/filehistory/95/b9b0f14763c57befb66990b6cf4e2fea: 1437483629000 Anything else I can do?
Created attachment 154887 [details] Screenshot of the problem This problem is happening quite often and it is getting really annoying. The picture clearly shows Netbeans complaining about a missing method, which is shown right underneath the popup menu. It also shows the file has been saved! Now, it used to be a method in that class that matches the one Netbeans is complaining about, but it is gone! The main use for Netbeans is to code and edit files. It's evident that Netbeans is buggy in the core of its purpose. Unfortunately I can't ditch Netbeans (too much time and money invested in learning the Platform), but I surely regret my decision: this bug was reported since Netbeans 6! IMHO, this bug should be a top priority for the developers.
Is this just about the error highlighting problem? Or are you unable to build the project at all?
It did not compile... The compiler said (in the output window) it could not find the CompilationController class, so this is definitely not *just* about the highlighting problem...
Ok, the workaround does not work anymore. For some strange reason, after a few days, the error came back. The project compiled and run in the past and no new dependencies were added. I now get the following in the Output window: Created dir: /home/marcelo/NetBeansProjects/JavaFxBeanGenerator/build/classes Compiling 23 source files to /home/marcelo/NetBeansProjects/JavaFxBeanGenerator/build/classes /home/marcelo/NetBeansProjects/JavaFxBeanGenerator/src/com/mjr/netbeans/javafxbeangenerator/ui/FxModificationRequestRootNode.java:21: error: cannot access HelpCtx public class FxModificationRequestRootNode extends AbstractNode { class file for org.openide.util.HelpCtx not found /home/marcelo/NetBeansProjects/JavaFxBeanGeneratorSuite/build/public-package-jars/org-netbeans-api-annotations-common.jar(org/netbeans/api/annotations/common/NonNull.class): warning: Cannot find annotation method 'when()' in type 'Nonnull': class file for javax.annotation.Nonnull not found /home/marcelo/NetBeansProjects/JavaFxBeanGeneratorSuite/build/public-package-jars/org-netbeans-api-annotations-common.jar(org/netbeans/api/annotations/common/CheckForNull.class): warning: Cannot find annotation method 'when()' in type 'Nonnull' warning: Supported source version 'RELEASE_7' from annotation processor 'org.netbeans.api.annotations.common.proc.StaticResourceProcessor' less than -source '1.8' warning: Supported source version 'RELEASE_7' from annotation processor 'org.netbeans.modules.openide.filesystems.declmime.MIMEResolverProcessor' less than -source '1.8' warning: Supported source version 'RELEASE_7' from annotation processor 'org.netbeans.modules.openide.util.NbBundleProcessor' less than -source '1.8' warning: Supported source version 'RELEASE_7' from annotation processor 'org.netbeans.modules.openide.util.ServiceProviderProcessor' less than -source '1.8' warning: Supported source version 'RELEASE_7' from annotation processor 'org.netbeans.modules.openide.util.NamedServiceProcessor' less than -source '1.8' warning: Supported source version 'RELEASE_7' from annotation processor 'org.netbeans.modules.openide.modules.PatchedPublicProcessor' less than -source '1.8' warning: Supported source version 'RELEASE_7' from annotation processor 'org.netbeans.modules.openide.awt.ActionProcessor' less than -source '1.8' warning: Supported source version 'RELEASE_7' from annotation processor 'org.netbeans.core.multiview.MultiViewProcessor' less than -source '1.8' warning: Supported source version 'RELEASE_7' from annotation processor 'org.netbeans.modules.editor.mimelookup.CreateRegistrationProcessor' less than -source '1.8' warning: Supported source version 'RELEASE_7' from annotation processor 'org.netbeans.modules.openide.nodes.NodesAnnotationProcessor' less than -source '1.8' warning: Supported source version 'RELEASE_7' from annotation processor 'org.netbeans.modules.openide.windows.TopComponentProcessor' less than -source '1.8' warning: Supported source version 'RELEASE_7' from annotation processor 'org.netbeans.modules.editor.lib2.EditorActionRegistrationProcessor' less than -source '1.8' warning: Supported source version 'RELEASE_7' from annotation processor 'org.netbeans.modules.options.OptionsPanelControllerProcessor' less than -source '1.8' warning: Supported source version 'RELEASE_7' from annotation processor 'org.netbeans.modules.openide.loaders.DataObjectFactoryProcessor' less than -source '1.8' warning: Supported source version 'RELEASE_7' from annotation processor 'org.netbeans.modules.templates.TemplateProcessor' less than -source '1.8' warning: Supported source version 'RELEASE_7' from annotation processor 'org.netbeans.modules.projectapi.LookupProviderAnnotationProcessor' less than -source '1.8' warning: Supported source version 'RELEASE_7' from annotation processor 'org.netbeans.modules.project.uiapi.CompositeCategoryProviderAnnotationProcessor' less than -source '1.8' warning: Supported source version 'RELEASE_7' from annotation processor 'org.netbeans.modules.project.uiapi.NodeFactoryAnnotationProcessor' less than -source '1.8' warning: Supported source version 'RELEASE_7' from annotation processor 'org.netbeans.modules.parsing.impl.EmbeddingProviderRegistrationProcessor' less than -source '1.8' warning: Supported source version 'RELEASE_7' from annotation processor 'org.netbeans.modules.parsing.impl.indexing.IndexerRegistrationProcessor' less than -source '1.8' warning: Supported source version 'RELEASE_7' from annotation processor 'org.netbeans.modules.parsing.impl.indexing.PathRecognizerRegistrationProcessor' less than -source '1.8' warning: Supported source version 'RELEASE_7' from annotation processor 'org.netbeans.modules.refactoring.spi.impl.ScopeAnnotationProcessor' less than -source '1.8' warning: Supported source version 'RELEASE_7' from annotation processor 'org.netbeans.junit.internal.RandomlyFailsProcessor' less than -source '1.8' warning: No processor claimed any of these annotations: org.netbeans.api.annotations.common.CheckForNull,org.netbeans.api.annotations.common.NonNull /home/marcelo/NetBeansProjects/JavaFxBeanGenerator/src/com/mjr/netbeans/javafxbeangenerator/implementation/FxCodeGenerator.java:18: error: cannot find symbol import org.netbeans.api.java.source.CompilationController; symbol: class CompilationController location: package org.netbeans.api.java.source /home/marcelo/NetBeansProjects/JavaFxBeanGenerator/src/com/mjr/netbeans/javafxbeangenerator/implementation/FxCodeGenerator.java:19: error: package org.netbeans.api.java.source.JavaSource does not exist import org.netbeans.api.java.source.JavaSource.Phase; /home/marcelo/NetBeansProjects/JavaFxBeanGenerator/src/com/mjr/netbeans/javafxbeangenerator/implementation/FxCodeGenerator.java:38: error: cannot find symbol private final CompilationController controller; symbol: class CompilationController location: class FxCodeGenerator /home/marcelo/NetBeansProjects/JavaFxBeanGenerator/src/com/mjr/netbeans/javafxbeangenerator/implementation/FxCodeGenerator.java:90: error: cannot find symbol final CompilationController controller) { symbol: class CompilationController location: class FxCodeGenerator /home/marcelo/NetBeansProjects/JavaFxBeanGenerator/src/com/mjr/netbeans/javafxbeangenerator/implementation/FxCodeGeneratorFactory.java:18: error: cannot find symbol import org.netbeans.api.java.source.CompilationController; symbol: class CompilationController location: package org.netbeans.api.java.source /home/marcelo/NetBeansProjects/JavaFxBeanGenerator/src/com/mjr/netbeans/javafxbeangenerator/implementation/FxCodeGeneratorFactory.java:19: error: package org.netbeans.api.java.source.JavaSource does not exist import org.netbeans.api.java.source.JavaSource.Phase; /home/marcelo/NetBeansProjects/JavaFxBeanGenerator/src/com/mjr/netbeans/javafxbeangenerator/implementation/FxCodeGeneratorFactory.java:47: error: cannot find symbol final CompilationController controller) { symbol: class CompilationController location: class FxCodeGeneratorFactory /home/marcelo/NetBeansProjects/JavaFxBeanGeneratorSuite/build/public-package-jars/org-netbeans-api-annotations-common.jar(org/netbeans/api/annotations/common/NonNull.class): warning: Cannot find annotation method 'when()' in type 'Nonnull': class file for javax.annotation.Nonnull not found /home/marcelo/NetBeansProjects/JavaFxBeanGeneratorSuite/build/public-package-jars/org-netbeans-api-annotations-common.jar(org/netbeans/api/annotations/common/CheckForNull.class): warning: Cannot find annotation method 'when()' in type 'Nonnull' 7 errors 28 warnings /home/marcelo/netbeans-8.0.2/harness/common.xml:220: Compile failed; see the compiler error output for details. Why is Netbeans showing this when the project has the right dependencies? Don't the developers think this is a HUGE issue?
Please attach a sample project (or the real project itself) or send it to my email. Thanks.
Sorry i can't reproduce, i can compile a sample platform app with a dep on java source just fine. Please attach a sample test app you can't build.