Python Forum
Newb question: Debugging + Linting Python in Visual Studio Code
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Newb question: Debugging + Linting Python in Visual Studio Code
#1
I’m closely following along Microsoft’s official docs for VSC for Python debugging and linting.

The Linting guide explain this in the introductory paragraphs:

Quote:By default, linting for Python is enabled in Visual Studio Code using Pylint, and you can enable other linters of your choice. You can easily enable and disable all linting by using the Python: Enable Linting command. To enable linters other than the default PyLint, open the Command Palette (Ctrl+Shift+P) and select the Python: Select Linter command. This command adds "python.linting<linter>Enabled": true to your settings, where <linter> is the name of the chosen linter. See Specific linters for details.

When I navigate to Pylint.org (the hyperlink in the first sentence there), I install the Linter as it instructs for my Linux distro (Manjaro). I restart VSC. Then when I invoke Ctrl+Shift+P and enter ‘python’ or ‘pylint’, nothing turns up. It’s as if it doesn’t exist on my system even though I clearly just installed it.

What am I missing here? How do I install the Python Linter as explained in the official tutorial there?

I’m looking for a solution that is probably trivial and obvious to the expert programmer. I’m ready to be gently hit over the head with a “cluebat.”
Reply
#2
(Apr-15-2019, 01:48 AM)Drone4four Wrote: Then when I invoke Ctrl+Shift+P and enter ‘python’ or ‘pylint’, nothing turns up.

If you enter 'python' and nothing turns up then question is - have you installed Python extension for VS Code?

There should be long list of 'Python' options to choose from:

Attached Files

Thumbnail(s)
   
I'm not 'in'-sane. Indeed, I am so far 'out' of sane that you appear a tiny blip on the distant coast of sanity. Bucky Katt, Get Fuzzy

Da Bishop: There's a dead bishop on the landing. I don't know who keeps bringing them in here. ....but society is to blame.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Python Coding in Power BI Visual vjrans 0 232 Jan-31-2024, 07:54 AM
Last Post: vjrans
  My code works on Jupyter Lab/Notebook, but NOT on Visual Code Editor jst 4 872 Nov-15-2023, 06:56 PM
Last Post: jst
  How to set PYTHONPATH in Visual Studio Code? aupres 5 3,765 Aug-15-2023, 03:51 PM
Last Post: snippsat
  how do I open two instances of visual studio code with the same folder? SuchUmami 3 815 Jun-26-2023, 09:40 AM
Last Post: snippsat
  Visual Studio Code NewPi 3 985 May-16-2023, 11:13 PM
Last Post: snippsat
  Visual Studio Code venv ibm_db error mesi1000 7 2,661 Nov-13-2022, 12:36 AM
Last Post: snippsat
  debugging help on Visual Studio Code mg24 12 1,900 Oct-02-2022, 12:18 AM
Last Post: mg24
  Problem with importing Python file in Visual Studio Code DXav 7 4,898 Jun-15-2022, 12:54 PM
Last Post: snippsat
  Visual Studio Code Intellisense for Imported Modules Not Working hockinsk 1 2,648 Apr-23-2022, 04:41 PM
Last Post: deanhystad
Photo Visual studio code unable to color syntax on python interpreter tomtom 4 6,680 Mar-02-2022, 01:23 AM
Last Post: tomtom

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020