com.dynamo.cr/README.md
Defold Bob the Builder build system.
In general paths in bob are separated with forward slashes and paths do not have an end separator, i.e. /foo/bar instead of /foo/bar/
Caching of libraries is based on the Git SHA1, to the actual commit
First of all, follow the engine setup instructions and build the engine at least once, as well as Bob.
Download and install IntelliJ IDEA Community Edition from here: https://www.jetbrains.com/idea/download .
Start the IDE and on the initial welcome screen choose Open project. Navigate to Bob's source directory com.dynamo.cr.
In case there is a popup that detected maven/eclipse configuration and asks about it, just choose maven. It should make no difference. Open com.dynamo.cr.bob/build.gradle and run install task.
Open File -> Project Structure and in Project Settings -> Project add JDK 25
Make sure Compiler output specified
In Project Settings -> Modules -> Sources select com.dynamo.cr.bob/generated and com.dynamo.cr.bob/src folders and click Mark as: Sources
Select com.dynamo.cr.bob.test/src folder and click Mark as: Tests
Add com.dynamo.cr.bob as Resource Folder and com.dynamo.cr.bob.test/test
Select com.dynamo.cr.bob.test/build folder and click Mark as: Excluded
Change language level to 21 - Record patterns, pattern matching for switch
In Project Settings -> Modules -> Dependencies click + then 1 JARs or Directories... and choose com.dynamo.cr/com.dynamo.cr.bob/lib and com.dynamo.cr/com.dynamo.cr.bob.test/lib
If you see missing AWS SDK classes (e.g. com.amazonaws.services.s3), add com.dynamo.cr/com.dynamo.cr.bob/lib/aws as a dependency too. IntelliJ does not always pick up nested jar folders.
If you got Unknown command-line option '-b' error, then:
To be able to run single tests, change default template for JUnit tests:
Edit ConfigurationsEdit Configuration Template $MODULE_WORKING_DIR$/com.dynamo.cr.bob.test Once bob.jar has been built, it can be debugged with IntelliJ IDE.
A Run configuration has to be specified that will execute bob.jar. Set it up as if executing it on the command line.
From the Configurations dropdown on the top bar (next to the hammer) click Edit configuration to open the Run/Debug Configurations dialog.
Click Add new/JAR Application and set a proper name for it.
In the Configuration tab use the following settings:
Path to JAR - Absolute path to bob.jar. For example, /home/.../defold/com.dynamo.cr/com.dynamo.cr.bob/dist/bob.jarProgram arguments - Command line arguments given when executing bob. For example, --platform x86_64-linux distclean build --archive bundle --variant debug. It really depends on what parts of Bob's functionality you want to debug.Working directory - Path of a Defold project root, since the command line arguments tells bob to build a project.JRE - JVM used by Defold.Leave the rest of the fields empty and click "Apply".
Hit run/play or debug button to execute the Run configuration created. Check the console at the bottom for typical bob output. Next, browse bob's source code to set breakpoints, pause execution, check watches etc.