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

Tasks.json environment variable expansion case sensitive #4895

Closed
gregvanl opened this issue Apr 4, 2016 · 8 comments · Fixed by #40466
Closed

Tasks.json environment variable expansion case sensitive #4895

gregvanl opened this issue Apr 4, 2016 · 8 comments · Fixed by #40466
Assignees
Labels
debug Debug viewlet, configurations, breakpoints, adapter issues feature-request Request for new features or functionality help wanted Issues identified as good community contribution opportunities verification-needed Verification of issue is requested verified Verification succeeded
Milestone

Comments

@gregvanl
Copy link

gregvanl commented Apr 4, 2016

  • VSCode Version:0.10.13 alpha
  • OS Version:Windows 10

Steps to Reproduce:

  1. Add an variable to your tasks.json ex. ${env.PATH}
    "command": "echo",
    "isShellCommand": true,
    "args": ["${env.PATH}"],
  2. Run the task.
    This will expand correctly on Linux and OS X but not Windows since the expansion is case sensitive and PATH on Windows is "Path".
    Env Var expansion shouldn't be case sensitive so that the same task can run on all platform.
    This bug was requested by @dbaeumer in vscode-docs issue tasks.json documentation innacurate? vscode-docs#247
@egamma egamma added the tasks Task system issues label Apr 4, 2016
@dbaeumer dbaeumer added this to the Backlog milestone Apr 4, 2016
@dbaeumer dbaeumer assigned isidorn and unassigned dbaeumer Apr 26, 2017
@dbaeumer
Copy link
Member

@isidorn this is done by the resolver service. IMO env variables on all OSes are case insensitive. Should we address this.

@dbaeumer dbaeumer added bug Issue identified by VS Code Team member as probable bug debug Debug viewlet, configurations, breakpoints, adapter issues and removed tasks Task system issues labels Apr 26, 2017
@isidorn
Copy link
Contributor

isidorn commented Apr 26, 2017

Let's keep it open and if some user is passionate he can tackle it
Code pointer

@isidorn isidorn added help wanted Issues identified as good community contribution opportunities feature-request Request for new features or functionality and removed bug Issue identified by VS Code Team member as probable bug labels Apr 26, 2017
@isidorn isidorn removed their assignment Apr 26, 2017
@weinand
Copy link
Contributor

weinand commented Nov 13, 2017

On linux and macOS environment variables are case sensitive, so "Path" and "PATH" are different variables on linux and macOS (but not on Windows). So your statement from above "IMO env variables on all OSes are case insensitive." is not correct, right?

@dbaeumer so you are asking for making env var lookup case insensitive on Windows only, correct?

@dbaeumer
Copy link
Member

I thought they are always case insensitive. So it should be case insensitive then on Windows only

@heaths
Copy link
Member

heaths commented Dec 18, 2017

@isidorn, I'm actually about done with a change for this if you want to take a look.

@isidorn
Copy link
Contributor

isidorn commented Dec 19, 2017

@heaths thanks, I will review the PR.

@heaths
Copy link
Member

heaths commented Dec 19, 2017

@isidorn did you want me to squash it or anything (fixed a broken test because I forgot the existing code returned an empty string for missing environment variables)? Different projects have different requirements and I didn't see anything about squashing in your contrib docs.

@isidorn
Copy link
Contributor

isidorn commented Dec 20, 2017

@heaths no need to squash, I will add the comments to the PR directly if something is needed. Thanks

@isidorn isidorn added the verification-needed Verification of issue is requested label Dec 22, 2017
@isidorn isidorn modified the milestones: On Deck, December 2017/January 2018 Dec 22, 2017
@ramya-rao-a ramya-rao-a added the verified Verification succeeded label Jan 31, 2018
@vscodebot vscodebot bot locked and limited conversation to collaborators Feb 5, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
debug Debug viewlet, configurations, breakpoints, adapter issues feature-request Request for new features or functionality help wanted Issues identified as good community contribution opportunities verification-needed Verification of issue is requested verified Verification succeeded
Projects
None yet
Development

Successfully merging a pull request may close this issue.

7 participants