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

Can't launch (and connect) NetBeans from node

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • None
    • 12.2
    • None

    Description

       

      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:

      $ 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' ])

      Then start ./netbeans on background and wait for the GUI to launch. Then do following from command line:

      ./jvm.sh
      

      The dump.hprof file opens in the the GUI. Close it and try the same via node.js:

      node ./jvm.js
      

      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.

       

      Attachments

        Activity

          People

            jtulach Jaroslav Tulach
            jtulach Jaroslav Tulach
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: