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 > [[firstname.lastname@example.org.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:
- Create new NetBeans project from Samples > C/C++ > "Welcome"
- 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.
- 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:
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:
Any hints or help are welcome.