Skip to content

Linting AND formatting not working #14121

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

Closed
Holt59 opened this issue Sep 27, 2020 · 2 comments
Closed

Linting AND formatting not working #14121

Holt59 opened this issue Sep 27, 2020 · 2 comments
Assignees
Labels
bug Issue identified by VS Code Team member as probable bug

Comments

@Holt59
Copy link

Holt59 commented Sep 27, 2020

Environment data

  • VS Code version: 1.49.2
  • Extension version (available under the Extensions sidebar): v2020.9.111407
  • OS and version: Windows 10 10.0.18363 Build 18363
  • Python version (& distribution if applicable, e.g. Anaconda): 3.7.2
  • Type of virtual environment used (N/A | venv | virtualenv | conda | ...): venv
  • Relevant/affected Python packages and their versions: flake8 3.8.3, black 20.8b1, flake8-black 0.2.1, mypy 0.782
  • Relevant/affected Python-related VS Code extensions and their versions: XXX
  • Value of the python.languageServer setting: 2020.9.111407 (I guess?)

Workspace settings:

{
    "editor.formatOnSave": true,
    "editor.formatOnPaste": true,
    "python.formatting.provider": "black",
    "python.linting.enabled": true,
    "python.linting.flake8Enabled": true,
    "python.linting.mypyEnabled": true,
    "python.pythonPath": "I:\\Languages\\Python\\envs\\my-env\\Scripts\\python.exe"
}

Expected behaviour

I expect formatting and linting to work.

Actual behaviour

Nothing happens.

Steps to reproduce:

[NOTE: Self-contained, minimal reproducing code samples are extremely helpful and will expedite addressing your issue]

  1. Create any python file with linting / formatting issue.
  2. Save the file or run Python linting or format document.
  3. Nothing happens.

Logs

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

> I:\Languages\Python\envs\my-env\Scripts\python.exe "c:/Users/XXX/.vscode/extensions/ms-python.python-2020.9.111407/pythonFiles/pyvsc-run-isolated.py" mypy --warn-return-any --follow-imports=silent --show-column-numbers i:\Projects\my-project\main.py
cwd: i:\Projects\my-project
##########Linting Output - flake8##########
##########Linting Output - mypy##########
Error 2020-09-27 14:51:27: stderr jediProxy Error (stderr) c:\Users\XXX\.vscode\extensions\ms-python.python-2020.9.111407\pythonFiles\completion.py:587: DeprecationWarning: Deprecated since version 0.16.0. Use Script(...).get_names instead.
  all_scopes=True,

@Holt59 Holt59 added triage-needed Needs assignment to the proper sub-team bug Issue identified by VS Code Team member as probable bug labels Sep 27, 2020
@karthiknadig karthiknadig self-assigned this Sep 28, 2020
@ghost ghost removed the triage-needed Needs assignment to the proper sub-team label Sep 28, 2020
@karthiknadig
Copy link
Member

Duplicate of #14078

@karthiknadig karthiknadig marked this as a duplicate of #14078 Sep 28, 2020
@ghost ghost removed the triage label Sep 28, 2020
@JD99
Copy link

JD99 commented Oct 23, 2020

Hey. pylance installation helped me

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Oct 24, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Issue identified by VS Code Team member as probable bug
Projects
None yet
Development

No branches or pull requests

3 participants