You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@netbeans.apache.org by "Tomáš Poledný (Jira)" <ji...@apache.org> on 2019/11/07 08:17:00 UTC

[jira] [Created] (NETBEANS-3349) Cannot use Elements.getTypeElement before the TaskEvent.Kind.ENTER finished event.

Tomáš Poledný created NETBEANS-3349:
---------------------------------------

             Summary: Cannot use Elements.getTypeElement before the TaskEvent.Kind.ENTER finished event.
                 Key: NETBEANS-3349
                 URL: https://issues.apache.org/jira/browse/NETBEANS-3349
             Project: NetBeans
          Issue Type: Bug
          Components: java - Editor, java - Hints
    Affects Versions: 11.2
            Reporter: Tomáš Poledný


Hi,
I have problem with Java hints from upgrade to Netbeans 11.2. It looks like some problem with nb-javac. It is big problem because I am not able show hint dialog when I press `Alt` + `Enter`.  My OS is Windows 10.
{noformat}
java.lang.IllegalStateException: Cannot use Elements.getTypeElement before the TaskEvent.Kind.ENTER finished event.
	at com.sun.tools.javac.model.JavacElements.ensureEntered(JavacElements.java:891)
	at com.sun.tools.javac.model.JavacElements.doGetTypeElement(JavacElements.java:171)
	at com.sun.tools.javac.model.JavacElements.getTypeElement(JavacElements.java:160)
	at com.sun.tools.javac.model.JavacElements.getTypeElement(JavacElements.java:85)
	at org.netbeans.modules.java.hints.spiimpl.Hacks.parseFQNType(Hacks.java:150)
	at org.netbeans.modules.java.hints.spiimpl.hints.HintsInvoker.doComputeHints(HintsInvoker.java:525)
	at org.netbeans.modules.java.hints.spiimpl.hints.HintsInvoker.computeSuggestions(HintsInvoker.java:450)
	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)
[catch] 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.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
	at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
	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)
	at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:2033)

{noformat}




--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
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