#πŸ”’ Weird Errors in VS Codium

17 messages Β· Page 1 of 1 (latest)

winter crow
#

I think it may be an extension that i have on, but i just want to know what they mean.
The snippet of code some of these are coming from is below.
row_count = len(button_values) column_count = len(button_values[0])

swift compassBOT
#

@winter crow

Python help channel opened

Remember to:

  • Ask your Python question, not if you can ask or if there's an expert who can help.
  • Show a code sample as text (rather than a screenshot) and the error message, if you've got one.
  • Explain what you expect to happen and what actually happens.

:warning: Do not pip install anything that isn't related to your question, especially if asked to over DMs.

timber whale
#

Like it says. It thinks that row_count and column_count in your code are meant to be constants, and it thinks you should use uppercase names for those.

And yes, it's an extension, called a linter. It's intended to enforce some code style rules.

winter crow
#

i knew it was the linter. Is there a way to make it not do this?

timber whale
#

But the first line is complaining about the file name, and that causes a real obstruction. It means that other code can't import your file. (Which might be fine, or even deliberate. Pip does something like this intentionally.)

#

Each linter tool has its own configuration and you'll have to look it up in the doc.

winter crow
#

oh ok. The code works fine, and gives no errors. Is it fine to leave it alone? It was just a practice project on making a calculator

obsidian junco
#

the "pylint" in this line is the extension name. I don't think that comes with the Python extension; you can just disable or uninstall it.

winter crow
obsidian junco
#

You don't need a separate extension for that

#

just press the "format document" hotkey

winter crow
#

really? Let me see, hold on

#

oh cool

#

thanks!

#

now i dont have stupid errors in the problems thing

swift compassBOT
#
Python help channel closed for inactivity

This help channel has been closed. Feel free to create a new post in #1035199133436354600. To maximize your chances of getting a response, check out this guide on asking good questions.