spacy-vscode
spacy-vscode copied to clipboard
`pygls > 1.0.x` breaks version checks
pygls 1.1 seems to have removed the __version__ attribute from the top-level module, which breaks the validation code.
Checking versions for python 3.7+ is annoying due to the lack of importlib.metadata in python 3.7.
If you switch this to python 3.8+ you can use importlib.metadata instead. For python 3.7+ you could use importlib_metadata from spacy.compat. You'd have to refactor the version checking code a bit to import spacy first/separately.
So a "quick fix" would be to install pygls>=1.0.0,<1.1.0.
But as Python 3.7 and 3.8 have reached their EOL is supporting them in this extension still an issue? If not do you accept pull requests in this repo?
Fixed in this pull request
https://github.com/explosion/spacy-vscode/pull/32