Hi Max,
thank you for your quick response.
the issue is occuring when I create a project (and potentially when loading it as well) not when I add a new file.
Which logs do you mean?
I try to give you some more details:
- At the beginning the root-directory (“:/”) is not containing any platform-io related folder:
:/$ ls
bin cdrom dev home lib32 libx32 media opt root sbin snap swap.img tmp var
boot data etc lib lib64 lost+found mnt proc run srv sys usr
-
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:
Project has been successfully initialized
Board: esp32doit-devkit-v1, framework: arduino, location: /data\platform-io-testing\new_test_project
Which is right when I now list the content of the root directory I find the directory:
bin data dev lib libx32 mnt root SmartHome_Services-backup swap.img usr
boot 'data\platform-io-testing\new_test_project' etc lib32 lost+found opt run snap sys var
cdrom home lib64 media proc sbin srv tmp
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.)
When I copy the folder content in the actual intented path (/data/platform-io-testing/new_test_project) and then try to find the project in the web ui in platform-io home, I am not able to open it.
To make reproducing the problem easier, I have created a docker container (heavily inspired by sglahn:docker-platformio-core/Dockerfile at master · sglahn/docker-platformio-core · GitHub)
FROM python:3.8.5-slim
USER root
RUN pip install -U platformio==5.1.1 && \
mkdir -p /workspace && \
mkdir -p /.platformio && \
chmod a+rwx /.platformio && \
apt update && \
apt install -y git && \
apt-get clean autoclean && \
apt-get autoremove --yes && \
rm -rf /var/lib/{apt,dpkg,cache,log}/
USER 1000
WORKDIR /workspace
EXPOSE 800
ENTRYPOINT ["pio", "home", "--host", "0.0.0.0", "--port", "800"]
docker build -t platform-io .
docker run -p 8403:800 --name platform-io -v %LOCAL_PATH_TO_PROJECTS%:/Documents/PlatformIO/Projects -d -it platform-io
docker logs -f platform-io
Here the exact same Problem occures.
Thank you very much,
Tarem