Closed ipfans closed 7 months ago
@ipfans The extension needs some components to run the server which is where it is failing. it is not trying to load flake8 from the bundle, just the server bits. Try updating the typing_extensions
to 4.8.0
in your environment.
Thank you for the heads-up. After updating as you suggested, the issue indeed seems to be resolved. However, this appears to be a hidden piece of knowledge as I couldn't find any hints or documentation about this. The root of the problem also relates to my project's dependencies; an older version of TensorFlow had locked the typing_extensions dependency to version 4.5.0. This means that many developers might unwittingly fail to meet the extension's environmental dependency requirements.
Environment
OS: macOS 14.0 VSCode: 1.84.0 vscode-flake8: 2023.10.0
Description
I'm encountering an issue with the Flake8 extension for VS Code where it seems to ignore the configured Python and Flake8 paths. Despite specifying the paths in the settings, the extension defaults to using its internally bundled Flake8 which relies on the system's default Python 3.12. However, my project uses a virtual environment with Python 3.10, leading to a failure in starting the Flake8 server. The error log is as follows:
VSCode Configuration:
All pakcages installed in the venv: