Error with foreign languages

Shop Forum Makelangelo Polargraph Art Robot Error with foreign languages

Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #11204
    Nelstaar
    Participant

    Hi,
    I’ve tested Makelangelo 7.8 in my French Ubuntu and I cannot save the setting or change feed rate.
    For instance if I type in a 700mm paper size, the textbox automatically adjust the value to 700,0 (note the comma).
    When i click the ‘save’ buton Java pukes:
    Exception in thread “AWT-EventQueue-0” java.lang.NumberFormatException: For input string: “700,0”


    If I start Makelangelo with ‘LANG=”C” java -jar Makelangelo-7.8.0-with-dependencies.jar’ it starts in English, every thing works fine and 700 is adjust to 700.0 (not the dot)

    #11209
    Dan
    Keymaster

    This is now github issue #209.

    I had a similar problem with a german, because the java code didn’t understand localized decimal point.

    I have uploaded a patch to github. Can you follow the steps to build a test copy and confirm if the patch works, please?

    #11211
    Dan
    Keymaster

    Please let me know if the tester steps are confusing. I want it to be easy for you.

    #11226
    Nelstaar
    Participant

    Hi Dan,
    FYI I am no Java developer.
    Once that said, I faced the following issues:

    git clone OK
    git checkout dev OK

    ./script/bootstrap 
    ~/workspace/Makelangelo-software/script ~/workspace/Makelangelo-software
    ./script/bootstrap: line 6: source: callmavenwrapper: file not found

    So I tryed

    cd script
    ./bootstrap 
    ./bootstrap: line 5: pushd: script: No such file or directory
    ./bootstrap: line 6: source: callmavenwrapper: file not found

    I must have missed something or what ?

    #11264
    Dan
    Keymaster

    please try

    cd script
    ./callmavenwrapper

    instead of

    cd script
    ./bootstrap

    and post your results.

    #11270
    Nelstaar
    Participant
    ./callmavenwrapper
    ./callmavenwrapper: line 6: source: mvnw: file not found'
    
    So I changed mvnw to mvn in callmavenwrapper
    
    

    ./callmavenwrapper
    Error: Could not find or load main class org.codehaus.plexus.classworlds.launcher.Launcher`

    maybe you can try from your side with
    LANG="fr_FR.UTF-8" java -jar Makelangelo-7.8.0-with-dependencies.jar

    #11273
    Dan
    Keymaster

    I am trying this. Are you using a comma instead of a period?

    #11274
    Dan
    Keymaster

    I have written a unit test that makes sure FR and US number formats work as expected. I won’t feel totally confident it works for you until you try it.

    #11278
    Anonymous
    Inactive

    Makelangelo-software contributor here.

    It helps me to understand the issue a lot better if a full stack trace is given.

    
    Exception in thread “AWT-EventQueue-0” java.lang.NumberFormatException: For input string: “700,0”
    …
    …
    …
    

    Error: Could not find or load main class org.codehaus.plexus.classworlds.launcher.Launcher

    Do not provide enough context for me to help.

    ./script/bootstrap was only tested on Mac OS X. It seems some more testing needs to be done for *nix distros like Ubuntu, and most likely Windows.

    If you already have Maven installed, and you are in the root directory of the checked out git project, try:

    
    cd java
    mvn clean package
    

    Also please post the output of running:

    
     mvn --version
    

    It is much easier to call the executable directly than use the bootstrap script abstraction. Clearly the bootstrap script is more trouble than it is worth in your environment at the moment.

Viewing 9 posts - 1 through 9 (of 9 total)
  • You must be logged in to reply to this topic.