Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    Compile problem with latest nightly. Unterminated single quote in SmartGwtMessages

    Code:
    Compiling module it.newsoftsrl.todo.ToDo
       Computing all possible rebind results for 'com.smartgwt.client.i18n.SmartGwtMessages'
          Rebinding com.smartgwt.client.i18n.SmartGwtMessages
             Invoking generator com.google.gwt.i18n.rebind.LocalizableGenerator
                Processing interface com.smartgwt.client.i18n.SmartGwtMessages
                   Generating method body for advancedHiliteEditor_invalidHilitePrompt()
                      [ERROR] Error parsing 'Inserire almeno una regola, un colore o un'icona, e un campo, o premere 'Annulla' per abbandonare le modifiche.'
    java.text.ParseException: Unterminated single quote: Inserire almeno una regola, un colore o un'icona, e un campo, o premere 'Annulla' per abbandonare le modifiche.
    	at com.google.gwt.i18n.rebind.MessageFormatParser.parse(MessageFormatParser.java:466)
    	at com.google.gwt.i18n.rebind.MessagesMethodCreator.createMethodFor(MessagesMethodCreator.java:1139)
    	at com.google.gwt.i18n.rebind.AbstractLocalizableImplCreator.delegateToCreator(AbstractLocalizableImplCreator.java:501)
    	at com.google.gwt.i18n.rebind.MessagesImplCreator.emitMethodBody(MessagesImplCreator.java:92)
    	at com.google.gwt.user.rebind.AbstractGeneratorClassCreator.genMethod(AbstractGeneratorClassCreator.java:277)
    	at com.google.gwt.user.rebind.AbstractGeneratorClassCreator.emitMethods(AbstractGeneratorClassCreator.java:239)
    	at com.google.gwt.user.rebind.AbstractGeneratorClassCreator.emitClass(AbstractGeneratorClassCreator.java:118)
    	at com.google.gwt.i18n.rebind.AbstractLocalizableImplCreator.generateConstantOrMessageClass(AbstractLocalizableImplCreator.java:225)
    	at com.google.gwt.i18n.rebind.LocalizableGenerator.generate(LocalizableGenerator.java:151)
    	at com.google.gwt.i18n.rebind.LocalizableGenerator.generate(LocalizableGenerator.java:124)
    	at com.google.gwt.core.ext.IncrementalGenerator.generateNonIncrementally(IncrementalGenerator.java:40)
    	at com.google.gwt.dev.javac.StandardGeneratorContext.runGeneratorIncrementally(StandardGeneratorContext.java:657)
    	at com.google.gwt.dev.cfg.RuleGenerateWith.realize(RuleGenerateWith.java:41)
    	at com.google.gwt.dev.shell.StandardRebindOracle$Rebinder.rebind(StandardRebindOracle.java:79)
    	at com.google.gwt.dev.shell.StandardRebindOracle.rebind(StandardRebindOracle.java:276)
    	at com.google.gwt.dev.shell.StandardRebindOracle.rebind(StandardRebindOracle.java:265)
    	at com.google.gwt.dev.DistillerRebindPermutationOracle.getAllPossibleRebindAnswers(DistillerRebindPermutationOracle.java:91)
    	at com.google.gwt.dev.jjs.impl.UnifyAst$UnifyVisitor.handleGwtCreate(UnifyAst.java:355)
    	at com.google.gwt.dev.jjs.impl.UnifyAst$UnifyVisitor.handleMagicMethodCall(UnifyAst.java:433)
    	at com.google.gwt.dev.jjs.impl.UnifyAst$UnifyVisitor.endVisit(UnifyAst.java:237)
    	at com.google.gwt.dev.jjs.ast.JMethodCall.traverse(JMethodCall.java:243)
    	at com.google.gwt.dev.jjs.ast.JModVisitor.traverse(JModVisitor.java:361)
    	at com.google.gwt.dev.jjs.ast.JModVisitor.accept(JModVisitor.java:273)
    	at com.google.gwt.dev.jjs.ast.JModVisitor.accept(JModVisitor.java:265)
    	at com.google.gwt.dev.jjs.ast.JVisitor.accept(JVisitor.java:116)
    	at com.google.gwt.dev.jjs.ast.JCastOperation.traverse(JCastOperation.java:65)
    	at com.google.gwt.dev.jjs.ast.JModVisitor.traverse(JModVisitor.java:361)
    	at com.google.gwt.dev.jjs.ast.JModVisitor.accept(JModVisitor.java:273)
    	at com.google.gwt.dev.jjs.ast.JModVisitor.accept(JModVisitor.java:265)
    	at com.google.gwt.dev.jjs.ast.JVisitor.accept(JVisitor.java:116)
    	at com.google.gwt.dev.jjs.ast.JDeclarationStatement.traverse(JDeclarationStatement.java:48)
    	at com.google.gwt.dev.jjs.ast.JModVisitor$ListContextImmutable.traverse(JModVisitor.java:170)
    	at com.google.gwt.dev.jjs.ast.JModVisitor.acceptWithInsertRemoveImmutable(JModVisitor.java:336)
    	at com.google.gwt.dev.jjs.ast.JBlock.traverse(JBlock.java:83)
    	at com.google.gwt.dev.jjs.ast.JModVisitor.traverse(JModVisitor.java:361)
    	at com.google.gwt.dev.jjs.ast.JModVisitor.accept(JModVisitor.java:273)
    	at com.google.gwt.dev.jjs.ast.JVisitor.accept(JVisitor.java:137)
    	at com.google.gwt.dev.jjs.ast.JIfStatement.traverse(JIfStatement.java:52)
    	at com.google.gwt.dev.jjs.ast.JModVisitor$ListContextImmutable.traverse(JModVisitor.java:170)
    	at com.google.gwt.dev.jjs.ast.JModVisitor.acceptWithInsertRemoveImmutable(JModVisitor.java:336)
    	at com.google.gwt.dev.jjs.ast.JBlock.traverse(JBlock.java:83)
    	at com.google.gwt.dev.jjs.ast.JModVisitor.traverse(JModVisitor.java:361)
    	at com.google.gwt.dev.jjs.ast.JModVisitor.accept(JModVisitor.java:273)
    	at com.google.gwt.dev.jjs.ast.JVisitor.accept(JVisitor.java:137)
    	at com.google.gwt.dev.jjs.ast.JVisitor.accept(JVisitor.java:133)
    	at com.google.gwt.dev.jjs.ast.JMethodBody.traverse(JMethodBody.java:82)
    	at com.google.gwt.dev.jjs.ast.JModVisitor.traverse(JModVisitor.java:361)
    	at com.google.gwt.dev.jjs.ast.JModVisitor.accept(JModVisitor.java:273)
    	at com.google.gwt.dev.jjs.ast.JModVisitor.accept(JModVisitor.java:265)
    	at com.google.gwt.dev.jjs.ast.JMethod.visitChildren(JMethod.java:426)
    	at com.google.gwt.dev.jjs.ast.JMethod.traverse(JMethod.java:395)
    	at com.google.gwt.dev.jjs.ast.JModVisitor.traverse(JModVisitor.java:361)
    	at com.google.gwt.dev.jjs.ast.JModVisitor.accept(JModVisitor.java:273)
    	at com.google.gwt.dev.jjs.ast.JModVisitor.accept(JModVisitor.java:265)
    	at com.google.gwt.dev.jjs.impl.UnifyAst.mainLoop(UnifyAst.java:902)
    	at com.google.gwt.dev.jjs.impl.UnifyAst.exec(UnifyAst.java:627)
    	at com.google.gwt.dev.jjs.JavaToJavaScriptCompiler.precompile(JavaToJavaScriptCompiler.java:624)
    	at com.google.gwt.dev.jjs.JavaScriptCompiler.precompile(JavaScriptCompiler.java:33)
    	at com.google.gwt.dev.Precompile.precompile(Precompile.java:278)
    	at com.google.gwt.dev.Precompile.precompile(Precompile.java:229)
    	at com.google.gwt.dev.Precompile.precompile(Precompile.java:141)
    	at com.google.gwt.dev.Compiler.run(Compiler.java:232)
    	at com.google.gwt.dev.Compiler.run(Compiler.java:198)
    	at com.google.gwt.dev.Compiler$1.run(Compiler.java:170)
    	at com.google.gwt.dev.CompileTaskRunner.doRun(CompileTaskRunner.java:88)
    	at com.google.gwt.dev.CompileTaskRunner.runWithAppropriateLogger(CompileTaskRunner.java:82)
    	at com.google.gwt.dev.Compiler.main(Compiler.java:177)
       [ERROR] Errors in 'com/smartgwt/client/util/I18nUtil.java'
          [ERROR] Line 31: Failed to resolve 'com.smartgwt.client.i18n.SmartGwtMessages' via deferred binding
       [WARN] For the following type(s), generated source was never committed (did you forget to call commit()?)
          [WARN] com.smartgwt.client.i18n.SmartGwtMessages_it

    #2
    Fixed a while ago; get a more recent patch build. If you still have the issue, fill out all the details required by the forums, including which locale this is.

    Comment


      #3
      Using the italian localization (it) ...

      Code:
      <extend-property name="locale" values="it"/>
      <extend-property name="locale" values="en"/>
      <set-property-fallback name="locale" value="it"/>
      ... with the latest version of SmartGWT 3.1p LGPL 2013-01-31, in compilation, the error is always present.
      Last edited by dinomanco; 31 Jan 2013, 04:29.

      Comment


        #4
        The problem here was that the translation had been added to getlocalization.com with an apostrophe/single-quote in the text - those need to be added using &#39; to avoid parsing errors.

        We've fixed them on getlocalization.com and changes will hit nightly builds from February 4.

        Comment


          #5
          Same problem for Dutch translation since 25-04-2013, smartgwt 3.1 p

          Comment


            #6
            We're not seeing this issue.

            The file we are looking at is in in smartgwt.jar at com\smartgwt\client\i18n and does not appear to have any unquoted apostrophes.

            Please check this actual file (rather than just looking at what happens in your environment after installing the .jar), and, if you think there's an unquoted apostrophe, please indicate which message has it.

            Comment


              #7
              see SmartGwtMessages_nl.properties@438:
              Code:
              time_AMIndicator='s morgens
              time_PMIndicator='s middags
              In the latest build it's:
              Code:
              time_AMIndicator=\'s morgens
              time_PMIndicator=\'s middags
              But the compiler fails on this also.

              Comment


                #8
                This has been addressed - please retest with a nightly build dated May 7 or later

                Comment


                  #9
                  Event the latest nightly for 3.0p with italian locale has Unterminated single quotes

                  Originally posted by Isomorphic View Post
                  This has been addressed - please retest with a nightly build dated May 7 or later
                  I've noticed that even launching the gwt compiler on the latest nightly build for 3.0p (2013-05-23) with italian locale fails complaining for Unterminated single quote. In fact there are some entries like
                  Code:
                  multiFileItem_emptyMessage=Clicca sull' icona per aggiungere...
                  I'm sure 3.0 didn't have this problem. Should I open a new thread or is this message enough?

                  Cheers
                  Davide

                  Comment


                    #10
                    We altered how we deal with apostrophes in the language packs, but the change wasn't ported to 3.0. Please retest with a build dated May 25 or later

                    Comment

                    Working...
                    X