Crash PylintF0002:astroid-error Fatal Crash on Start of Pylint in VSCode #10353
Labels
Crash 💥
A bug that makes pylint crash
Needs reproduction 🔍
Need a way to reproduce it locally on a maintainer's machine
Bug description
When parsing the following
file.py
:Can't share code. Stacktrace gives the source of the error.
The crash shows a key error in our vars.py file which is establishing constant variables from our .env file.
2 Developers working on the same code, 1 experiences the fatal crash and the other does not. We have confirmed same versioning of VSCode, Astroid, Pylint, and the same .env file. Code repository is also in the same branch and no differences in current code between the two devs.
Command used
pylint file.py
Pylint output
pylint crashed with a ``AstroidError`` and with the following stacktrace:
Expected behavior
No crash.
Configuration
Command used
Pylint output
Expected behavior
No Crash. Not sure if this should even attempt to read .env variables.
Pylint version
OS / Environment
Darwin Kernel Version 24.3.0
Additional dependencies
The text was updated successfully, but these errors were encountered: