You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@netbeans.apache.org by "Shevek (JIRA)" <ji...@apache.org> on 2019/05/22 01:16:00 UTC

[jira] [Comment Edited] (NETBEANS-2334) Code generating tasks or switching git branches break NetBeans

    [ https://issues.apache.org/jira/browse/NETBEANS-2334?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16811321#comment-16811321 ] 

Shevek edited comment on NETBEANS-2334 at 5/22/19 1:15 AM:
-----------------------------------------------------------

I have 32 of these, but I'm not sure if this is the culprit:

INFO: No FileObject found for the following URL: file:/home/shevek/java/<project>/<submodule>/build/generated-sources/<codegenerator>/test/java/
java.lang.IllegalStateException: No FileObject found for the following URL: file:/home/shevek/java/<project>/<submodule>/build/generated-sources/<codegenerator>/test/java/
        at org.netbeans.modules.java.testrunner.CommonTestUtil.getTestTargets(CommonTestUtil.java:130)
        at org.netbeans.modules.java.testrunner.providers.JavaCommonTestUtilProvider.getTestTargets(JavaCommonTestUtilProvider.java:37)
        at org.netbeans.modules.java.testrunner.ui.hints.Utils.populateLocations(Utils.java:122)
        at org.netbeans.modules.java.testrunner.ui.hints.Utils.getValidCombinations(Utils.java:62)
        at org.netbeans.modules.java.testrunner.ui.hints.CreateTestClassHint.computeWarning(CreateTestClassHint.java:85)
        at sun.reflect.GeneratedMethodAccessor184.invoke(Unknown Source) 
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:498)
        at org.netbeans.modules.java.hints.providers.code.CodeHintProviderImpl$WorkerImpl.createErrors(CodeHintProviderImpl.java:317)
        at org.netbeans.modules.java.hints.spiimpl.hints.HintsInvoker.runHint(HintsInvoker.java:798)
        at org.netbeans.modules.java.hints.spiimpl.hints.HintsInvoker.access$400(HintsInvoker.java:90)
        at org.netbeans.modules.java.hints.spiimpl.hints.HintsInvoker$ScannerImpl.runAndAdd(HintsInvoker.java:657)
        at org.netbeans.modules.java.hints.spiimpl.hints.HintsInvoker$ScannerImpl.scanDoNotGoDeeper(HintsInvoker.java:711)
        at org.netbeans.modules.java.hints.spiimpl.hints.HintsInvoker.computeSuggestions(HintsInvoker.java:385)
        at org.netbeans.modules.java.hints.spiimpl.hints.HintsInvoker.computeHints(HintsInvoker.java:221)
        at org.netbeans.modules.java.hints.spiimpl.hints.HintsInvoker.computeHints(HintsInvoker.java:193)
        at org.netbeans.modules.java.hints.spiimpl.hints.HintsInvoker.computeHints(HintsInvoker.java:166)
        at org.netbeans.modules.java.hints.spiimpl.hints.HintsInvoker.computeHints(HintsInvoker.java:128)
        at org.netbeans.modules.java.hints.spiimpl.hints.HintsTask.run(HintsTask.java:114)
        at org.netbeans.modules.java.hints.spiimpl.hints.HintsTask.run(HintsTask.java:65)
        at org.netbeans.modules.java.source.JavaSourceAccessor$CancelableTaskWrapper.run(JavaSourceAccessor.java:273)
        at org.netbeans.modules.parsing.impl.TaskProcessor.callParserResultTask(TaskProcessor.java:561)
        at org.netbeans.modules.parsing.impl.TaskProcessor$RequestPerformer.run(TaskProcessor.java:786)
        at org.openide.util.lookup.Lookups.executeWith(Lookups.java:279)
        at org.netbeans.modules.parsing.impl.TaskProcessor$RequestPerformer.execute(TaskProcessor.java:702)
        at org.netbeans.modules.parsing.impl.TaskProcessor$CompilationJob.run(TaskProcessor.java:663)
        at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
        at java.util.concurrent.FutureTask.run(FutureTask.java:266)
        at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1418)
        at org.netbeans.modules.openide.util.GlobalLookup.execute(GlobalLookup.java:45)
        at org.openide.util.lookup.Lookups.executeWith(Lookups.java:278)

Note that while that is a sourceSet which is potentially exported by the Gradle model, the directory doesn't exist (which should be fine) and I'm wary of the cost of exception throwing, which is a very odd animal.


was (Author: arren):
I have 32 of these, but I'm not sure if this is the culprit:

