language_tool_python icon indicating copy to clipboard operation
language_tool_python copied to clipboard

Download progress bar does not print correct LT version

Open ybracke opened this issue 1 year ago • 0 comments

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:

  1. Download LanguageTool-6.3 to ~./cache/language_tool_python
  2. Print Downloading LanguageTool 6.3 to stdout in front of the progress bar.

Actual behavior:

  1. Download LanguageTool-6.3 to ~./cache/language_tool_python
  2. Print Downloading LanguageTool 6.4 to 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.

ybracke avatar Apr 18 '24 14:04 ybracke