vagrant@ubuntu-bionic:/vagrant/appinventor$ ant
Buildfile: /vagrant/appinventor/build.xml
all:
init:
MakeWarLibsDir:
common_CommonUtils:
init:
CommonUtils:
common_CommonVersion:
init:
CommonVersion:
components_CommonConstants:
init:
CommonConstants:
WarLibs:
AiSharedLib:
AiServerLib:
components_AndroidRuntime:
common_CommonVersion:
init:
CommonVersion:
init:
HtmlEntities:
Barcode:
CopyComponentLibraries:
common_CommonUtils:
init:
CommonUtils:
CommonConstants:
AnnotationProcessors:
AndroidRuntime.uptodate:
AndroidRuntime:
AiClientLib:
AiRebindLib:
blocklyeditor_BlocklyTranslationGenerator:
CheckBlocklyTranslations:
init:
CheckBlocklyCompile:
BlocklyCompile:
[java] Exception in thread "main" java.lang.IllegalArgumentException: File not found at: /vagrant/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
/vagrant/appinventor/build.xml:16: The following error occurred while executing this line:
/vagrant/appinventor/build-common.xml:307: The following error occurred while executing this line:
/vagrant/appinventor/blocklyeditor/build.xml:121: Java returned: 1
Total time: 3 minutes 20 seconds
Does anyone know why this file isn't there? I've looked through the folders and there's no such path, nor is there one on github in the sources.
I tried compiling in sdk8 and sdk11, same error in both.
Thanks, that was missing. The compilation went on. But there's still something wrong:
vagrant@ubuntu-bionic:/vagrant/appinventor$ ant
Buildfile: /vagrant/appinventor/build.xml
all:
init:
MakeWarLibsDir:
common_CommonUtils:
init:
CommonUtils:
common_CommonVersion:
init:
CommonVersion:
components_CommonConstants:
init:
CommonConstants:
WarLibs:
AiSharedLib:
AiServerLib:
components_AndroidRuntime:
common_CommonVersion:
init:
CommonVersion:
init:
HtmlEntities:
Barcode:
CopyComponentLibraries:
common_CommonUtils:
init:
CommonUtils:
CommonConstants:
AnnotationProcessors:
AndroidRuntime.uptodate:
AndroidRuntime:
AiClientLib:
AiRebindLib:
blocklyeditor_BlocklyTranslationGenerator:
CheckBlocklyTranslations:
init:
CheckBlocklyCompile:
BlocklyCompile:
BlocklyTranslationGenerator:
CheckDocs:
BuildDocs:
[exec] Execute failed: java.io.IOException: Cannot run program "bundle" (in directory "/vagrant/appinventor/docs/markdown"): error=2, No such file or directory
[exec] Execute failed: java.io.IOException: Cannot run program "bundle" (in directory "/vagrant/appinventor/docs/markdown"): error=2, No such file or directory
CopyToBuildWar:
CheckYaClientApp:
YaClientApp:
[java] Compiling module com.google.appinventor.YaClient-dev
[java] Ignored 7 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.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.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] Compiling 1 permutation
[java] Compiling permutation 0...
BUILD FAILED
/vagrant/appinventor/build.xml:16: The following error occurred while executing this line:
/vagrant/appinventor/appengine/build.xml:622: Java returned: 137
Total time: 10 minutes 19 seconds
vagrant@ubuntu-bionic:/vagrant/appinventor$
The newest master needs 4G of memory to compile YaClientApp, so it's possible you may need to increase the RAM amount for the Vagrant file. We're planning to deprecate this approach in the long term since it tends to be much slower than compiling natively on your host system.
I have allocated 5GB of RAM to the virtual machine and still the same. VirtualBox does not allow more because my laptop only has 8GB. I need to look into the method of compiling on the host. Is this possible on Windows?
Yes. The minimal things you'll need are JDK 11. I use Temurin personally although I think OpenJDK has Windows builds (have it set JAVA_HOME accordingly). You'll also need a copy of Apache Ant available on your path. With those two you should be able to run ant to build everything except iOS (which you can only do on macOS).
I have another problem. I don't see changes on the server after making changes to the code. I turn off the server. I change the java sources in local files, save. I clean with ant clean, then compile with ant and start the server again. Everything is as after the first compilation. I don't understand.
Oh, ok. I think I also need to update companion on my phone...
What parts of the code are you changing? If you're looking at the ListView issue, unless you're changing the values of the annotations you're unlikely to need to recompile the web side of things. A new companion will need to be built (ant PlayApp) and sideloaded onto your Android device.