Skip to content

Test against ltex-ls-plus 19.0.0 - #70

Open
regulad wants to merge 1 commit into
ltex-plus:developfrom
regulad:update-test-server
Open

regulad wants to merge 1 commit into
ltex-plus:developfrom
regulad:update-test-server

Conversation

@regulad

@regulad regulad commented Dec 2, 2026

Copy link
Copy Markdown

Problem

mvn verify hangs in LspCliLauncherTest when JAVA_HOME points to Java 24 or later.

Cause

The tests download ltex-ls-plus 18.4.0, which bundles LanguageTool 6.5. Java 24 lowered jdk.xml.totalEntitySizeLimit from 50,000,000 to 100,000 (JDK-8343004), and under that limit LanguageTool 6.5 can't load its English grammar rules, so the server crashes on start. LanguageTool 6.6, bundled since ltex-ls-plus 18.5.0, lifts the limit for its own rule files (ltex-plus/ltex-ls-plus#79). The tests then hang instead of failing because the client doesn't notice that the server has exited, which is #69.

Fix

TestTools.LTEXLSPLUSVERSION goes from 18.4.0 to 19.0.0, the current release. No expectation changes: the exit codes of all 8 LspCliLauncherTest cases hold with 19.0.0. There's no changelog entry, as changelog.xml lists no test-only changes.

Testing

mvn verify passes on JDK 21 (15 tests), and twice on JDK 25, with no hang.


Drafted by Claude Opus 5.5 (claude-opus-5-5); reviewed by @regulad.

https://claude.ai/code/session_01Mv4cZ3LFVAJ9aG5SntwnAr

The tests downloaded ltex-ls-plus 18.4.0, which bundles LanguageTool
6.5. Java 24 lowered jdk.xml.totalEntitySizeLimit from 50,000,000 to
100,000 (JDK-8343004), and under that limit LanguageTool 6.5 cannot
load its English grammar rules. With JAVA_HOME on Java 24 or later,
the server therefore crashed on start, and the tests waited for it
forever. LanguageTool 6.6, bundled since ltex-ls-plus 18.5.0, lifts
the limit for its own rule files (ltex-plus/ltex-ls-plus#79).

Test against ltex-ls-plus 19.0.0, the current release, instead.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Mv4cZ3LFVAJ9aG5SntwnAr
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant