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

NullPointerException at MarkOccurrences.computeHighlights(MarkOccurrences.java:104)

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 12.4
    • 12.5
    • lsp

    Description

      I tried to add Python language support using the language server: https://github.com/palantir/python-language-server

      I frequently get following NPE:

      java.lang.NullPointerException
      at org.netbeans.modules.lsp.client.bindings.MarkOccurrences.computeHighlights(MarkOccurrences.java:104)
      at org.netbeans.modules.lsp.client.bindings.MarkOccurrences.run(MarkOccurrences.java:82)
      at org.netbeans.modules.lsp.client.LSPBindings.lambda$addBackgroundTask$13(LSPBindings.java:411)
      at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1418)
      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)

       

      The Language Server was added using Tools -> Options menu (see attached Screenshot)

      Attachments

        1. lsp-setup.png
          18 kB
          Michael Küttner

        Issue Links

          Activity

            People

              michael.kuettner Michael Küttner
              michael.kuettner Michael Küttner
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 2h 10m
                  2h 10m