Build fails becouse of Blockly, any idea what is going on?

299 views
Skip to first unread message

Tomislav Tomšić

unread,
Jun 4, 2017, 6:59:05 PM6/4/17
to App Inventor Open Source Development

After ant clean, ant fails.
Please note, I've downloaded everything from git, two times now, here is what ant reports:

CheckBlocklyCompile:

BlocklyCompile:
     [java] Exception in thread "main" java.lang.IllegalArgumentException: File not found at: /home/tomislav/Programiranje/MITAppInv/appinventor-sources/appinventor/blocklyeditor/../lib/closure-library/closure/goog
     [java]     at com.google.common.base.Preconditions.checkArgument(Preconditions.java:88)
     [java]     at org.plovr.Manifest.getInputs(Manifest.java:393)
     [java]     at org.plovr.Manifest.getFiles(Manifest.java:369)
     [java]     at org.plovr.Manifest.getFiles(Manifest.java:363)
     [java]     at org.plovr.Manifest.getAllDependencies(Manifest.java:324)
     [java]     at org.plovr.Manifest.getInputsInCompilationOrder(Manifest.java:193)
     [java]     at org.plovr.Manifest.getCompilerArguments(Manifest.java:177)
     [java]     at org.plovr.CompileRequestHandler.compile(CompileRequestHandler.java:94)
     [java]     at org.plovr.cli.BuildCommand.runCommandWithOptions(BuildCommand.java:58)
     [java]     at org.plovr.cli.BuildCommand.runCommandWithOptions(BuildCommand.java:31)
     [java]     at org.plovr.cli.AbstractCommandRunner.runCommand(AbstractCommandRunner.java:41)
     [java]     at org.plovr.cli.Command.execute(Command.java:47)
     [java]     at org.plovr.cli.Main.mainWithExitCode(Main.java:56)
     [java]     at org.plovr.cli.Main.main(Main.java:30)

BUILD FAILED
/home/tomislav/Programiranje/MITAppInv/appinventor-sources/appinventor/build.xml:16: The following error occurred while executing this line:
/home/tomislav/Programiranje/MITAppInv/appinventor-sources/appinventor/build-common.xml:284: The following error occurred while executing this line:
/home/tomislav/Programiranje/MITAppInv/appinventor-sources/appinventor/blocklyeditor/build.xml:63: Java returned: 1

OS is Ubuntu 16.04

At first I thought it may be because of the Auth Key, so I've rebuild one. Then I remembered that sometimes building BuildServer  ( ant RunLocalBuildServer) before ant resolves problems, but this time it didn't.

Next I took a look at xml, this is what is in: /appinventor-sources/appinventor/blocklyeditor/build.xml

    <target name="BlocklyCompile"
              description="For now, compiling the Blockly editor means cat-ing its javascript together with the relevant javascript in the Blockly library"
              depends="init,CheckBlocklyCompile"
                      unless="BlocklyCompile.uptodate">
        <java failonerror="true" fork="true" jar="${lib.dir}/plovr/plovr-eba786b34df9.jar">
            <arg line="build ploverConfig.js" />
        </java>
    </target>

Line number 63 is underlined.

After another ant clean and ant BlocklyTest, it returns basically the same thing:

CheckBlocklyCompile:

BlocklyCompile:
     [java] Exception in thread "main" java.lang.IllegalArgumentException: File not found at: /home/tomislav/Programiranje/MITAppInv/appinventor-sources/appinventor/blocklyeditor/../lib/closure-library/closure/goog
     [java]     at com.google.common.base.Preconditions.checkArgument(Preconditions.java:88)
     [java]     at org.plovr.Manifest.getInputs(Manifest.java:393)
     [java]     at org.plovr.Manifest.getFiles(Manifest.java:369)
     [java]     at org.plovr.Manifest.getFiles(Manifest.java:363)
     [java]     at org.plovr.Manifest.getAllDependencies(Manifest.java:324)
     [java]     at org.plovr.Manifest.getInputsInCompilationOrder(Manifest.java:193)
     [java]     at org.plovr.Manifest.getCompilerArguments(Manifest.java:177)
     [java]     at org.plovr.CompileRequestHandler.compile(CompileRequestHandler.java:94)
     [java]     at org.plovr.cli.BuildCommand.runCommandWithOptions(BuildCommand.java:58)
     [java]     at org.plovr.cli.BuildCommand.runCommandWithOptions(BuildCommand.java:31)
     [java]     at org.plovr.cli.AbstractCommandRunner.runCommand(AbstractCommandRunner.java:41)
     [java]     at org.plovr.cli.Command.execute(Command.java:47)
     [java]     at org.plovr.cli.Main.mainWithExitCode(Main.java:56)
     [java]     at org.plovr.cli.Main.main(Main.java:30)

BUILD FAILED
/home/tomislav/Programiranje/MITAppInv/appinventor-sources/appinventor/build.xml:65: The following error occurred while executing this line:
/home/tomislav/Programiranje/MITAppInv/appinventor-sources/appinventor/blocklyeditor/build.xml:63: Java returned: 1

I am trying to build local AppInventor Instance, to test some extensions, does anyone have any idea what is the problem?

Thank you in advance

Evan W. Patton

unread,
Jun 4, 2017, 7:47:22 PM6/4/17
to app-inventor-o...@googlegroups.com
Hi Tomislav,

Based on the error I think you did not do a git submodule update --init to initialize the Blockly and Google Closure dependencies in lib.

Evan
--
You received this message because you are subscribed to the Google Groups "App Inventor Open Source Development" group.
To unsubscribe from this group and stop receiving emails from it, send an email to app-inventor-open-so...@googlegroups.com.
To post to this group, send email to app-inventor-o...@googlegroups.com.
Visit this group at https://groups.google.com/group/app-inventor-open-source-dev.
For more options, visit https://groups.google.com/d/optout.

Tomislav Tomšić

unread,
Jun 4, 2017, 8:35:41 PM6/4/17
to App Inventor Open Source Development
Indeed I haven't, it solved all problems. Thank you very much Evan :).
And if I may suggest, perhaps updating documentation, this one in particular: https://docs.google.com/document/d/1sAw0QObTxTWqRX7GQRCa2z9TIV2r5AKT9UKMFF1acZI/pub ; would be a good idea?

Again, thank you very much.

Evan Patton

unread,
Jun 5, 2017, 12:47:03 PM6/5/17
to App Inventor Open Source Development
Thanks for the heads up. We had updated this in the repository readme document. I've updated the Google Doc as well.

Cheers,
Evan

Francesco Montefoschi

unread,
Oct 5, 2017, 4:27:03 AM10/5/17
to App Inventor Open Source Development

Jos Flores

unread,
Oct 5, 2017, 5:26:14 AM10/5/17
to app-inventor-open-source-dev
Thanks, Francesco. I have modified the following two documents to
reflect the changes:

https://docs.google.com/document/d/1Xc9yt02x3BRoq5m1PJHBr81OOv69rEBy8LVG_84j9jc/pub
http://josmas.github.io/contributingToAppInventor2/#/

cheers,
José



On 5 October 2017 at 09:27, Francesco Montefoschi
Reply all
Reply to author
Forward
0 new messages