You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@netbeans.apache.org by "Jaroslav Tulach (Jira)" <ji...@apache.org> on 2021/03/31 06:13:00 UTC

[jira] [Resolved] (NETBEANS-3101) Can't launch (and connect) NetBeans from node

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

Jaroslav Tulach resolved NETBEANS-3101.
---------------------------------------
    Fix Version/s: 12.2
       Resolution: Fixed

> 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&amp;CLI
>            Reporter: Jaroslav Tulach
>            Assignee: Jaroslav Tulach
>            Priority: Minor
>             Fix For: 12.2
>
>
>  
> 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-unsubscribe@netbeans.apache.org
For additional commands, e-mail: commits-help@netbeans.apache.org

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