language_tool_python
language_tool_python copied to clipboard
Download progress bar does not print correct LT version
The download progress bar that is invoked in this line will always say 'Downloading LanguageTool 6.4', regardless of which version the program actually downloads.
What I did:
LanguageTool(language_tool_download_version='6.3'
Expected behavior:
- Download LanguageTool-6.3 to
~./cache/language_tool_python - Print
Downloading LanguageTool 6.3to stdout in front of the progress bar.
Actual behavior:
- Download LanguageTool-6.3 to
~./cache/language_tool_python - Print
Downloading LanguageTool 6.4to stdout in front of the progress bar.
Possible solutions:
In get_http, get the version from url and not from the static LTP_DOWNLOAD_VERSION. Or, pass the variable version from download_lt to download_zip to get_http.