Code Monkey home page Code Monkey logo

Comments (7)

zzantares avatar zzantares commented on June 12, 2024

Did you tried to pass the absolute path to the .jar file? without using the alias ~.

Worked for me without issues.

from emacs-langtool.

jasonhemann avatar jasonhemann commented on June 12, 2024

The following works for me.

(require 'langtool)

(if (file-exists-p "/LanguageTool-3.4/")
(setq langtool-language-tool-jar "
/LanguageTool-3.4/languagetool-commandline.jar"))

(global-set-key "\C-x4w" 'langtool-check)
(global-set-key "\C-x4W" 'langtool-check-done)
(global-set-key "\C-x4l" 'langtool-switch-default-language)
(global-set-key "\C-x44" 'langtool-show-message-at-point)
(global-set-key "\C-x4c" 'langtool-correct-buffer)

(setq langtool-default-language "en-US")
(setq langtool-mother-tongue "en")

railwaycat emacs port + melpa version of langtool

from emacs-langtool.

FrancisMurillo avatar FrancisMurillo commented on June 12, 2024

@yanivdll I had the same problem with it recently. My solution was to include /org, /libs and /META-INF along with the languagetool-commandline.jar. I thought the jar file was enough but it also needed those libraries to be beside it as well.

from emacs-langtool.

yanivdll avatar yanivdll commented on June 12, 2024

Thanks @FrancisMurillo. Where exactly did you put those references to /org, /libs and /META-INF?

from emacs-langtool.

FrancisMurillo avatar FrancisMurillo commented on June 12, 2024

@yanivdll It is just the same as the extracted zip with only those files. The search path is where the languagetool-commandline.jar is.

(setq langtool-language-tool-jar (expand-file-name "languagetool-commandline.jar" "~/.local/lib/LanguageTool-3.6") langtool-java-classpath nil)

The extracted and simplified ~/.local/lib/LanguageTool-3.6 contents

languagetool-commandline.jar
libs
META-INF
org

from emacs-langtool.

brandelune avatar brandelune commented on June 12, 2024

I just created a pull request on the readme where I added the info found here. I had the same issue. Thank you for the help @FrancisMurillo.

from emacs-langtool.

jasonhemann avatar jasonhemann commented on June 12, 2024

FWIW languagetool is available from homebrew, and might be a nicer way to install on macos.

from emacs-langtool.

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.