Release: Visual Studio Code. MonkeyC ConnectIQ Builder and Syntax plugin

Former Member
Former Member
Well I got really tired of a bunch of things. So I decided to do something about it. https://github.com/genecyber/connectiq-build

Right off the bat, I was tired of Eclipse. I wanted to use something else. I had just started testing out Visual Studio Code (based off of Atom-shell / Electron) and decided I wanted to give this a shot. Well it was a huge success.





Features:
• Build and launch in simulator.
• Deploy directly to device.
• Timestamp added to console output.
• Option to save simulator output to a file.
• console.log() method added.
• Watch view to see debug output on device while in use.
• Git & Diff integration.
• soon Step debugging.
• soon Visual View editor.
• soon In-line documentation and hints.
• soon Electron & Cloud9 support.
  • Holly s... It is exactly what I need:) Thank you!!!!! Yesterday I thought that it would be great to have possibility to code using Visual or Xcode.
    I am today using my Mac, so I will not check it, but next week I am leaving eclipse...:) If you will add code completion I will be in codings heaven:)
  • Nice. I absolutely hate Eclipse, so anything to get me away from it would be a huge win.
  • Former Member
    Former Member over 10 years ago
    Awesome! Breath of fresh air after absolutely dreadful Eclipse.

    Can't make it work though. Running example. Te only difference I see is that there is that Code has app-0.3.0 folder instead of app-0.1.0. Seeing next:
    Building
    Deploying to simulator
    removing source after compile
    copying source to build directory
    Copying
    building for device
    command
    -cp "c:\connectiq\connectiq-sdk-win-1.1.1\bin\monkeybrains.jar"; com.garmin.monkeybrains.Monkeybrains -a "c:\connectiq\connectiq-sdk-win-1.1.1\bin\api.db" -u c:\connectiq\connectiq-sdk-win-1.1.1\bin\devices.xml -o c:\Projects\connectiq\test\build\outgoing\out.prg -z c:\Projects\connectiq\test\build\incoming\resources\resources.xml;c:\Projects\connectiq\test\build\incoming\resources\strings.xml;c:\Projects\connectiq\test\build\incoming\resources\drawables\drawables.xml;c:\Projects\connectiq\test\build\incoming\resources\layouts\layout.xml -m c:\Projects\connectiq\test\build\incoming\manifest.xml -p c:\connectiq\connectiq-sdk-win-1.1.1\bin\projectInfo.xml c:\Projects\connectiq\test\build\incoming\source\WatchApp.mc c:\Projects\connectiq\test\build\incoming\source\WatchView.mc -d vivoactive


    c:\Projects\connectiq\test>java -cp "c:\connectiq\connectiq-sdk-win-1.1.1\bin\monkeybrains.jar"; com.garmin.monkeybrains.Monkeybrains -a "c:\connectiq\connectiq-sdk-win-1.1.1\bin\api.db" -u c:\connectiq\connectiq-sdk-win-1.1.1\bin\devices.xml -o c:\Projects\connectiq\test\build\outgoing\out.prg -z c:\Projects\connectiq\test\build\incoming\resources\resources.xml;c:\Projects\connectiq\test\build\incoming\resources\strings.xml;c:\Projects\connectiq\test\build\incoming\resources\drawables\drawables.xml;c:\Projects\connectiq\test\build\incoming\resources\layouts\layout.xml -m c:\Projects\connectiq\test\build\incoming\manifest.xml -p c:\connectiq\connectiq-sdk-win-1.1.1\bin\projectInfo.xml c:\Projects\connectiq\test\build\incoming\source\WatchApp.mc c:\Projects\connectiq\test\build\incoming\source\WatchView.mc -d vivoactive

    process exit code 0
    launching in simulator
    simulator started
    simulation started
    Complete

    c:\Projects\connectiq\test>monkeydo c:\Projects\connectiq\test\build\outgoing\out.prg

    process exit code 1
    process exit code 4294967295

  • Former Member
    Former Member over 10 years ago
    How I troubleshoot your problem is I open up a dos console and navigate to my project folder. I then run the batch file for building the app. This sill let you see build errors. I haven't caught them in my builder yet. Aside from that, I have had to take every file mentioned in your log file and verified it existed. If this is the demo project I might need to make some tweeks. Stay tuned.
  • Former Member
    Former Member over 10 years ago
    Yes, the issue is with plain demo project and it's the same as for other project which I know builds and runs correctly. I see simulator opening but without App. Wondering what does this code mean: process exit code 4294967295
  • Former Member
    Former Member over 10 years ago
    also did you do an npm install in the build folder?

    C:\repo\connectiq-build\example app layout\build [master +0 ~1 -0]> npm install
    npm WARN package.json [email protected] No README data
    [email protected] node_modules\fs-plus
    ├── [email protected]
    ├── [email protected]
    ├── [email protected]
    └── [email protected] ([email protected])

    [email protected] node_modules\fs-extra
    ├── [email protected]
    ├── [email protected]
    └── [email protected] ([email protected])
  • Former Member
    Former Member over 10 years ago
    Sure. You can see that everything runs correctly till:

    c:\Projects\connectiq\test>monkeydo c:\Projects\connectiq\test\build\outgoing\out.prg

    process exit code 1
    process exit code 4294967295
  • Former Member
    Former Member over 10 years ago
    have you verified that c:\Projects\connectiq\test\build\outgoing\out.prg exists?
  • Former Member
    Former Member over 10 years ago
    Yes. It's there, as well as out.prg.debug.xml.
  • Former Member
    Former Member over 10 years ago
    I pushed an update. But I'm not sure about your specific issue. Let me know. I think I now have it configured to leave batch files laying around so you can do things like build, and push to simulator yourself.

    Yes. It's there, as well as out.prg.debug.xml.