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

Test: Log/Show notification if unsupported version of pylint is found. #19545

Closed
2 tasks done
karthiknadig opened this issue Jul 25, 2022 · 0 comments
Closed
2 tasks done
Labels
testplan-item Test plan item/assignments for upcoming release verified Verification succeeded
Milestone

Comments

@karthiknadig
Copy link
Member

karthiknadig commented Jul 25, 2022

Refs: #19435

Complexity: 1

Create Issue


The Pylint extension should show notification or log error if unsupported version of pylint in found.

Requirements

  1. python 3.7 or greater
  2. Pylint extension from here: https://artprodeus21.artifacts.visualstudio.com/A341001b6-62a6-4d7e-aa61-779aea3de100/a6d41577-0fa3-498e-af22-257312ff0545/_apis/artifact/cGlwZWxpbmVhcnRpZmFjdDovL21vbmFjb3Rvb2xzL3Byb2plY3RJZC9hNmQ0MTU3Ny0wZmEzLTQ5OGUtYWYyMi0yNTczMTJmZjA1NDUvYnVpbGRJZC8xNzk0NjUvYXJ0aWZhY3ROYW1lL2V4dGVuc2lvbg2/content?format=file&subPath=%2Fms-python.pylint.2022.3.12071745.vsix

Steps

  1. Create a workspace folder
  2. Create a virtual environment: python -m venv .venv
  3. Install pylint version < 2.12.2 : python -m pip install pylint==2.9.3
  4. Open in vscode and create a python file.
  5. Ensure that you have set pylint.importStrategy to fromEnvironment.
  6. Check the Output > Pylint logs, you should see a message:
[Error - 12:14:49 PM] Version of linter running for c:\GIT\TestPlans\pylinttest is NOT supported:
SUPPORTED pylint>=2.12.2
FOUND pylint==2.9.3
  1. Add the following to your user setting:
"pylint.showNotifications": "onError"
  1. That should automatically restart pylint server, and should show you the notification below:
    image
@karthiknadig karthiknadig added the testplan-item Test plan item/assignments for upcoming release label Jul 25, 2022
@karthiknadig karthiknadig added this to the July 2022 milestone Jul 25, 2022
@karthiknadig karthiknadig changed the title Test: Show notification if unsupported version of pylint is found. Test: Log/Show notification if unsupported version of pylint is found. Jul 25, 2022
@bpasero bpasero removed their assignment Jul 26, 2022
@DonJayamanne DonJayamanne added the verified Verification succeeded label Jul 26, 2022
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 27, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
testplan-item Test plan item/assignments for upcoming release verified Verification succeeded
Projects
None yet
Development

No branches or pull requests

3 participants