Hi there, I’m looking for some help setting up a build-system for MonkeyC development. I’m working from Linux Mint. Sublime Build 4169.
Garmin officially recommends VSCode but I’m not a huge fan. I have Terminus systems in place for C++ and Java development (thanks to Odatnurd’s very helpful youtube videos). However I’m having trouble getting the system to launch the garmin watch simulator. Here’s how my build-system is currently set-up:
{
"target": "terminus_open",
"cancel": "terminus_cancel_build",
"post_window_hooks": [["carry_file_to_pane", {"direction": "right"}]],
"focus": true,
"title": "MonkeyC Build Results",
"auto_close": false,
"timeit": true,
"shell_cmd": "env > /tmp/sublime_env.log && export PATH=$PATH:/home/username/.Garmin/ConnectIQ/Sdks/connectiq-sdk-lin-7.2.0-2024-06-06-6c7d3f915/bin && monkeyc -o bin/output_program.prg -m manifest.xml -z resources -f monkey.jungle -d simulator && connectiq --launch bin/output_program.prg",
"file_regex": "^(..[^:]*):([0-9]+):?([0-9]+)?:? (.*)$",
"working_dir": "${project_path}",
"selector": "source.monkeyc",
"variants": [
{
"name": "Run",
"shell_cmd": "connectiq --launch bin/output_program.prg"
}
]
}
I have the MonkeyC package installed via Package Control (https://github.com/pzl/Sublime-MonkeyC)
Launching the Garmin ConnectIQ application does work from the terminal as well as from VSCode. (this is why I am trying to explicitly define the path to the garmin SDK in the shell_cmd field, but it’s not working. It generates a bash error:
bash: connectiq: command not found
Any help would be very much appreciated!
Thanks