jtulach opened a new pull request, #8474:
URL: https://github.com/apache/netbeans/pull/8474

   I am trying to use VSCode extension to debug _native image_ and I am getting:
   ```
   java.lang.NullPointerException: Cannot invoke "String.startsWith(String)" 
because "name" is null
        at 
org.netbeans.modules.java.lsp.server.ui.AbstractLspInputOutputProvider$LspIO.<init>(AbstractLspInputOutputProvider.java:184)
        at 
org.netbeans.modules.java.lsp.server.ui.AbstractLspInputOutputProvider.getIO(AbstractLspInputOutputProvider.java:54)
        at 
org.netbeans.modules.java.lsp.server.ui.AbstractLspInputOutputProvider.getIO(AbstractLspInputOutputProvider.java:39)
        at org.openide.io.BridgingIOProvider.getIO(BridgingIOProvider.java:83)
        at 
org.netbeans.modules.extexecution.InputOutputManager.createInputOutput(InputOutputManager.java:163)
        at 
org.netbeans.api.extexecution.ExecutionService.getInputOutput(ExecutionService.java:336)
        at 
org.netbeans.api.extexecution.ExecutionService.run(ExecutionService.java:160)
        at 
org.netbeans.api.extexecution.ExecutionService.run(ExecutionService.java:156)
        at 
org.netbeans.modules.cpplite.debugger.ni.NIDebuggerProviderImpl.start(NIDebuggerProviderImpl.java:156)
        at 
org.netbeans.modules.nativeimage.api.debug.NIDebugger.start(NIDebugger.java:129)
        at 
org.netbeans.modules.java.nativeimage.debugger.api.NIDebugRunner.start(NIDebugRunner.java:107)
        at 
org.netbeans.modules.java.lsp.server.debugging.launch.NbLaunchDelegate.startNativeDebug(NbLaunchDelegate.java:468)
        at 
org.netbeans.modules.java.lsp.server.debugging.launch.NbLaunchDelegate.lambda$nbLaunch$6(NbLaunchDelegate.java:364)
        at 
org.netbeans.modules.openide.util.GlobalLookup.execute(GlobalLookup.java:45)
        at org.openide.util.lookup.Lookups.executeWith(Lookups.java:287)
        at 
org.netbeans.modules.java.lsp.server.debugging.launch.NbLaunchDelegate.lambda$nbLaunch$7(NbLaunchDelegate.java:362)
        at 
org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1403)
        at 
org.netbeans.modules.openide.util.GlobalLookup.execute(GlobalLookup.java:45)
        at org.openide.util.lookup.Lookups.executeWith(Lookups.java:287)
   ```
   after a bit of debugging I have a fix that specifies `displayName` and seems 
to work fine. Then the debugging of native image gets started. My launch 
configuration:
   ```
     {
         "type": "nativeimage",
         "request": "launch",
         "name": "Launch Native Image",
         "nativeImagePath": 
"${workspaceFolder}/built-distribution/enso-engine-0.0.0-dev-linux-amd64/enso-0.0.0-dev/bin/enso",
         "args": "--jvm /home/devel/bin/graalvm/ --run ${file}"
       }
   ```
   CCing @jlahoda, @entlicher, @MartinBalin 


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscr...@netbeans.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscr...@netbeans.apache.org
For additional commands, e-mail: notifications-h...@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists

Reply via email to