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!
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!
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
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
|
DetailsDescription:
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
Thursday, 27 April 2023, 18:27 GMT
Reason for closing: Fixed
Additional comments about closing: languagetool 6.1-2
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.