texstudio-org / texstudio

TeXstudio is a fully featured LaTeX editor. Our goal is to make writing LaTeX documents as easy and comfortable as possible.
http://www.texstudio.org/
GNU General Public License v3.0
2.84k stars 346 forks source link

Start LanguageTool automatically (4.0.3) #1920

Open dirkziegenbalg opened 3 years ago

dirkziegenbalg commented 3 years ago

Environment

Expected behavior

Launch LanguageTool when needed.

The following command runs perfectly fine on the command line: java -cp "C:\Eigene Programme\LanguageTool\languagetool-server.jar" org.languagetool.server.HTTPServer -p 8081 --config "C:\Users\User.languagetool-server.cfg"

Actual behavior

Does not start LT.

where java: C:\Program Files (x86)\Common Files\Oracle\Java\javapath\java.exeC:\Program Files\Java\jre1.8.0_311\bin\java.exe

JAVA: java java version "1.8.0_311" Java(TM) SE Runtime Environment (build 1.8.0_311-b11) Java HotSpot(TM) 64-Bit Server VM (build 25.311-b11, mixed mode)

Echzeitprüfungen sind aktiviert. Grammatikprüfungen sind aktiviert.

Versucht es automatisch zu starten.

Aktueller Status von LT: fehler

LT-URL: http://localhost:8081/v2/check

How to reproduce

image

It seems as the issue is the --config option. The issue occurs as long as this option is called.

It works with standard settings without loading a specific config file

image

sunderme commented 3 years ago

Can you try to set the path after config without quotes?

dirkziegenbalg commented 3 years ago

this doesn't work either. I get the following (not very helpful) error again:

where java: C:\Program Files (x86)\Common Files\Oracle\Java\javapath\java.exeC:\Program Files\Java\jre1.8.0_311\bin\java.exe

JAVA: java java version "1.8.0_311" Java(TM) SE Runtime Environment (build 1.8.0_311-b11) Java HotSpot(TM) 64-Bit Server VM (build 25.311-b11, mixed mode)

Echzeitprüfungen sind aktiviert. Grammatikprüfungen sind aktiviert.

Versucht es automatisch zu starten.

Aktueller Status von LT:Fehler

LT-URL: http://localhost:8081/v2/check

I forgot to mention above that the settings worked initially. I'm not sure when it broke but I think it worked with versions older than 4.x

sunderme commented 3 years ago

What have you set in config ?

dirkziegenbalg commented 3 years ago

the configs read like this:

languagetool.cfg

Mon Nov 01 14:02:26 CET 2021

Profile: Default

Mon Nov 01 14:02:26 CET 2021

