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

Display diagnostic messages with code actions for files that could interfere with execution of Python Kernels #10924

Closed
2 of 4 tasks
DonJayamanne opened this issue Jul 25, 2022 · 0 comments

Comments

@DonJayamanne
Copy link
Contributor

DonJayamanne commented Jul 25, 2022

Refs: #7538

Complexity: 2

Authors: @DonJayamanne

Create Issue

Create Issue


Test Diagnostics

  1. Open a folder in VS Code
  2. Add a file named email.py to the root directory of the workspace folder
  3. Open the email.py file and verify the presence of a diagnostic message indicating this file could interfere with execution of kernels.
  4. Verify the same diagnostic message appears in the file explorer against the file name.
  5. Use the problems panel to :
    • Verify the Learn more link works(click on Learn more link)
    • Verify the code action Ignore warning for email will remove these warning messages
  6. Repeat the above steps with another file named random.py and verify you get the same messages
  7. This time enable/disable this feature using the setting
"jupyter.diagnostics.reservedPythonNames.enabled": false,
  1. Add a custom glob pattern to ensure files defined in the glob pattern do not end up with warnings:
"jupyter.diagnostics.reservedPythonNames.exclude": [defaults...]
  1. If you have Python installed, then open a Python environment in VS Code and verify you do not get warnings for files in the site-packages folder
@github-actions github-actions bot added the triage-needed Issue needs to be triaged label Jul 25, 2022
@DonJayamanne DonJayamanne removed the triage-needed Issue needs to be triaged label Jul 25, 2022
@DonJayamanne DonJayamanne added this to the July 2022 milestone Jul 25, 2022
@lszomoru lszomoru removed their assignment Jul 26, 2022
@devinvalenciano devinvalenciano removed their assignment Jul 27, 2022
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jul 28, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants