Monkey C building for device never completes

Hi

I haven't touched CIQ in a year and I am going back over an old project. So a year ago everything worked, I could build and debug very quickly, but I can no longer get my project to start

No errors, but the fans on my laptop go to Max very quickly, and then just 'spins' with 'Monkey C: building for device....' this never completes even if I wait hours but throws no errors.

If I start a new project, for example use the Wizard to create a simple datafiled everything works, emulator and debugger lauunches, so I am assuming it's not a setting issue.

So basically I get here then no output at all..

'Executing task in folder xxx-xxx: c:\Program Files\Java\jre1.8.0_333\bin\java.exe -Xms1g -Dfile.encoding=UTF-8 -Dapple.awt.UIElement=true -jar c:\Users\md\AppData\Roaming\Garmin\ConnectIQ\Sdks\connectiq-sdk-win-6.2.0-2023-05-26-cc5fddb5d\bin\monkeybrains.jar -o bin\xxx-xxx.prg -f e:\mysource/Export\xxx-xxx\monkey.jungle -y e:\Users\mykey\developer_key -d epix2_sim -w'

So in a netshell, products created by the wizards will build, nothing else will. Same issue on random examples I pullted from Github.

I have added the folder to the workspace. I am doing something stupid, but with no error messages it's hard to see what!

  • You could try using a newer JRE. In the past I had problems with slow builds when using an old JRE, although I've never seen the build spin forever.

    I like to use Adoptium/Temurin 17: https://adoptium.net/ (Latest LTS Release)

  • Thank you, I will try that - the build I start when I posted this 45 minutes ago is still spinning so anything is worth a shot.

    I don't understand it really, as something new created with the wizards builds within 2 or 3 seconds,then launches the simulator,! Its just my old project or anything else's that won't build! 

    EDIT: That seems link seems to mention Eclipse? I am using Visual Studio code it it makes a difference

  • It's just a distribution released by Eclipse. For more information how to choose a JDK, see: https://whichjdk.com/

  • Does it matter that I am not an Eclipse user?

    I think its something weird with my setup

    If I use the New Project to create a say a Datafield called 'Test' it will be build.

    But If I remove the workspace, and readd the exact same folder to that workspace the New Project wizard created seconds before, it won't build....! 

    So anything that is imported or Added to the Workspace fails, but if I create a  New Project, then copy in the files from the previous it will built.. I can see what is triggering failure, but not why!

    I literally just want to change 3 lines of code, but can't even get it built without literally starting it as New Project..

  • It doesn't matter if you're an Eclipse user or not. Do you have a minimal project sample that fails which you can share?

  • Do you have a minimal project sample that fails which you can share?

    My side literally anything I import (not created with New Project) fails. The most simple thing. Like a simple data filed created as 'Test' - it will build, launch. The I remove it from the workspace, re-add it, and then it won't.

    Even a fresh project that will build if it was created as New Project, fails to build literally seconds if it removed from the workspace then reimported again with Add Folder Workspace - no files have changed in the folder.

    That suggests to me that New Project is probably creating or adding a path somewhere that Add Folder to Workspace is missing. I can't think what else it can be tbh. 

  • Can you tell us which Connect IQ SDK version and VS Code extension version you're using?

  • 6.2.0 SDK (actually trying to add support for the newest watches)

    VS Monkey C extension is 1.0.9

  • Hi, I have this same problem. Did you resolve it?

  • Check if you have Java installed