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 variables should optionally be available in unix format #57579

Closed
squelart opened this issue Aug 30, 2018 · 4 comments
Closed

Path variables should optionally be available in unix format #57579

squelart opened this issue Aug 30, 2018 · 4 comments
Assignees
Labels
*duplicate Issue identified as a duplicate of another issue(s) feature-request Request for new features or functionality tasks Task system issues
Milestone

Comments

@squelart
Copy link

On Windows, I would like to use ${workspaceFolder} in a command that will be run in a unix-like environment (msys).

E.g., ${workspaceFolder} gives something like 'C:\work\prj', but instead I would like to get '/c/work/prj'.

@dbaeumer
Copy link
Member

You are referrring to variables in tasks.json. Right.

@dbaeumer dbaeumer self-assigned this Aug 30, 2018
@dbaeumer dbaeumer added tasks Task system issues info-needed Issue requires more information from poster labels Aug 30, 2018
@squelart
Copy link
Author

Ah yes, that's right.

So in my project's tasks.json I could have something like:
... "tasks": [ { "windows": { "command": ""\msys\start-shell.bat ${workspaceFolderUnix}/mach"" } ...
And the last bit would resolve to '/c/work/repo/mach', instead of 'C:\work\repo/mach'.
(This start-shell.bat does a bash.exe --login -i -c "%*", so the commands in "%*" are in the bash environment expecting unixy paths.)
Thanks!

@dbaeumer dbaeumer added feature-request Request for new features or functionality and removed info-needed Issue requires more information from poster labels Aug 30, 2018
@dbaeumer dbaeumer added this to the Backlog milestone Aug 30, 2018
@alexr00
Copy link
Member

alexr00 commented Jan 4, 2019

The root of this issue is about better handling of paths across platforms. Duplicate of #38381.

@alexr00 alexr00 added the *duplicate Issue identified as a duplicate of another issue(s) label Jan 4, 2019
@vscodebot
Copy link

vscodebot bot commented Jan 4, 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 Jan 4, 2019
@vscodebot vscodebot bot locked and limited conversation to collaborators Feb 18, 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) feature-request Request for new features or functionality tasks Task system issues
Projects
None yet
Development

No branches or pull requests

4 participants
@dbaeumer @squelart @alexr00 and others