INFO: No FileObject found for the following URL: file:/home/shevek/java/<project>/<submodule>/build/generated-sources/<codegenerator>/test/java/
java.lang.IllegalStateException: No FileObject found for the following URL: file:/home/shevek/java/<project>/<submodule>/build/generated-sources/<codegenerator>/test/java/
        at org.netbeans.modules.java.testrunner.CommonTestUtil.getTestTargets(CommonTestUtil.java:130)
        at org.netbeans.modules.java.testrunner.providers.JavaCommonTestUtilProvider.getTestTargets(JavaCommonTestUtilProvider.java:37)
        at org.netbeans.modules.java.testrunner.ui.hints.Utils.populateLocations(Utils.java:122)
        at org.netbeans.modules.java.testrunner.ui.hints.Utils.getValidCombinations(Utils.java:62)
        at org.netbeans.modules.java.testrunner.ui.hints.CreateTestClassHint.computeWarning(CreateTestClassHint.java:85)
        at sun.reflect.GeneratedMethodAccessor184.invoke(Unknown Source) 
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:498)
        at org.netbeans.modules.java.hints.providers.code.CodeHintProviderImpl$WorkerImpl.createErrors(CodeHintProviderImpl.java:317)
        at org.netbeans.modules.java.hints.spiimpl.hints.HintsInvoker.runHint(HintsInvoker.java:798)
        at org.netbeans.modules.java.hints.spiimpl.hints.HintsInvoker.access$400(HintsInvoker.java:90)
        at org.netbeans.modules.java.hints.spiimpl.hints.HintsInvoker$ScannerImpl.runAndAdd(HintsInvoker.java:657)
        at org.netbeans.modules.java.hints.spiimpl.hints.HintsInvoker$ScannerImpl.scanDoNotGoDeeper(HintsInvoker.java:711)
        at org.netbeans.modules.java.hints.spiimpl.hints.HintsInvoker.computeSuggestions(HintsInvoker.java:385)
        at org.netbeans.modules.java.hints.spiimpl.hints.HintsInvoker.computeHints(HintsInvoker.java:221)
        at org.netbeans.modules.java.hints.spiimpl.hints.HintsInvoker.computeHints(HintsInvoker.java:193)
        at org.netbeans.modules.java.hints.spiimpl.hints.HintsInvoker.computeHints(HintsInvoker.java:166)
        at org.netbeans.modules.java.hints.spiimpl.hints.HintsInvoker.computeHints(HintsInvoker.java:128)
        at org.netbeans.modules.java.hints.spiimpl.hints.HintsTask.run(HintsTask.java:114)
        at org.netbeans.modules.java.hints.spiimpl.hints.HintsTask.run(HintsTask.java:65)
        at org.netbeans.modules.java.source.JavaSourceAccessor$CancelableTaskWrapper.run(JavaSourceAccessor.java:273)
        at org.netbeans.modules.parsing.impl.TaskProcessor.callParserResultTask(TaskProcessor.java:561)
        at org.netbeans.modules.parsing.impl.TaskProcessor$RequestPerformer.run(TaskProcessor.java:786)
        at org.openide.util.lookup.Lookups.executeWith(Lookups.java:279)
        at org.netbeans.modules.parsing.impl.TaskProcessor$RequestPerformer.execute(TaskProcessor.java:702)
        at org.netbeans.modules.parsing.impl.TaskProcessor$CompilationJob.run(TaskProcessor.java:663)
        at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
        at java.util.concurrent.FutureTask.run(FutureTask.java:266)
        at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1418)
        at org.netbeans.modules.openide.util.GlobalLookup.execute(GlobalLookup.java:45)
        at org.openide.util.lookup.Lookups.executeWith(Lookups.java:278)

Note that while that is a sourceSet which is potentially exported by the Gradle model, the directory doesn't exist (which should be fine) and I'm wary of the cost of exception throwing, which is a very odd anial.

> Code generating tasks or switching git branches break NetBeans
> --------------------------------------------------------------
>
>                 Key: NETBEANS-2334
>                 URL: https://issues.apache.org/jira/browse/NETBEANS-2334
>             Project: NetBeans
>          Issue Type: Bug
>    Affects Versions: 10.0
>         Environment: OpenJDK Runtime Environment (build 1.8.0_191-8u191-b12-2ubuntu0.18.10.1-b12)
>            Reporter: Shevek
>            Priority: Major
>
> If I have a gradle task which generates code, e.g. grpc, protobuf, thrift, xjc, antlr, custom template-driven tasks, they remove and recreate a large number of files under NB. NB then breaks: It goes into the 'background scanning of projects' / 'scanning for external changes' of death and needs a restart.
> Alternatively, switching git branches will do the same.
> A peculiar, possibly related effect is that NB can't see new classes I create even when it's not apparently scanning, e.g. I create a class in a package, but fix imports in another package can't import it until I restart netbeans.
> I've disabled auto-scanning of sources, will see if that helps.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@netbeans.apache.org
For additional commands, e-mail: commits-help@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists