-
-
Notifications
You must be signed in to change notification settings - Fork 201
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
PlatformIO IDE extension does not work with Remote Development using SSH #942
Comments
Could you run in this RPi terminal |
I had the window open since I took the screen shot above and the PIO Home screen and libraries show up... |
Ah, yes! It will not work. You run PIO Home Server on the remote machine via SSH where PIO Home Backend points to localhost. You can open PIO Home in your standalone browser via http://your-rpi-ip:8008. |
Is there any way to have the window in visual studio code point to a remote adress? This is also an issue when using Remote Developent through for example code-server |
As a workaround for the connection issue adding this to the ssh_config seems to work:
However, when i created a new Project named 'bpTest' it was created as Also C/C++ problem highlighting does not work. So there is more to it than setting up port forwardung... |
I didn't have any ssh problems, but could you please elaborate on how you fixed the path manually? And is this on an ARM architecture (such as the raspberry pi)? Thanks. |
Thx @VishalDhayalan. Works for me :). |
Sadly, the window appear. $ ls -l workspace/
drwxrwxr-x 7 vagrant vagrant 4096 Feb 6 19:20 ESP32
drwxrwxr-x 9 vagrant vagrant 4096 Feb 22 12:28 MQTTnet Even If I want to see the content of folder in /tmp, doesn't work. After searching, I found this : https://docs.platformio.org/en/latest/userguide/cmd_home.html#cmd-home pio home --host 0.0.0.0 --no-open Now I can open the webpage with host webbrowser. Error: {'code': -32000, 'message': 'Server error', 'data': {'type': 'FileNotFoundError', 'args': (2, 'No such file or directory'), 'message': "[Errno 2] No such file or directory: '/home/vagrant/Documents/PlatformIO/Projects/200303-200258-esp32dev\\\\platformio.ini'"}}
API Exception: {'type': 'FileNotFoundError', 'args': (2, 'No such file or directory'), 'message': "[Errno 2] No such file or directory: '/home/vagrant/Documents/PlatformIO/Projects/200303-200258-esp32dev\\\\platformio.ini'"} Here my path : ╰─ ll ~/Documents/PlatformIO/Projects/200303-200258-esp32dev/
total 20K
drwxrwxr-x 2 vagrant vagrant 4.0K Mar 3 20:02 include
drwxrwxr-x 2 vagrant vagrant 4.0K Mar 3 20:02 lib
-rw-rw-r-- 1 vagrant vagrant 440 Mar 3 20:04 platformio.ini
drwxrwxr-x 2 vagrant vagrant 4.0K Mar 3 20:02 src
drwxrwxr-x 2 vagrant vagrant 4.0K Mar 3 20:02 test |
Hello again, I think I found the problem :) For me it's a problem of Windows/Linux useragent problem. pio home --host 0.0.0.0 --port 8008 --no-open I launch firefox on my host with guest ip. Same problem than vscode. |
Another issue in remote-SSH is that PIO Home --> New Project is showing host filesystem, not guest filesystem. |
I do not exactly know what causes this. After looking a bit in the source code I was however able to find some places where we use the native |
I am also having this exact same issue, even though from memory it was working a while ago.
Opening the PIO Home screen shows nothing. I was doing some research (but lost the links -_-) that suggests it may be an issue with it using the Windows Filesystem on the remote target (in this case Rasbian GNU/Linux). |
I have also run into this. I'd like to be able to use either of two work flows:
|
|
@Hsun1031 are you also able to create a new project this way? I cannot. Idon't see the remote filesystem and when I create the project, I get a folder at an unusable path with only half and installation (esp32 esp-idf framework) |
@Brechtjeu I have tested that Ubuntu can connect to Ubuntu, but Windows cannot connect to Ubuntu. |
Hello everybody, I was trying to solve a different issue, and I took a similar road to the one described here. I know my use-case is a bit different, but I wrote a short guide. I leave it here as reference, it might be helpful to somebody else. https://github.com/luxk3/ubuntu_server_remote_dev_platformio luxk3 |
Add the following code to solve the problem of not opening the page under SSH,View the api https://code.visualstudio.com/api/advanced-topics/remote-extensions#forwarding-localhost
|
I am trying to use Remote Development using SSH with PlatformIO IDE. Remote Development using SSH is a preview feature, but would be great if this would work in the future.
https://code.visualstudio.com/docs/remote/ssh
I followed Scott Hanselman's blog to set up my environment, https://www.hanselman.com/blog/VisualStudioCodeRemoteDevelopmentOverSSHToARaspberryPiIsButter.aspx
My use case is I want to develop for the Raspberry PI using C/C++ and to use the awesome Platform IO to managed dependencies and build process.
PlatformIO IDE: 1.8.1
The text was updated successfully, but these errors were encountered: