Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Python Linting (newbie)
#1
Hey everyone,

I just started learning to code and I chose Python 3 to start with, I hope I made the right choice!
Now I am following a tutorial and it told me to install Visual Studio Code and a "Ide" which lets me use a linter etc.

In the tutorial it shows that when he makes a mistake it shows up as a red squiggly line and when you hover over it, it shows the problem.
For me however, it only says:

"message": "invalid syntax (<unknown>, line 3)",

As you can see, it doesn't give me any " resolutions" for the problem.
In the tutorial it does show " did you mean XXXX ?"

Does anyone have an idea why this is happening?

Thanks alot!

P.S.
If anyone has a really good and clear tutorial for beginning coders on python I'll be very thankful!


Lieve.
Reply
#2
You should show code that give that error.
Look at VS Code from start.
VS Code let you choose linter,example first install.
pip install pylint pydocstyle flake8 pep8 bandit mypy
ctrl+shift+p search python select linter try different ones.
Search python enable linter on/off,linter can be annoying to have on all time.
I usually have linter off,then turn on when want a check.
For different Python tutorial look here and in your tutorial Threads.
Reply
#3
Thanks so much!! It worked, and thanks for the help on tutorials! <3
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Python newbie laleebee 2 1,316 May-24-2022, 01:39 PM
Last Post: laleebee
  Newbie on Python syntax rud0lp20 6 2,936 Apr-21-2020, 04:26 PM
Last Post: jefsummers
  python newbie marcush929 2 2,594 Jan-01-2020, 08:06 AM
Last Post: marcush929
Smile Help needed. Python Newbie!, it will be fun. knightdea 3 2,620 Oct-13-2019, 08:50 AM
Last Post: perfringo
  Newb question: Debugging + Linting Python in Visual Studio Code Drone4four 1 2,422 Apr-15-2019, 06:19 AM
Last Post: perfringo
  Python newbie is asking Marcus_Gondwe 4 3,405 Apr-04-2018, 11:08 AM
Last Post: Marcus_Gondwe
  Newbie ? Python 3 Input() jlgrunr 1 2,452 Feb-17-2018, 10:26 PM
Last Post: Gribouillis
  Python Newbie phylon 1 29,860 Jan-09-2018, 10:46 AM
Last Post: Gribouillis
  NEWBIE HELP: How to tell Python when to use a function BoaVenom18 4 5,405 Dec-17-2016, 09:00 PM
Last Post: j.crater

Forum Jump:

User Panel Messages

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