Compiling

Once a project is created and schemas are added, the schemas may be compiled to generate source code and related files.

Note

A target language must be selected for the project prior to compiling. To set the target language, navigate to Project > Project Settings > Output tab, and make a selection from the Application Language Type section.

Click Compile from the toolbar or navigate to Tools > Compile. Upon compilation, a success or failure message is returned in the Error Log.

Note

Upon clicking Compile, if any files have unsaved changes, a dialog box is displayed to prompt the user to save the files.

After compilation, changes can continue to be made to the schema and to the project settings. Recompilation can be done as needed.

On Mac systems if Go code is being generated, sometimes an error message is displayed saying the "go mod init" command failed. This error message is caused by the location of the "go" command not being in the PATH that is used for GUI applications (which can be different from the PATH used for command shell sessions). This problem can be fixed by executing the following command (as an example) from a Terminal session on the Mac and then rebooting:

sudo launchctl config user path /usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin
  

For this example /usr/local/bin is the location of the "go" command, and the other directories are the other locations that need to be in the PATH. The command will need to be adjusted accordingly for specific Mac systems.