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

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

    XMLWordPrintableJSON

Details

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

    Description

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

      Problem:

      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/192.168.1.105/desktop-vm4la03-Windows-x86_64 at root@192.168.1.105
      Building project files list...
      Checking directory structure...
      Checking previously uploaded files...
      Checking links...
      Uploading changed files:
      	Zipping 11 changed files...
      	Uploading zip to root@192.168.1.105...
      	Unzipping changed files...
      Checking exec permissions...
      chmod: cannot access '/root/.netbeans/remote/192.168.1.105/desktop-vm4la03-Windows-x86_64/C/Welcome2/nbproject/configurations.xml': No such file or directory
      chmod: cannot access '/root/.netbeans/remote/192.168.1.105/desktop-vm4la03-Windows-x86_64/C/Welcome2/nbproject/private/timestamps-192.168.1.106-root-22': No such file or directory
      chmod: cannot access '/root/.netbeans/remote/192.168.1.105/desktop-vm4la03-Windows-x86_64/C/Welcome2/nbproject/private/configurations.xml': No such file or directory
      chmod: cannot access '/root/.netbeans/remote/192.168.1.105/desktop-vm4la03-Windows-x86_64/C/Welcome2/nbproject/private/timestamps-192.168.1.105-root-22': No such file or directory
      chmod: cannot access '/root/.netbeans/remote/192.168.1.105/desktop-vm4la03-Windows-x86_64/C/Welcome2/nbproject/private/launcher.properties': No such file or directory
      chmod: cannot access '/root/.netbeans/remote/192.168.1.105/desktop-vm4la03-Windows-x86_64/C/Welcome2/nbproject/private/private.xml': No such file or directory
      Error copying project files to /root/.netbeans/remote/192.168.1.105/desktop-vm4la03-Windows-x86_64 at root@192.168.1.105: 
      Can not check remote directories. xargs exited with error code 123
      BUILD FAILED
      

      Any hints or help are welcome.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated: