#π Weird Errors in VS Codium
17 messages Β· Page 1 of 1 (latest)
@winter crow
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.
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.
i knew it was the linter. Is there a way to make it not do this?
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.
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
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.
no, i doesnt come with python. I installed it so that when i save it fixes the minor formatting errors like x=1 compared to x = 1. That way i see it fix them and remember to better
You don't need a separate extension for that
just press the "format document" hotkey
really? Let me see, hold on
oh cool
thanks!
now i dont have stupid errors in the problems thing
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.