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

No restart of language server after change of JDK home

    XMLWordPrintableJSON

Details

    Description

      Choose File/Preferences/Settings and change the value of

       
      "netbeans.jdkhome": "",
       

      while the Apache NetBeans Language Server VSCode extension is running. The nbcode backend shall be killed and restarted on the new JDK. However it goes into strange loop and then stops listening for changes in the property completely. Example of output:

      Initiating server activation
      extension.js:184
      Request to kill LSP server.
      extension.js:190
      Cannot kill: current process is None
      extension.js:212
      LSP server launching: 27193
      extension.js:252
      LSP server 27193 terminated with 0
      extension.js:277
      Initiating server activation
      extension.js:184
      Request to kill LSP server.
      extension.js:190
      Killing LSP server 27193
      extension.js:201
      rejected promise not handled within 1 second: Cannot kill
      extensionHostProcess.js:1059
      Server activation requested repeatedly, ignoring...
      extension.js:173
      Server activation requested repeatedly, ignoring...
      extension.js:173
      Server activation requested repeatedly, ignoring... 

      sdedic  has already addressed this issue in PR-2531.

      Attachments

        Issue Links

          Activity

            People

              sdedic Svatopluk Dedic
              jtulach Jaroslav Tulach
              Votes:
              0 Vote for this issue
              Watchers:
              3 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 - 10m
                  10m