Got error when run ant

I got this error when run ant.
It's working several days ago, and now I got this error.
checked OdeMessages.java, but I can not find the problem.

YaClientApp:
     [java] Compiling module com.google.appinventor.YaClient-dev
     [java]    Ignored 3 units with compilation errors in first pass.
     [java] Compile with -strict or with -logLevel set to TRACE or DEBUG to see all errors.
     [java]    Computing all possible rebind results for 'com.google.appinventor.client.OdeMessages'
     [java]       Rebinding com.google.appinventor.client.OdeMessages
     [java]          Invoking generator com.google.gwt.i18n.rebind.LocalizableGenerator
     [java]             Processing interface com.google.appinventor.client.OdeMessages
     [java]                Generating method body for hintPropertyValue()
     [java]                   [ERROR] Required argument 0 not present:
     [java]    [ERROR] Errors in 'com/google/appinventor/client/Ode.java'
     [java]       [ERROR] Line 144: Failed to resolve 'com.google.appinventor.client.OdeMessages' via deferred binding
     [java]    [WARN] For the following type(s), generated source was never committed (did you forget to call commit()?)
     [java]       [WARN] com.google.appinventor.client.OdeMessages_
     [java]    Computing all possible rebind results for 'com.google.appinventor.client.editor.youngandroid.BlocklyPanel.BlocklySource'
     [java]       Rebinding com.google.appinventor.client.editor.youngandroid.BlocklyPanel.BlocklySource
     [java]          Invoking generator com.google.gwt.query.rebind.JsniBundleGenerator
     [java]             JsniBundleGenerator - importing external javascript: com/google/appinventor/client/editor/youngandroid/blockly.js
     [java]    Computing all possible rebind results for 'com.google.appinventor.client.utils.HTML5DragDrop.HTML5DragDropSupport'
     [java]       Rebinding com.google.appinventor.client.utils.HTML5DragDrop.HTML5DragDropSupport
     [java]          Invoking generator com.google.gwt.query.rebind.JsniBundleGenerator
     [java]             JsniBundleGenerator - importing external javascript: com/google/appinventor/client/utils/html5dnd.js
     [java]    Computing all possible rebind results for 'com.google.appinventor.client.widgets.ExpiredServiceOverlayExpiredServiceOverlayUiBinderImplGenMessages'
     [java]       Rebinding com.google.appinventor.client.widgets.ExpiredServiceOverlayExpiredServiceOverlayUiBinderImplGenMessages
     [java]          Invoking generator com.google.gwt.i18n.rebind.LocalizableGenerator
     [java]             Processing interface com.google.appinventor.client.widgets.ExpiredServiceOverlayExpiredServiceOverlayUiBinderImplGenMessages
     [java]                Generating method body for hintPropertyValue()
     [java]                   [ERROR] Required argument 0 not present:
     [java]    [ERROR] Errors in 'gen/com/google/appinventor/client/widgets/ExpiredServiceOverlay_ExpiredServiceOverlayUiBinderImpl.java'
     [java]       [ERROR] Line 18: Failed to resolve 'com.google.appinventor.client.widgets.ExpiredServiceOverlayExpiredServiceOverlayUiBinderImplGenMessages' via deferred binding
     [java]    [WARN] For the following type(s), generated source was never committed (did you forget to call commit()?)
     [java]       [WARN] com.google.appinventor.client.widgets.ExpiredServiceOverlayExpiredServiceOverlayUiBinderImplGenMessages_
     [java]    Computing all possible rebind results for 'com.google.appinventor.client.explorer.dialogs.NoProjectDialogBoxNoProjectDialogBoxUiBinderImplGenMessages'
     [java]       Rebinding com.google.appinventor.client.explorer.dialogs.NoProjectDialogBoxNoProjectDialogBoxUiBinderImplGenMessages
     [java]          Invoking generator com.google.gwt.i18n.rebind.LocalizableGenerator
     [java]             Processing interface com.google.appinventor.client.explorer.dialogs.NoProjectDialogBoxNoProjectDialogBoxUiBinderImplGenMessages
     [java]                Generating method body for hintPropertyValue()
     [java]                   [ERROR] Required argument 0 not present:
     [java]    [ERROR] Errors in 'gen/com/google/appinventor/client/explorer/dialogs/NoProjectDialogBox_NoProjectDialogBoxUiBinderImpl.java'
     [java]       [ERROR] Line 18: Failed to resolve 'com.google.appinventor.client.explorer.dialogs.NoProjectDialogBoxNoProjectDialogBoxUiBinderImplGenMessages' via deferred binding
     [java]    [WARN] For the following type(s), generated source was never committed (did you forget to call commit()?)
     [java]       [WARN] com.google.appinventor.client.explorer.dialogs.NoProjectDialogBoxNoProjectDialogBoxUiBinderImplGenMessages_

BUILD FAILED
E:\AppMaker\appinventor\build.xml:50: The following error occurred while executing this line:
E:\AppMaker\appinventor\appengine\build.xml:597: Java returned: 1

ok I think I know where is the problem:

after I set hintPropertyValue to empty string in OdeMessages.java, I forget to change this line

changeProperty(PROPERTY_NAME_HINT, MESSAGES.hintPropertyValue());

in MockTextboxBase.java

Based on the error, I think your message had a placeholder {0} in it somewhere and there was a mismatch between the string and previously compiled code. With stuff like this, sometimes it is easiest to ant clean first to make sure you're working from a clean slate.

2 Likes

you are right, I realized that later. :grinning: