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

Add OS-specific dependency PATHs #17619

Closed
theetrain opened this issue Dec 20, 2016 · 20 comments
Closed

Add OS-specific dependency PATHs #17619

theetrain opened this issue Dec 20, 2016 · 20 comments
Assignees
Labels
config VS Code configuration, set up issues *duplicate Issue identified as a duplicate of another issue(s) feature-request Request for new features or functionality
Milestone

Comments

@theetrain
Copy link

  • VSCode Version: 1.8.1

I develop on Ubuntu 16 and Windows 10 interchangeably, and my paths to Node, PHP, and others differ on each platform. I'd like to add OS-specific paths in my settings.json since I synchronise my user settings across each platform via Dropbox.

Something like this would be useful:

"paths": {
    "linux": [],
    "osx": [],
    "windows": [
        "C:/Program Files (x86)/PHP/php-5.4/"
    ]
}
@ghost
Copy link

ghost commented Dec 20, 2016

Definitely, I'd like to be able to do this so I can tailor a working, cross-platform setup for a repo

@nijikokun
Copy link

I also agree this should be a configurable setting, not always are the binaries I would like to develop with are on my PATH

@ghost
Copy link

ghost commented Dec 20, 2016

These values will be addable to the user settings or the workspace settings? I'd rather have the latter.

@egamma egamma added the feature-request Request for new features or functionality label Dec 20, 2016
@egamma
Copy link
Member

egamma commented Dec 20, 2016

CC @weinand @bpasero

@bpasero bpasero added the config VS Code configuration, set up issues label Dec 21, 2016
@fredrikaverpil
Copy link

It would be very useful to be able to specify the OS-specific value of any user setting and any workspace settings, including extensions settings.

I've requested the very same thing for the PythonVSCode project.

@weinand
Copy link
Contributor

weinand commented Jan 18, 2017

For launch.json we already support OS-specific configurations. Any configuration can be nested inside an OS qualifier, e.g. "linux": { "foo": "bar" }.

@seanmars
Copy link

seanmars commented May 14, 2017

Hope the workspace setting can add specific os block for os, like:

{
  windows: {
    ...
  },
  osx: {
    ...
  }
}

@fredrikaverpil
Copy link

fredrikaverpil commented Oct 18, 2017

There hasn't been much activity on this for a while. Has there been any progress further discussion on...

@fredrikaverpil
Copy link

fredrikaverpil commented Oct 18, 2017

ping @sandy081 - would it be possible to evaluate a priority bump (out of backlog) for creating/using variables in settings and workspace settings?

This would be so good for cross-platform development where paths differ on different machines/platforms.

@sandy081
Copy link
Member

@fredrikaverpil No plans at present. Will let you know once we planned.

@repentsinner
Copy link

It would be much appreciated to support something like the following in a ${workspaceRoot}/.vscode/settings.json file. Currently it's not clear how to share workspace settings via source control on projects that may be contributed to from multiple platforms.

{
   "windows": {
        "python.pythonPath": "${workspaceRoot}\\.venv\\Scripts\\python.exe"
    },
    "osx": {
        "python.pythonPath": "${workspaceRoot}/.venv/bin/python"
    },
    "python.formatting.provider": "yapf",
    "other.shared.settings":"go.here"
}

Thanks for considering!

@dipnlik
Copy link

dipnlik commented Feb 17, 2018

Related: #8962

@ddotlic
Copy link
Contributor

ddotlic commented Jul 6, 2018

@sandy081 Hey, sorry to bump this but I was thinking: the people using VS Code across at least two platforms are likely your most valuable users as they can uncover xplat issues and are likely very passionate so catering to them should be tiny bit higher priority then the rest, no? 😉

As for me, I use VS Code on a macOS and Windows and having per-OS settings would be very welcome. Thinking about a possible design of this feature (not looking into the source though) does not seem like too difficult a thing to do.

Please consider putting this into one of the next few iterations. Thanks!

@sandy081
Copy link
Member

sandy081 commented Jul 6, 2018

@ddotlic Will bring it up in our next planning meeting.

@sandy081 sandy081 self-assigned this Jul 6, 2018
@sandy081 sandy081 modified the milestones: Backlog, On Deck Jul 6, 2018
@ddotlic
Copy link
Contributor

ddotlic commented Jul 6, 2018

@sandy081 Great, thanks for everything.

@WSLUser
Copy link

WSLUser commented Jul 6, 2018

This would be useful for WSL since typically you'll be using tools from both Windows and Linux and you may not want to use wslpath or wslenv for whatever reason or those functionalities may not even be known to a developer so having this feature would make it more x-plat/WSL friendly.

@brunoabinader
Copy link

This feature is highly desirable - VS Code team please implement it!

@fredrikaverpil
Copy link

@sandy081 it was mentioned before, but when you'll bring this up internally, please also keep this one in mind as it's related: #2809

@sandy081
Copy link
Member

sandy081 commented Oct 24, 2018

#5595 is also same request. Hence closing this and track it in there.

Duplicate of #5595

@sandy081 sandy081 marked this as a duplicate of #5595 Oct 24, 2018
@sandy081 sandy081 added the *duplicate Issue identified as a duplicate of another issue(s) label Oct 24, 2018
@vscodebot
Copy link

vscodebot bot commented Oct 24, 2018

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 Oct 24, 2018
@vscodebot vscodebot bot locked and limited conversation to collaborators Dec 8, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
config VS Code configuration, set up issues *duplicate Issue identified as a duplicate of another issue(s) feature-request Request for new features or functionality
Projects
None yet
Development

No branches or pull requests