Hi, Jacob.

With your new version of apertium-viewer, I get an exception error when
starting the program.

I also get a compilation error with the source code. See below.

Regards,
Jaume Ortolà


Exception in thread "AWT-EventQueue-0" java.lang.NoSuchMethodError:
org.apertium.pipeline.Program.getParameterList()Ljava/util/List;
at apertiumview.sourceeditor.SourcecodeFinder.createHtmlLinkText(
SourcecodeFinder.java:94)
at apertiumview.TextWidget.setProgram(TextWidget.java:272)
at apertiumview.ApertiumView.setMode(ApertiumView.java:628)
at apertiumview.ApertiumView.updateSelectedMode(ApertiumView.java:515)
at apertiumview.ApertiumView.modesComboBoxActionPerformed(
ApertiumView.java:1264)
at apertiumview.ApertiumView.updateModesComboBox(ApertiumView.java:771)
at apertiumview.ApertiumView.loadModes(ApertiumView.java:452)
at apertiumview.ApertiumView.<init>(ApertiumView.java:279)
at apertiumview.ApertiumViewMain.startup(ApertiumViewMain.java:28)
at apertiumview.ApertiumViewMain$2.run(ApertiumViewMain.java:78)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:311)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:756)
at java.awt.EventQueue.access$500(EventQueue.java:97)
at java.awt.EventQueue$3.run(EventQueue.java:709)
at java.awt.EventQueue$3.run(EventQueue.java:703)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$JavaSecurityAccessImpl.
doIntersectionPrivilege(ProtectionDomain.java:80)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:726)
at java.awt.EventDispatchThread.pumpOneEventForFilters(
EventDispatchThread.java:201)
at java.awt.EventDispatchThread.pumpEventsForFilter(
EventDispatchThread.java:116)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(
EventDispatchThread.java:105)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)


-do-compile:
    [javac] Compiling 5 source files to /home/jaume/apertium/apertium-
viewer/build/classes
    [javac] warning: [options] bootstrap class path not set in conjunction
with -source 1.7
    [javac] 
/home/jaume/apertium/apertium-viewer/src/apertiumview/Pipeline.java:140:
error: cannot find symbol
    [javac]                 List<String> args = new
ArrayList<String>(program.getParameterList());
    [javac]
 ^
    [javac]   symbol:   method getParameterList()
    [javac]   location: variable program of type Program
    [javac] 
/home/jaume/apertium/apertium-viewer/src/apertiumview/Pipeline.java:141:
error: cannot find symbol
    [javac]                 args = Dispatcher.replace("$1",
markUnknownWords ? "-g" : "-n", args);
    [javac]                                  ^
    [javac]   symbol:   method replace(String,String,List<String>)
    [javac]   location: class Dispatcher
    [javac] 
/home/jaume/apertium/apertium-viewer/src/apertiumview/Pipeline.java:142:
error: cannot find symbol
    [javac]                 args = Dispatcher.replace("$2", "", args); //
Don't display ambiguity
    [javac]                                  ^
    [javac]   symbol:   method replace(String,String,List<String>)
    [javac]   location: class Dispatcher
    [javac] 
/home/jaume/apertium/apertium-viewer/src/apertiumview/Pipeline.java:143:
error: cannot find symbol
    [javac]                 args = Dispatcher.replace("$3", "", args); //
What is this $3 ??!??
    [javac]                                  ^
    [javac]   symbol:   method replace(String,String,List<String>)
    [javac]   location: class Dispatcher
    [javac] /home/jaume/apertium/apertium-viewer/src/apertiumview/
sourceeditor/SourcecodeFinder.java:38: error: cannot find symbol
    [javac] for (String param : program.getParameterList()) {
    [javac]                           ^
    [javac]   symbol:   method getParameterList()
    [javac]   location: variable program of type Program
    [javac] /home/jaume/apertium/apertium-viewer/src/apertiumview/
sourceeditor/SourcecodeFinder.java:94: error: cannot find symbol
    [javac] for (String param : program.getParameterList()) {
    [javac]                           ^
    [javac]   symbol:   method getParameterList()
    [javac]   location: variable program of type Program
    [javac] 6 errors
    [javac] 1 warning


Salutacions,
Jaume Ortolà
www.riuraueditors.cat

2017-06-03 1:03 GMT+02:00 Jacob Nordfalk <[email protected]>:

> Hi there!
>
> Thanks for reporting this!
>
> I have fixed the bugs so that quotes ( " and ' ) are allowed in file
> names, and paths with spaces should work as well, both in lttoolbox-java
> and in apertium-viewer.
>
> I just uploaded a new version of apertium-viewer to
> http://javabog.dk/filer/apertium/apertium-viewer.jar
>
> Evrything, including invocation of C++ version, should work now, please
> try it out with
> wget http://javabog.dk/filer/apertium/apertium-viewer.jar
> java -jar apertium-viewer.jar
>
> When you confirm this I make a new version for 'build' folder.
> (I hope someone else can push it to the repos)
>
> Yours Jacob
>
>
> 2017-06-02 9:12 GMT+02:00 Xavi Ivars <[email protected]>:
>
>>
>>
>> 2017-06-02 <20%2017%2006%2002> 9:08 GMT+02:00 Tino Didriksen <
>> [email protected]>:
>>
>>> The quotes are necessary for many separate cases across all of Linux,
>>> macOS, and Windows, so we want to keep them in the mode files.
>>>
>>>
>> Absolutely! That's why I only mentioned "as a workaround" to use
>> apertium-viewer until it's fixed there (and, of course, if by changing that
>> doesn't break anything else).
>>
>>
>>> Here's how I handle it in OmegaT:
>>>
>>> If there are no quotes, add them and convert ' to ":
>>> https://github.com/TinoDidriksen/apertium-omegat-native/blob
>>> /master/src/com/tinodidriksen/omegat/apertiumnative/Apertium
>>> Native.java#L210
>>>
>>> Run it via native shell: https://github.com/TinoDidriks
>>> en/apertium-omegat-native/blob/master/src/com/tinodidriksen/
>>> omegat/apertiumnative/ApertiumNative.java#L66
>>>
>>>
>> Thanks!
>>
>> --
>> < Xavi Ivars >
>> < http://xavi.ivars.me >
>>
>> ------------------------------------------------------------
>> ------------------
>> Check out the vibrant tech community on one of the world's most
>> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
>> _______________________________________________
>> Apertium-stuff mailing list
>> [email protected]
>> https://lists.sourceforge.net/lists/listinfo/apertium-stuff
>>
>>
>
>
> --
> Jacob Nordfalk <http://profiles.google.com/jacob.nordfalk>
> Androidudvikler og -underviser på DTU
> <http://www.dtu.dk/service/telefonbog/person?id=78778&tab=7#tabs>
> Tlf 26206512 - javabog.dk
>
> ------------------------------------------------------------
> ------------------
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> _______________________________________________
> Apertium-stuff mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/apertium-stuff
>
>
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Apertium-stuff mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/apertium-stuff

Reply via email to