Git Product home page Git Product logo

Comments (10)

danielnaber avatar danielnaber commented on August 21, 2024

I cannot reproduce that when starting the JAR from the LT 6.4 ZIP files we provide. It looks like a packaging issue. Do you know what the actual commend is that gets executed by languagetool?

from languagetool.

binarynoise avatar binarynoise commented on August 21, 2024

languagetool looks like a shell script to build the java command and eventually runs

/bin/java
-cp /usr/share/languagetool:/usr/share/java/languagetool/languagetool-commandline.jar:/usr/share/java/languagetool/languagetool-server.jar:/usr/share/java/languagetool/languagetool.jar
org.languagetool.server.HTTPServer
-p 8000 --public --allow-origin * --config /home/languagetool/languagetool.conf

(wrapped for readability)

from languagetool.

binarynoise avatar binarynoise commented on August 21, 2024

here's the source for the wrapper:
https://gitlab.archlinux.org/archlinux/packaging/packages/languagetool/-/blob/main/languagetool.sh

I'll try to build the package myself and see how that goes

from languagetool.

danielnaber avatar danielnaber commented on August 21, 2024

Does it make a difference if you run the command from the directory that contains languagetool-commandline.jar? Or from /usr/share/languagetool?

from languagetool.

binarynoise avatar binarynoise commented on August 21, 2024

It does not seem to make a difference from where I run the full command.

from languagetool.

binarynoise avatar binarynoise commented on August 21, 2024

looking at the code, it looks like git.properties isn't found

from languagetool.

binarynoise avatar binarynoise commented on August 21, 2024

the file is where it should be, so it's probably a problem with invoking the jars or it's not able to properly read the file, but it doesn't log the warning either

from languagetool.

binarynoise avatar binarynoise commented on August 21, 2024

It's definitely some kind of packaging thing.
Downloading the release zip, extracting it and running the command as in the docs successfully starts the server.

from languagetool.

binarynoise avatar binarynoise commented on August 21, 2024

https://gitlab.archlinux.org/archlinux/packaging/packages/languagetool/-/issues/2

from languagetool.

binarynoise avatar binarynoise commented on August 21, 2024

I just found the reason.
There was a stray, empty git-premium.properties in /usr/share/languagetool, getting rid of that solves the issue.
So it wasn't a packaging issue.
I wonder why it still worked on 6.3

from languagetool.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.