Community Packages

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#76766 - [languagetool] 5.9-1 Could not find or load main class org.languagetool.server.HTTPServer

Attached to Project: Community Packages
Opened by Sas Sasian (pmmaster) - Wednesday, 07 December 2022, 12:33 GMT
Last edited by Antonio Rojas (arojas) - Thursday, 27 April 2023, 18:27 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To Antonio Rojas (arojas)
Architecture All
Severity Medium
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:
Currently, the package is installing from zip file, which causes `Error Could not find or load main class org.languagetool.server.HTTPServer`. I get this error when I use the local instance of languagetool with the LT's extension for VSCode.

My full error message:
```
Starting managed service.
Error: Could not find or load main class org.languagetool.server.HTTPServer
Caused by: java.lang.ClassNotFoundException: org.languagetool.server.HTTPServer

Managed service command failed: java -cp org.languagetool.server.HTTPServer --port 9500
Error Message: Command failed with exit code 1: java -cp org.languagetool.server.HTTPServer --port 9500
Error: Could not find or load main class org.languagetool.server.HTTPServer
Caused by: java.lang.ClassNotFoundException: org.languagetool.server.HTTPServer
```

This Issue is also briefly described [here](https://github.com/languagetool-org/languagetool/issues/3719).

The solution seems currently to build LT from git.

Steps to reproduce:

After setting up the managed service type in the LT VSCode extension's preferences, I get the error message.
This task depends upon

Closed by  Antonio Rojas (arojas)
Thursday, 27 April 2023, 18:27 GMT
Reason for closing:  Fixed
Additional comments about closing:  languagetool 6.1-2
Comment by Toolybird (Toolybird) - Wednesday, 07 December 2022, 21:00 GMT
This report is unclear..."installing from zip file" causes an error...wot? Unfortunately the pkg is orphaned i.e. no maintainer. For this to have any chance of being fixed you will have to detail *exactly* how to reproduce the error and also identify the upstream patch that fixes it instead of vague generalizations like "build LT from git".
Comment by Sas Sasian (pmmaster) - Thursday, 08 December 2022, 16:35 GMT
You're right, this bug report was a bit chaotic.

Here are the steps to reproduce.
1. Install the package, version 5.9-1.

2. Install the following version of vscode:
Version: 1.73.1
Commit: 6261075646f055b99068d3688932416f2346dd3b
Date: 2022-11-14T09:01:30.462Z
Electron: 19.1.4
Chromium: 102.0.5005.167
Node.js: 16.14.2
V8: 10.2.154.15-electron.0
OS: Linux x64 5.15.81-1-lts
Sandboxed: No

3. Install the "LanguageTool Linter" extension, version 0.19.0.
https://open-vsx.org/extension/davidlday/languagetool-linter

4. Use an Extension-Managed Service
https://open-vsx.org/extension/davidlday/languagetool-linter#option-2%3A-use-an-extension-managed-service

5. In my case, I get a terminal with the error-message.

I guess that alternatively you can try to just run the HTTP Server of LanguageTool and get something similar, but I didn't check.

All other info about package building steps is my assumption from the above-mentioned Issue, that are not tested by me.

Hope this will help.

Loading...