-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
MultiThreadedJLanguageTool with cache gives incomplete results #897
Comments
Thanks for this excellent bug report. This will probably be "fixed" by just removing the cache option for Background: I'll think more about whether there's a better solution. |
Thanks for looking into this issue. My use case is a GUI markdown editor (https://github.com/JFormDesigner/markdown-writer-fx/tree/feature/spellchecker) and I tried
Hmm, I've read this in ResultCache Javadoc, but
Understood, but if I run the above test program with language
|
The text is split into sentences and all sentences get iterated over several times in parallel, with different sets of rules. That's different to having the rules deactivated, so having the list of enabled/disabled rules in |
@danielnaber many thanks for the explanation |
…es no longer support ResultCache in LanguageTool 4.1 languagetool-org/languagetool#897
When using
MultiThreadedJLanguageTool.check(text)
with cache, then it returns less results thanJLanguageTool.check(text)
with cache. Without cache,MultiThreadedJLanguageTool.check(text)
returns the same result asJLanguageTool
.Seems that
MultiThreadedJLanguageTool
does not check all sentences if cache is enabled...Here is a program that demonstrates the problem:
The output is:
The text was updated successfully, but these errors were encountered: