In windows I can open a project on \\wsl$\ path and can work on the code without any problems using PyCharm + PyCharm automatically gives me a linux bash in the terminal from where I can run my docker-compose services with WSL2 integration which is nice. For debugging I would like to use PyCharm. I know that I can not benefit from docker WSL2 integration when doing so since it is not supported by PyCharm, but I don't mind, because I do not need to debug that often. However, when trying to run a configuration using the docker-compose interpreter Docker fails with:
Invalid interpolation format for "volumes" option in service "xxx": "//wsl$/Ubuntu-20.04/home/user/xxx:/opt/project:rw"
Ofc this is because PyCharm by default tries to mount the project path to `/opt/project`. Since the absolute path is provided and seemingly is not correctly escaped ("\\wsl$\" should be escaped using "\\wsl$$\") Docker returns this error.
As far as I know I can not provide the default mounting by my self to add correct escaping??
Are there any other "workarounds"?
Eventually it would be nice if this would get fixed.