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

Remote C++ development: "Local Terminal is not supported on this system"



    • Bug
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • 8.2, 12.0
    • None
    • None
    • Windows 10


      Hi! I hope this is the right place and form to open this issue...


      I'm trying to develop a C++ project in NetBeans for remote development on a RaspberryPi. I can build and run programs successfully, but I can't open a remote terminal through Services > C/C++ Buil Hosts > [[root@192.168.1.XYZ]] > Right-Click > Open Terminal > Home Folder / Remote mirror of local files.

      However, if I open a Terminal on NetBeans 12, and try to open an SSH connection to the same remote, it does work (I also successfully connect through SSH on PuTTY, or Cygwin, etc.).

      Steps to reproduce (on a Windows 10 PC with either NetBeans 12 or 8.2:

      1. Create new NetBeans project from Samples > C/C++ > "Welcome"
      2. Add new remote host in the services tab > C/C++ Buil Hosts
        In my case, the remote host is a RaspberryPi (either 2, 3 or 4, all with the latest RaspberryPiOS updates) on the same WLAN as the host Windows 10 PC.
      3. Once the connection to the remote is established: right-click on remote > Open Terminal > either "Home folder" or "Remote mirror of local files".


      I have found other users reporting the same problem (on 2013 the earliest), but either the proposed solution did not work for me, or there were no answers provided:
      Bug 237078 - SSH terminal not supported https://bz.apache.org/netbeans/show_bug.cgi?id=237078
      Bug 238464 - Remote terminal error: "Local terminal is not supported on this system" https://bz.apache.org/netbeans/show_bug.cgi?id=238464

       I tried the proposed solution in for Bug 237078 at https://bz.apache.org/netbeans/show_bug.cgi?id=237078#c16 by executing NetBeans with the -J-Dcnd.tmpbase flag set to "/root" on the remote, but I'm getting the following error:

      PS C:\Program Files\NetBeans 8.2\bin> ./netbeans64.exe -J-Dcnd.tmpbase=/root
      The launcher has determined that the parent process has a console and will reuse it for its own console output.
      Closing the console will result in termination of the running program.
      Use '--console suppress' to suppress console output.
      Use '--console new' to create a separate console window.
      C:\Program Files\NetBeans 8.2\bin\.tmpbase=\root does not exist, or is not a plain file.

      Which does not make much sense to me, since I though the flag was trying to set the tmp dir of the remote machine, not the local one.


      I have also found that the last version of NetBeans where this error does not happen is 8.0.2. Now, I would gladly use that version were it not for the Bug 249074 - [regression] "Remote builds using SFTP broke with 8.0.2 update" https://bz.apache.org/netbeans/show_bug.cgi?id=249074 which is reported to be already fixed, although I keep triggering it even after clean download and install of NetBeans 8.0.2, and getting build failures such as this:

      // code placeholder
      Copying project files to /root/.netbeans/remote/ at root@
      Building project files list...
      Checking directory structure...
      Checking previously uploaded files...
      Checking links...
      Uploading changed files:
      	Zipping 11 changed files...
      	Uploading zip to root@
      	Unzipping changed files...
      Checking exec permissions...
      chmod: cannot access '/root/.netbeans/remote/': No such file or directory
      chmod: cannot access '/root/.netbeans/remote/': No such file or directory
      chmod: cannot access '/root/.netbeans/remote/': No such file or directory
      chmod: cannot access '/root/.netbeans/remote/': No such file or directory
      chmod: cannot access '/root/.netbeans/remote/': No such file or directory
      chmod: cannot access '/root/.netbeans/remote/': No such file or directory
      Error copying project files to /root/.netbeans/remote/ at root@ 
      Can not check remote directories. xargs exited with error code 123

      Any hints or help are welcome.




            Unassigned Unassigned
            xabigarde Xabi Garde
            0 Vote for this issue
            2 Start watching this issue