[ 
https://issues.apache.org/jira/browse/NETBEANS-3101?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Jaroslav Tulach reopened NETBEANS-3101:
---------------------------------------
      Assignee: Jaroslav Tulach

At the end the fix may be needed for the [VSCode 
extension|https://github.com/apache/netbeans/tree/master/java/java.lsp.server/vscode]
 running on GraalVM/JDK8. It is [launching NetBeans from 
code|https://github.com/apache/netbeans/commit/fa22d9c0508e6b8a15a2dfb07ee8c4b7ef6c1a99#diff-7eb3c296ad0e55de616ce54ff7993a4aL63].
 It cannot use the {{[ignore, ignore, ignore]}} trick as the LSP client needs 
stdio to talk to the server.

As such I [integrated the here in proposed 
patch|https://github.com/apache/netbeans/commit/005d869d0d47afac38dbfca6c244a2054e98a9a9]
 into the {{java-lsp-server-debugging-attempt2}} branch. Now the GraalVM/JDK8 
support is working.

> Can't launch (and connect) NetBeans from node
> ---------------------------------------------
>
>                 Key: NETBEANS-3101
>                 URL: https://issues.apache.org/jira/browse/NETBEANS-3101
>             Project: NetBeans
>          Issue Type: Bug
>          Components: platform - Launchers&CLI
>            Reporter: Jaroslav Tulach
>            Assignee: Jaroslav Tulach
>            Priority: Minor
>
>  
> I am trying to connect to a *NetBeans* based application from _Visual Studio_ 
> - aka _Electron_ - aka *node*. Somehow the *node* mangles network setup and 
> the InetAddress.getHostAddress() isn't the same. To reproduce create 
> following structure of files:
> {code:java}
> $ ls -l | cut -c50-
> dump.hprof
> nb.js
> nb.sh
> netbeans -> /home/devel/bin/netbeans/bin/netbeans
> $ cat nb.sh 
> ./netbeans 'dump.hprof'
> $ cat nb.js 
> var exec = require("child_process").execFile;
> let path = './netbeans';let vvm = exec(path, [ 'dump.hprof' ]){code}
> Then start *./netbeans* on background and wait for the GUI to launch. Then do 
> following from command line:
> {code:java}
> ./jvm.sh
> {code}
> The dump.hprof file opens in the the GUI. Close it and try the same via 
> *node.js*:
> {code:java}
> node ./jvm.js
> {code}
> The heap dump isn't shown (on my computer), rather a warning dialog appears. 
> Result of node and shell script disagreeing on what is local host address. 
> One is using IPv6 and one IPv4.
>  



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@netbeans.apache.org
For additional commands, e-mail: commits-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