Eclipse to VSC?

Is CIQ/MonkeyC development generally stable and full-featured in Visual Studio Code? What (if any) features are still missing? When SDK 4 comes out of preview mode, will VSC support it at the same time as Eclipse?

Looking forward to making the switch, but will wait until it is ready.

Thanks!

  • Hi Jim. That is using 4.1.3, with the installation verified.

    Eclipse, I can build, run the sim, export to device, and could export wizard up until today ( no longer ) .  ... in VCS it throws these errors I have never seen before.... unknown strings... I have no idea what or where they are coming from.

  • You need provide us more details ;)

  • I'm using the very latest Eclipse on Windows 10, with the latest SDK (4.1.3), and I just compiled my CIQ datafield updates, ran the simulator, tested the changes, exported the code and uploaded to the Garmin store. All perfectly fine.

  • Are you using the latest Garmin Monkey C Extension?  There's an old, non-garmin extension.  Don't use that

  • Ok maybe it's in how i did it. In eclipse, I grabbed the folder containing my application, and dragged it onto my desktop, then checked and indeed all the sub folder and files had been copied across also. In Visual Code I selected Open File and pointed into that same folder, and then in the left side I get a similar program folder structure view to exlipse.

    I then click on the WORKSPACE, and I can see my folder and sub folders there, I right click on the top folder level and say Build current project,  select a watch, and then the terminal gives a bunch of warnings and a few errors. 

    In the Problem tab I get -  one talking about deu language is not supported in a monkey barrel and any of those language specific recourses will not be processed. ( this is a warning )

    Then above that it says 

    unknown

    [{
    "resource": "/unknown",
    "owner": "monkeyc",
    "severity": 8,
    "message": "For input string: \"@strinitialize_87109108816\"",
    "startLineNumber": 1,
    "startColumn": 1,
    "endLineNumber": 1,
    "endColumn": 2147483647
    }]

    If I click on the error, then VCS says The editor could not be opened because the file was not found... create file ??

    The last line in terminal says The terminal process ......... terminated with exit code 100.

  • I mean.... it says version 1.0.5?   and says last updated 12/5/22?

    I only have monkey C language support extension and that is it.

    Do I need to install any others?

  • Ok, it seems the problem did have something to do with how I dragged and dropped the app. Instead I pointed the application into the Eclipse workspace folder, and that removed the error above, and now I get an erro in the Simulator initialization about failure to load buttons

    18:59:09: can't open file 'c:\Users\ ......aming\Garmin\ConnectIQ\Sdks\connectiq-sdk-win-4.1.3-2022-05-10-b3aaee541\bin\icons8-play-48.png' (error 2: The system cannot find the file specified.)
    18:59:09: Failed to load image from file "c:\......ing\Garmin\ConnectIQ\Sdks\connectiq-sdk-win-4.1.3-2022-05-10-b3aaee541\bin\icons8-play-48.png".

    File does not exist?

    It is parts of the simulator graphics, like when I open data playback, the play button is missing and it has a grey box without the PNG play triangle..

    If I do want to build the app for export, how exactly do I do that?

    I have already prepared it in eclipse, all I need to do now is in eclipse open export wizard and make the app..

    Also does this sound like something I could do..... make modifications in eclipse, and then export the package in vscode? Or might that be asking for trouble?

  • Sounds to me you're not adding the project to your workspace correctly.  For me, I use the exact same files in Eclipse and VS Conde.  No copies  When starting vs code, I see this with an empty workspace:

    Then use "open folder" to get one of your CIQ projects.

  • Yep, thanks that has sorted it.   Do you know if there is a way to export the program ready for Garmin App store?

    Build program appears to want you to select a device, where as my app has been written for multiple devices?

  • You EXPORT to the store, which builds all the device support files. You BUILD for a single device to side load.