VS Code start simulator ends in error 100

Hello,

I try my first steps with develop for garmin. I setup vs code on windows and create a demo project and set a device. When I start to run my code, it ends with error 100.

> Executing task: C:\Program Files\Microsoft\jdk-11.0.12.7-hotspot\bin\java.exe -Xms1g -Dfile.encoding=UTF-8 -Dapple.awt.UIElement=true -jar c:\Users\renes\AppData\Roaming\Garmin\ConnectIQ\Sdks\connectiq-sdk-win-4.1.0-Beta-1-2021-10-12-7c7239d96\bin\monkeybrains.jar -o bin\garmin-demo.prg -f d:\dev\monkeyc-demo\garmin-demo\monkey.jungle -y d:\dev\monkeyc-demo\developer_key -w -d vivoactive4_sim <

ERROR: vivoactive4: D:\dev\monkeyc-demo\garmin-demo\source\garmin-demoApp.mc:5,12: mismatched input '-' expecting {'extends', '{'}
ERROR: vivoactive4: D:\dev\monkeyc-demo\garmin-demo\source\garmin-demoApp.mc:21,15: no viable alternative at input '[newgarmin-'
ERROR: vivoactive4: D:\dev\monkeyc-demo\garmin-demo\source\garmin-demoApp.mc:21,17: no viable alternative at input 'newgarmin-'
ERROR: vivoactive4: D:\dev\monkeyc-demo\garmin-demo\source\garmin-demoApp.mc:21,39: mismatched input ']' expecting {'[', '.', ';'}
ERROR: vivoactive4: D:\dev\monkeyc-demo\garmin-demo\source\garmin-demoApp.mc:29: extraneous input '}' expecting {<EOF>, 'class', 'module', 'using', 'import', 'alias', 'typedef', 'public', 'private', 'protected', 'hidden', 'static', 'const', 'native', 'var', 'enum', 'function', '('}
ERROR: vivoactive4: D:\dev\monkeyc-demo\garmin-demo\source\garmin-demoApp.mc:31,27: mismatched input '-' expecting {'{', ';'}
ERROR: vivoactive4: D:\dev\monkeyc-demo\garmin-demo\source\garmin-demoApp.mc:32,32: mismatched input 'as' expecting {'class', 'module', 'public', 'private', 'protected', 'hidden', 'static', 'const', 'native', 'var', 'enum', 'function'}
ERROR: vivoactive4: D:\dev\monkeyc-demo\garmin-demo\source\garmin-demoView.mc:7,12: mismatched input '-' expecting {'extends', '{'}
ERROR: vivoactive4: D:\dev\monkeyc-demo\garmin-demo\source\garmin-demoView.mc:65: extraneous input '}' expecting {<EOF>, 'class', 'module', 'using', 'import', 'alias', 'typedef', 'public', 'private', 'protected', 'hidden', 'static', 'const', 'native', 'var', 'enum', 'function', '('}
WARNING: The launcher icon (30x30) isn't compatible with the specified launcher icon size of the device 'vivoactive4' (35x35). Image will be scaled to the target size.
WARNING: vivoactive4: No supported languages are defined. It's a good idea to indicate which languages you are supporting.
The terminal process "C:\Program Files\Microsoft\jdk-11.0.12.7-hotspot\bin\java.exe '-Xms1g', '-Dfile.encoding=UTF-8', '-Dapple.awt.UIElement=true', '-jar', 'c:\Users\renes\AppData\Roaming\Garmin\ConnectIQ\Sdks\connectiq-sdk-win-4.1.0-Beta-1-2021-10-12-7c7239d96\bin\monkeybrains.jar', '-o', 'bin\garmin-demo.prg', '-f', 'd:\dev\monkeyc-demo\garmin-demo\monkey.jungle', '-y', 'd:\dev\monkeyc-demo\developer_key', '-w', '-d', 'vivoactive4_sim'" terminated with exit code: 100.

Terminal will be reused by tasks, press any key to close it.

Anyone try to setup this on windows + vs code?

  • ERROR: vivoactive4: D:\dev\monkeyc-demo\garmin-demo\source\garmin-demoApp.mc:5,12: mismatched input '-' expecting {'extends', '{'}

    When you see a line like this it indicated there is a problem in the code you are trying to compile.  In this case in garmin-demoApp.mc, at line 5.

    This is really something for the discussion forum and not showcase

  • You are right. How can I delete my post?

    I thought when I create a init project, that this is running out of the box.

    My fault.