disabledCategories.de-DE= configurableRuleValues.en-US= autoDetect=false useGUIConfig=true disabledRules.en-US= enabledRules.de-DE=SIE_KEINE_ANREDE,UND_SATZANFANG,VOLL_BLOED,ANSTRENGEN_PHASE,MISSING_VERB,WURST_DES_TODES,SATZ_OHNE_PRAED enabledRules.en-GB=EUPUB_FINANCIAL_ENVELOPE,EUPUB_ENTERPRISE,EUPUB_AGENT,EUPUB_ASSIST_AT,EUPUB_INFORM_TO,EUPUB_ALLOW_PERMIT_ENABLE_TO,EUPUB_DEAN,EUPUB_FOLLOW-UP,EUPUB_NAME,EUPUB_PLANIFICATION,EUPUB_AIM,EUPUB_SICKNESS_INSURANCE,VERY_SMALL_TINY,EUPUB_ARTICULATE_ARTICULATION,EUPUB_REFLECTION_GROUP_FORUM,EUPUB_DEEPEN,EUPUB_ACTOR,EUPUB_ESTABLISH,EUPUB_RESPECT,EUPUB_MODIFY_MODIFICATION,EUPUB_CONTRADICTORY_PROCEDURE,BLEND_TOGETHER,EUPUB_DEBRIEFING,HONEST_TRUTH,EUPUB_SHALL,EUPUB_MODALITY,EUPUB_ATTRIBUTE,EUPUB_ACTORNESS,EUPUB_FORESEE,EUPUB_REQUEST,EUPUB_INTERVENTION,EUPUB_ANGLO_SAXON,IN_ORDER_TO,EUPUB_ACTION,EUPUB_ORIENTATIONS,EUPUB_COMITOLOGY,EUPUB_SO_CALLED,REASON_WHY,EUPUB_AXIS,EUPUB_BUDGET_LINE,EUPUB_CONSIDER_AS,EUPUB_VISA,EUPUB_MODULATION,EUPUB_DISPOSE_OF,EUPUB_CASE,EUPUB_CONTRACTUAL_AGENT,EUPUB_CONCERNED,FRAME,EUPUB_PROJECT,EUPUB_RESPONSIBLE,EUPUB_DELAY,EUPUB_JUSTIFY_JUSTIFICATION,EUPUB_BOVINE_OVINE_CAPRINE_PORCINE_ASININE_ANIMALS,EUPUB_EVOLUTION,EUPUB_HOMOGENISE_HOMOGENEOUS_HOMOGENEOUSLY,THREE_NN,EUPUB_ACTUAL,EUPUB_DETACHED_DETACHMENT,EUPUB_TRANSVERSE_TRANSVERSAL,EUPUB_PRESCRIPTION,EUPUB_PUNCTUAL,EUPUB_TRAINING,EUPUB_CABINET,EUPUB_SUPPRESS_SUPPRESSION,EN_REDUNDANCY_REPLACE,PARAGRAPH_REPEAT_BEGINNING_RULE,EUPUB_DECOMMIT,EUPUB_COMPETENCES,EUPUB_ANTI,EUPUB_CONFERENCE,EUPUB_PROVIDE_TO,HOPEFULLY,EUPUB_GLOBAL,EUPUB_EVENTUAL_EVENTUALLY,EUPUB_NORMALLY,EUPUB_TRANSPOSE_TRANSPOSITION,EUPUB_RETAIN,EUPUB_TRANSMIT,EUPUB_DOSSIER,EUPUB_INTRODUCE,EUPUB_BADGE,EUPUB_INFORMATICS_TELEMATICS,EUPUB_NOTE,EUPUB_TRAVEL,EUPUB_HIERARCHICAL_SUPERIOR,USELESS_THAT,EUPUB_OPERATOR,EUPUB_INSTANCE,NEGATE_MEANING,EUPUB_LEGISLATOR,EUPUB_DO,EUPUB_HEAVY,EUPUB_AGENDA,EUPUB_CONDITIONALITY,EUPUB_FORMULATE,EUPUB_INSIDE,EUPUB_EXTERNALISE_EXTERNALISATION,EUPUB_VERIFICATIONS,EUPUB_ATTESTATION,And,EUPUB_COHERENT_COHERENCE,EUPUB_CONCERN,EUPUB_INCITE,EUPUB_ANIMATE,EXACT_SAME,EUPUB_MISSION,EUPUB_AIDS,EUPUB_ENSURE_TO,EUPUB_REASONABILITY,EUPUB_CITIZEN,EUPUB_EXPERTISES,EUPUB_VALORISE_VALORIZE,EUPUB_OPPORTUNITY,BRIEF_MOMENT,EUPUB_PERSPECTIVE,EUPUB_ELABORATE,EUPUB_COLLEGE,EUPUB_SEMESTER_TRIMESTER,EUPUB_ADEQUATE,EUPUB_FIX,EUPUB_IMPORTANT,EUPUB_REINFORCE,EUPUB_SERVICE,EUPUB_FICHE,EUPUB_EXERCISE,WORLD_AROUND_IT,EUPUB_DEFINE_DEFINITION,EUPUB_COMPLETE,EUPUB_CONTROL,EUPUB_JURY,EUPUB_TREATMENT,EUPUB_NOTIFY_TO,EUPUB_FOLLOW_UP,EUPUB_THIRD_COUNTRY,EUPUB_PRECISE_TO_PRECISION ngramDir=C\:\Eigene Programme\LanguageTool\n-gram taggerShowsDisambigLog=false disabledRules.ast-ES= enabledCategories.en-US= disabledCategories.en-US= disabledCategories.ast-ES= enabledRules.ast-ES= enabledRules.en-US= language=en-GB word2vecDir=C\:\Eigene Programme\LanguageTool\word2vec serverPort=8081 disabledRules.de-DE=TYPOGRAFISCHE_ANFUEHRUNGSZEICHEN,ANFUEHRUNG_VERSCHACHTELT motherTongue=de serverMode=true enabledCategories.en-GB=Misused terms in EU publications (Gardner) maxCheckThreads=8

languagetool-server.cfg

LanguageTool configuration (3.3/2016-03-28 09:17)

Fri Oct 28 12:42:40 CEST 2016

languageModel=C\:\Eigene Programme\LanguageTool\n-gram rulesFile=C\:\Users\User\.languagetool.cfg maxCheckThreads=8 word2vecModel=C\:\Eigene Programme\LanguageTool\word2vec

andju commented 10 months ago

It seems that the problem is the use of double-quotation marks in the LT Arguments (LT Argumente). Try using:

org.languagetool.server.HTTPServer -p 8081 --config C:\Users\User.languagetool-server.cfg