Xabier Gardeazabal created NETBEANS-4856:
--------------------------------------------

             Summary: Remote C++ development: "Local Terminal is not supported 
on this system"
                 Key: NETBEANS-4856
                 URL: https://issues.apache.org/jira/browse/NETBEANS-4856
             Project: NetBeans
          Issue Type: Bug
    Affects Versions: 12.0, 8.2
         Environment: Windows 10
            Reporter: Xabier Gardeazabal


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 > [[[email protected]]] > 
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*|https://bz.apache.org/netbeans/show_bug.cgi?id=237078] - SSH 
terminal not supported [https://bz.apache.org/netbeans/show_bug.cgi?id=237078]
 [*Bug 238464*|https://bz.apache.org/netbeans/show_bug.cgi?id=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*|https://bz.apache.org/netbeans/show_bug.cgi?id=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:
{code:java}
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.
{code}
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*|https://bz.apache.org/netbeans/show_bug.cgi?id=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:java}
// code placeholder
Copying project files to 
/root/.netbeans/remote/192.168.1.105/desktop-vm4la03-Windows-x86_64 at 
[email protected]
Building project files list...
Checking directory structure...
Checking previously uploaded files...
Checking links...
Uploading changed files:
        Zipping 11 changed files...
        Uploading zip to [email protected]...
        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 
[email protected]: 
Can not check remote directories. xargs exited with error code 123
BUILD FAILED
{code}

Any hints or help are welcome.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

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

Reply via email to