Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Path translation C:\User\ <-> /c/User #79402

Closed
yves-chevallier opened this issue Aug 18, 2019 · 2 comments
Closed

Path translation C:\User\ <-> /c/User #79402

yves-chevallier opened this issue Aug 18, 2019 · 2 comments
Assignees
Labels
*duplicate Issue identified as a duplicate of another issue(s) tasks Task system issues

Comments

@yves-chevallier
Copy link

yves-chevallier commented Aug 18, 2019

As a teacher, I am running on Windows working with WSL and MinGW

I always use my WSL terminal on vscode which is very convenient, but I do not start remote sessions because it is way slower than regular sessions.

I would like create tasks that run into my chosen terminal. For example the following does not work because the pwd is given in the Windows form, not the POSIX one.

    "tasks": [
        {
            "type": "shell",
            "label": "Build",
            "group": "build",
            "command": "gcc",
            "args": [
                "-g",
                "${relativeFile}",
                "-o",
                "${fileBasenameNoExtension}.exe"
            ],
            "options": {
                "shell": {
                    "executable": "C:\\Program Files\\Git\\bin\\bash.exe",
                    "args": ["-l"]
                }, "cwd": "${fileDirname}"
            },

I would like a way to automatically translate all paths such as fileDirname either in the Windows or the POSIX form. for instance:

  • windows: C:\User\Foo\
  • mingw: /c/User/Foo/
  • cygwin: /cygdrive/c/User/Foo/

I think it is enough if I can configure this way:

  • "slashMode": "forward"
  • "pathPrefix": "/cygdrive"
  • "letterFormat": "{lowerCaseLetter}"
@alexr00
Copy link
Member

alexr00 commented Aug 20, 2019

Duplicate of #38381

@alexr00 alexr00 marked this as a duplicate of #38381 Aug 20, 2019
@alexr00 alexr00 added *duplicate Issue identified as a duplicate of another issue(s) tasks Task system issues labels Aug 20, 2019
@vscodebot
Copy link

vscodebot bot commented Aug 20, 2019

Thanks for creating this issue! We figured it's covering the same as another one we already have. Thus, we closed this one as a duplicate. You can search for existing issues here. See also our issue reporting guidelines.

Happy Coding!

@vscodebot vscodebot bot closed this as completed Aug 20, 2019
@vscodebot vscodebot bot locked and limited conversation to collaborators Oct 4, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
*duplicate Issue identified as a duplicate of another issue(s) tasks Task system issues
Projects
None yet
Development

No branches or pull requests

2 participants