devrt / ros-devcontainer-vscode

ROS dev container for vscode
Other
174 stars 47 forks source link

not seeing the folders when docker is running from webide or vscode remote explorer #7

Open wegunterjr opened 3 years ago

wegunterjr commented 3 years ago

Activating extension 'CMake' failed: Cannot find module './cmakeReferenceProvider' Require stack: - /home/developer/plugins/vscode-cmake/extension/out/src/extension.js - /home/developer/node_modules/@theia/plugin-ext/lib/hosted/node/plugin-host-rpc.js - /home/developer/node_modules/@theia/plugin-ext/lib/hosted/node/plugin-host.js

yosuke commented 3 years ago

Can you explain bit more about the issue?

Any problem on the cmake? or the folders totally not visible?

wegunterjr commented 3 years ago

It might be more my misunderstanding on how this is supposed to work, because I did try and select a simulator, then ran docker-compose, and had access to the WEB IDe, a jupyter notebook, and the simulation was visible by browser. I was just imagining I would see a workspace in the webide or even the remote ide (vscode)

My main OS is Ubuntu 20.04.

wegunterjr commented 3 years ago

@yosuke That error above is displayed when I open the web ide localhost:3001. Pops up on the bottom right.

yosuke commented 3 years ago

If you want to mount your local folder as a workspace, edit docker-compose.yaml and change the following line:

https://github.com/devrt/ros-devcontainer-vscode/blob/master/docker-compose.yml#L36

to

 - .:/workspace:cached

Default setting is using docker volume to store workspace for performance issue.