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

C++ Code Completion not working

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 12.0, 11.2, 11.3
    • None
    • cnd - Code Completion
    • None
    • Windows 10, msys64

    Description

      Sometimes the Code Completion doesn't work. So creating a derived class and try to auto complete a constructor just shows "Please wait.." tool tip and a notification is created.

      Part of Log:

      SEVERE [org.openide.util.RequestProcessor]: Error in RequestProcessor org.netbeans.spi.editor.completion.support.AsyncCompletionTask
      java.lang.ClassCastException: org.openide.util.ImageUtilities$ToolTipImage cannot be cast to java.desktop/javax.swing.ImageIcon
      at org.netbeans.modules.cnd.refactoring.completion.overridemethod.CsmOverrideMethodCompletionItem.<init>(CsmOverrideMethodCompletionItem.java:112)
      at org.netbeans.modules.cnd.refactoring.completion.overridemethod.CsmOverrideMethodCompletionItem.createImplementItem(CsmOverrideMethodCompletionItem.java:139)
      at org.netbeans.modules.cnd.refactoring.completion.overridemethod.CsmOverrideMethodCompletionProvider$Query.getItems(CsmOverrideMethodCompletionProvider.java:242)
      at org.netbeans.modules.cnd.refactoring.completion.overridemethod.CsmOverrideMethodCompletionProvider$Query.query(CsmOverrideMethodCompletionProvider.java:125)
      at org.netbeans.spi.editor.completion.support.AsyncCompletionTask.run(AsyncCompletionTask.java:198)
      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)
      [catch] at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:2033)

      Attachments

        1. image-2022-03-18-04-17-03-342.png
          49 kB
          Junhao Liao
        2. image-2022-03-18-04-17-24-419.png
          167 kB
          Junhao Liao

        Issue Links

          Activity

            People

              Unassigned Unassigned
              holger.weber Holger Weber
              Votes:
              1 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated: