Hi

A recent checkin breaks the Esperanto version
of LanguageTool.  I had not tried it in several
days. Maybe it's the removal of the ANY country
which causes it since it's crashes here:

languagetool/languagetool-core/src/main/java/org/languagetool/rules/spelling/hunspellHunspellRule.java:148

146   protected void init() throws IOException {¬
147     super.init();¬
148     final String langCountry = language.getShortName()¬
149             + "_"¬
150             + language.getCountries()[0];¬
151     final String shortDicPath = "/"¬
152             + language.getShortName()¬
153             + "/hunspell/"¬
154             + langCountry¬
155             + ".dic";¬


I don't have time now to look, but here is the exception:

$ echo "Tio estas testo." | \
  java -jar 
/home/pel/sb/languagetool/languagetool-standalone/target/LanguageTool-2.4-SNAPSHOT/LanguageTool-2.4-SNAPSHOT/languagetool-commandline.jar
-l eo
Expected text language: Esperanto
Working on STDIN...
Exception in thread "main" java.lang.RuntimeException:
java.util.concurrent.ExecutionException:
java.lang.ArrayIndexOutOfBoundsException: 0
    at 
org.languagetool.MultiThreadedJLanguageTool.performCheck(MultiThreadedJLanguageTool.java:101)
    at org.languagetool.JLanguageTool.check(JLanguageTool.java:570)
    at org.languagetool.JLanguageTool.check(JLanguageTool.java:528)
    at org.languagetool.JLanguageTool.check(JLanguageTool.java:524)
    at 
org.languagetool.commandline.CommandLineTools.checkText(CommandLineTools.java:95)
    at org.languagetool.commandline.Main.handleLine(Main.java:381)
    at org.languagetool.commandline.Main.runOnFileLineByLine(Main.java:285)
    at org.languagetool.commandline.Main.runOnFile(Main.java:165)
    at org.languagetool.commandline.Main.main(Main.java:517)
Caused by: java.util.concurrent.ExecutionException:
java.lang.ArrayIndexOutOfBoundsException: 0
    at java.util.concurrent.FutureTask$Sync.innerGet(FutureTask.java:252)
    at java.util.concurrent.FutureTask.get(FutureTask.java:111)
    at 
org.languagetool.MultiThreadedJLanguageTool.performCheck(MultiThreadedJLanguageTool.java:98)
    ... 8 more
Caused by: java.lang.ArrayIndexOutOfBoundsException: 0
    at 
org.languagetool.rules.spelling.hunspell.HunspellRule.init(HunspellRule.java:148)
    at 
org.languagetool.rules.spelling.hunspell.HunspellRule.match(HunspellRule.java:81)
    at 
org.languagetool.JLanguageTool.checkAnalyzedSentence(JLanguageTool.java:669)
    at 
org.languagetool.JLanguageTool$TextCheckCallable.call(JLanguageTool.java:978)
    at 
org.languagetool.JLanguageTool$TextCheckCallable.call(JLanguageTool.java:945)
    at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
    at java.util.concurrent.FutureTask.run(FutureTask.java:166)
    at 
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
    at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
    at java.lang.Thread.run(Thread.java:724)

Regards
Dominique

------------------------------------------------------------------------------
Shape the Mobile Experience: Free Subscription
Software experts and developers: Be at the forefront of tech innovation.
Intel(R) Software Adrenaline delivers strategic insight and game-changing 
conversations that shape the rapidly evolving mobile landscape. Sign up now. 
http://pubads.g.doubleclick.net/gampad/clk?id=63431311&iu=/4140/ostg.clktrk
_______________________________________________
Languagetool-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/languagetool-devel

Reply via email to