Uploaded image for project: 'NetBeans'
  1. NetBeans
  2. NETBEANS-3349

Cannot use Elements.getTypeElement before the TaskEvent.Kind.ENTER finished event.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Critical
    • Resolution: Unresolved
    • 11.2
    • None
    • java - Editor, java - Hints
    • None
    • Windows 10, AdoptOpenJDK 11

    Description

      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.

      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)
      
      

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              Saljack Tomáš Poledný
              Votes:
              1 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated: