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

Missing process for formatting.blackPath #2244

Closed
MisLink opened this issue Jul 25, 2018 · 1 comment
Closed

Missing process for formatting.blackPath #2244

MisLink opened this issue Jul 25, 2018 · 1 comment
Labels
area-formatting bug Issue identified by VS Code Team member as probable bug

Comments

@MisLink
Copy link

MisLink commented Jul 25, 2018

Environment data

  • VS Code version: 1.25.1
  • Extension version (available under the Extensions sidebar): 2018.7.1
  • OS and version: macOS 10.13.6
  • Python version (& distribution if applicable, e.g. Anaconda): CPython 3.6.6
  • Type of virtual environment used (N/A | venv | virtualenv | conda | ...): venv
  • Relevant/affected Python packages and their versions: black

Actual behavior

I tried to use ~/.local/bin/black as path to the black but vscode prompted me that "Path to the black formatter is invalid". It's kind of weird because my flake8 is on the same path but it works just fine. And I found there's a missing process for blackPath on https://github.com/Microsoft/vscode-python/blob/master/src/client/common/configSettings.ts#L231-L233 .

Expected behavior

expand user home directory.

Steps to reproduce:

  1. set formatting.blackPath under a user home directory and use "~"
  2. try to format a file

Logs

Output for Python in the Output panel (ViewOutput, change the drop-down the upper-right of the Output panel to Python)

XXX

Output from Console under the Developer Tools panel (toggle Developer Tools on under Help)

XXX
@brettcannon brettcannon added bug Issue identified by VS Code Team member as probable bug needs verification area-formatting labels Jul 25, 2018
@DonJayamanne
Copy link

Closing in favor of #2274

@lock lock bot locked as resolved and limited conversation to collaborators Aug 27, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-formatting bug Issue identified by VS Code Team member as probable bug
Projects
None yet
Development

No branches or pull requests

3 participants