Open TaremAkabekov opened 3 years ago
Hi @TaremAkabekov ! It's strange, but I cannot reproduce the issue even with your Dockerfile (although I needed to remove the USER 1000
line, otherwise I got a Permission Denied
error when creating a new project):
As a side node, I'm not sure if it's a typo, but I noticed you're using a Windows-like env variable substitution symbols %LOCAL_PATH_TO_PROJECTS%
. Any chance you're using the Windows Subsystem for Linux?
@TaremAkabekov were you viewing this remotely?
I am running pio home
on a linux machine (not WSL), then accessing the webpage from a Windows machine and I'm seeing the same behaviour.
Problem appears to be in the Platform IO Home project:
The front end defines a variable called IS_WINDOWS
that detects whether the browser is running on Windows, the display and also the requested paths are then altered in a few places based on this variable
I suppose the assumption here was that the platform PIO Core is running on will be the same as where the user is. This doesn't really work for remote development.
I'm using VS Code Remote SSH from Windows, connecting to VS Code on my ARM Linux machine, everything works quite well with the exception of this so far.
Edit: I went to the PIO Home project to raise an issue and found this: https://github.com/platformio/platformio-home/issues/2316
i also get this issue, im using windows but remote ssh to my raspberry pi to use platformio, trying to change the directory name but unsuccessful.
i also get this issue, im using windows but remote ssh to my raspberry pi to use platformio, trying to change the directory name but unsuccessful.
Exact same situation - VSCode Remote SSH into a raspberry pi 5, pio home
in the pio terminal, and using either the web GUI or the in-IDE GUI to create a project it produces a "Could not find package" error but I suspect the actual issue is:
Where the postfix of the file path is Windows-style rather than linux compliant
i also get this issue, im using windows but remote ssh to my raspberry pi to use platformio, trying to change the directory name but unsuccessful.
Exact same situation - VSCode Remote SSH into a raspberry pi 5,
pio home
in the pio terminal, and using either the web GUI or the in-IDE GUI to create a project it produces a "Could not find package" error but I suspect the actual issue is: Where the postfix of the file path is Windows-style rather than linux compliant
Yeah I noticed that, kina gave up on doin it cuz it was slow anyways
What kind of issue is this?
Configuration
Operating system: Ubuntu 20.4 (Python 3.8.5 & 3.9)
PlatformIO Version (
platformio --version
): 5.2.0a6, Core 5.1.1 Home 3.3.4Description of problem
I am currently facing a problem regarding project generation when working with core & home on ubuntu 20.4. When creating a project from within the PlatformIO Home web interface all files will be created into the predefined path. But instead of forward slashes “/” backslashes “\” are used to divide the path. This obviously doesnt work on Linux systems. The project structure than is generated with the backslashes on my root directy (e.g. “/data\downloads\test_platform_io_esp_32_project”). The issue is occuring when I create a project (and potentially when loading it as well) not when I add a new file.
I have installed Platform IO twice. Once with pip install platformio and the other time with the recommended way Installer Script Both end up with the same result.
Refering to platformio-community: linux-incorrect-project-folder-path-generation
Steps to Reproduce
At the beginning the root-directory (":/") is not containing any platform-io related folder:
Starting the server with the activated Installer Script virtualenv in the folder data/platform-io-testing:
(penv) data/platform-io-testing:/$ pio home --host 127.0.0.1 --port 800
open localhost:800/ and create a new project with the name "new_test_project" in the folder "data/platform-io-testing"
It gets created and I recieve the message:
Actual Results
Which is correct. When I now list the content of the root directory I find the directory:
But the folder is no where near to be found in /data/platform-io-testing/new_test_project If I list the content of this incorrect path all the jucy platform-io files can befound (platformio.ini etc.)
Expected Results
I expect to find the created project in
/data/platform-io-testing/new_test_project
Additional info
To make reproducing the problem easier, I have created a docker container (heavily inspired by sglahn:https://github.com/sglahn/docker-platformio-core/blob/master/Dockerfile)