ApolloResearch / rib

Library for methods related to the Local Interaction Basis (LIB)
MIT License
3 stars 0 forks source link

Fix VSCode black and venv mismatch #311

Open danbraunai-apollo opened 6 months ago

danbraunai-apollo commented 6 months ago

VSCode output Black formatter tab shows:

2024-01-26 14:14:42.649 [info] /mnt/ssd-interp/dan/RIB/rib-env/bin/python -m black --version
2024-01-26 14:14:42.649 [info] CWD formatter: /mnt/ssd-interp/dan/RIB/rib
2024-01-26 14:14:42.717 [info] Version info for formatter running for /mnt/ssd-interp/dan/RIB/rib:
black, 23.10.1 (compiled: no)
Python (CPython) 3.10.13

regardless of what /mnt/ssd-interp/dan/RIB/rib-env/bin/python -m black --version actually returns.

The Black extension docs say:

The extension ships with black=23.10.1.

The bundled black is only used if there is no installed version of black found in the selected python environment.

So it should find the version in the virtual env, and it looks like it even tries to in the Output tab, but it doesn't.

danbraunai-apollo commented 6 months ago

For now, we just pinned to black=23.10.1 (#307). Will leave issue open as this isn't a long-term solution