Closed WarmongeringBeaver closed 6 months ago
The issue is that the version of attrs you have is not compatible. When you use fromEnvironment all packages are first picked from your environment.
Here are the two options: Option 1: update the attrs in your environment to latest. Option 2: set black-formatted.importStrategy to useBundled, and set black-formatter.path to point to black. This will use black from your environment but still use internal packages for communication.
Because we have not heard back with the information we requested, we are closing this issue for now. If you are able to provide the info later on then we will be happy to re-open this issue to pick up where we left off.
When
black-formatter.importStrategy
isfromEnvironment
, this error message appears:(the log then repeats itself a few times).
Calling
black
from the CL with my environment activated works like a charm.Apparently the extensions calls packages in
/usr/lib/python3/dist-packages
which might be the problem? Also I don't understand why calls tovscode-server/extensions/ms-python.black-formatter-2024.0.1/bundled/
are still made whenblack-formatter.importStrategy
isfromEnvironment
.