IntelliJ Ultimate - Getting "empty" work folder inside connected Devcontainer
IntelliJ - Mount path from WSL2 to connected Devcontainer not working!
I'm trying to mount a project directory from my WSL2 instance into a Devcontainer. The issue is that when I use IntelliJ Ultimate to launch the container, the mounted folder appears empty. This same configuration works perfectly when launched from VSCode.
The mount from //wsl.localhost/Ubuntu-22.04/home/oskar/projects/myproject to /workspaces/myproject results in an empty target directory inside the running container.
I suspect the //wsl.localhost path isn't being resolved correctly by IntelliJ's Devcontainer integration. I'm not sure what the correct path format should be and would appreciate any suggestions.
The mount of the work folder is done in devcontainer.json using this setting…
"workspaceFolder": "/workspaces/${localWorkspaceFolderBasename}",
My environment facts:
- Windows 11
- IntelliJ IDEA 2025.2 (Ultimate Edition)
- WSL2 (Ubuntu-22.04 LTS) - (project files in my WSL2 is located at:
/home/oskar/projects/myproject) - Docker Desktop 4.44.3 (202357)
Please sign in to leave a comment.
Got the same error on a similar setup:
/home/username/projects/myprojectand I also tried on the host atC:\Users\Username\Projects\myproject)Would love to get some help on this issue
FYI
I've also posted this ticket in the YouTrack board …
https://youtrack.jetbrains.com/issue/IJPL-209698/Mounted-work-space-folder-is-empty-inside-Devcontainer
Hello, Oskarr Bergstromm, Florian Garcia. Unfortunately, it is a known issue that has already been reported in the IJPL-183543 bug report. For now, we don't have ETA for the fix.