Setting up Eclipse for CIQ Development....

I set up a new/faster computer and migrated my Eclipse environment over to the new platform. I took some notes on the setup. This might help new people. I know Eclipse is no longer the preferred IDE, but I prefer it and it works. So leaving this here. I'll eventually move over to Visual Studio.

How to Install Eclipse for CIQ Development
1. Create folders on the new computer, such as:

  • GARMIN_CIQ
    • CIQ_Projects
    • Developer_Key
    • Export_Files
    • SDK Manager

2. Install Eclipse for Java Developers

3. Eclipse: Help - Check For Updates

  • apply updates, restart eclipse

4. Eclipse: Help - Install New Software - Add

5. Eclipse: Install the SDK Manager

  • Eclipse: ConnectIQ - SDK Manager
  • Download
  • Browser - Accept and Download for Windows
  • Extract the ZIP file into your SDK Manager folder (step 1)

6. Eclipse: Window - Preferences - Connect IQ

  • Uncheck Detect SDK Manager path automatically
  • Specify the correct path inc the EXE file name
  • Apply

7. Eclipse: ConnectIQ - SDK Manager

  • Run It, Login, Download the latest, set the latest to Current
  • Wait for all the Devices to also load/refresh

8. Eclipse: Windows - Preferences - Connect IQ - Compiler

  • Enter your Developer ID, Get this by:
    • Going to your Developer Dashboard
    • Clicking on an existing CIQ App you've uploaded
    • Click on "Edit Details"
    • Look at the URL string between "developer" and "apps"

  • Build Timeout: 0
  • NOTE: Developer Key will be inserted here later

How to Install Existing CIQ PRojects
1. Copy your Developer Key in the folder (step 1 above)

2. Copy your CIQ Projects in your Projects folder (step 1 above)

3. Eclipse: File - Open Projects From File System

  • Select Directory and all the project folders, but deselect the parent folder

4. If you have Barrels

  • Eclipse: Connect IQ - Export Wizard
  • Do for each Barrel
  • Output Directory - select your folder (see step 1 above)
  • Signing Key - point to your Developer Key file

5. Change Appearance (if Dark Mode is problematic)

  • Eclipse: Window - Preference - Appearance
  • Theme: Classic

6. Run a Project in the Simulator

  • Eclipse: Run - Run Configurations
  • Choose a Project
  • Choose a Target Device
  • Run (runs simulator)
    • Simulator - Run Activity Data
    • Start & Play (arrow)
  • I am unable to access the https://download.eclipse.org/eclipse/updates/4.32, I have tried to toubleshoot the laptop and Eclipse with no luck, could you please share a downloable version?

  • Use VSC.  eclipse has not been maintained for years, and Garmin hasn't supported it for almost as long.

  • Use VSC.  eclipse has not been maintained for years, and Garmin hasn't supported it for almost as long.

    I agree that VS Code is the best choice for CIQ development (and I think Eclipse is terrible in general), but it's absolutely wrong that "eclipse has not been maintained for years".

    [https://en.wikipedia.org/wiki/Eclipse_(software)]

    (Oddly enough, when Garmin was making the transition years ago, you argued that VS Code sucked and Eclipse was great, even though Eclipse had already been stagnant for years, and VS Code was the number one IDE in the world. I seem to recall you saying the VS Code reminds you of editors from the 90s and that Eclipse was much more "modern", despite the fact that VS Code already had several features that basically no editor had before ~2010, but Eclipse was stuck in the early 2000s.)

    I def wouldn't use Eclipse for anything unless I was forced to. Even outside of VS Code, there are better alternatives (depending on what kind of project you're working on)

  • CIQ for Eclipse hasn't been maintained for years

    I still think VSC sucks. I only use it for CIQ.   I have more trouble with it than anything else on my system.  But it's the only game in town for ciq.  

  • CIQ for Eclipse hasn't been maintained for years

    If that's what you meant, that's what you should've said, especially when the topic is "Setting up Eclipse for CIQ Development". In the context of this thread, Eclipse clearly means the Eclipse IDE, and not the Connect IQ Eclipse plugin.

    Same as if I say "VS Code", I mean the VS Code editor, and not the VS Code CIQ extension.

    It also makes little sense in the context of your original statement: "eclipse has not been maintained for years, and Garmin hasn't supported it for almost as long"

    Let's replace "eclipse" with "CIQ for Eclipse":

    "CIQ for Eclipse has not been maintained for years, and Garmin hasn't supported it for almost as long"

    Taken at face value, this statement would imply that it was possible for Garmin to support CIQ for Eclipse without maintaining it, and that they did so for a short period of time? What would that kind of "support" look like? Usually "support" and "maintenance" are used synonymously, in the context of software.

    The fact that you mentioned Eclipse not being maintained first, then mentioned Garmin support afterwards kind of suggests that Garmin support for Eclipse is separate from Eclipse maintenance in that sentence, which also suggests you meant the Eclipse IDE and not the CIQ plugin.

    You could just admit you were wrong.

    I still think VSC sucks. I only use it for CIQ.   I have more trouble with it than anything else on my system.  But it's the only game in town for ciq.  

    You could edit your code in Eclipse and build from VS Code, the command line, and/or your own custom scripts. We've had posters who use linux and edit Monkey C code using vim. I know, you're going to say that the command line is a relic of the 70s. That may be true, but it's enjoyed a renaissance since the 2010s, and it isn't going anywhere (for devs.) The worst IT person I've worked with did everything exclusively in the UI and had no idea how to use scripts. Certain tasks which should've taken 30 minutes (with zero supervision) ended up taking 2 days (with constant babysitting.)

    I think you'd be very hard pressed to convince anyone who was starting development today (having zero exposure to any IDE or text editor) that Eclipse is better than VS Code. But that's just my opinion. And in most professional circles, Eclipse is seen as a joke, and nobody uses it unless they have to.

    But at least you're consistent in your opinions. I almost thought you might've changed your mind over the years.

    I actually once thought Eclipse was ok (years ago when I used it for work), even though I had to wrestle with various problems on the daily (I often switched to other editors just to do certain simple tasks which were too slow in Eclipse.) Now I'll use anything besides Eclipse (VS Code, Intellij, Visual Studio, Sublime Text, notepad++, nano or vim.)

    • Thanks for the thorough reply, then I'm definitely better off starting with VSC, I am just getting into programming and my goal is to be able to develop Garmin watch apps and faces, any recommendations for training resources? 
  • any recommendations for training resources? 

    I haven't looked at them myself, but this series of intro videos might help: https://code.visualstudio.com/docs/getstarted/introvideos

    Personally I learned VS Code just by using it, but I was already a dev at that point.

    As far as Connect IQ goes, I would read the developer docs (https://developer.garmin.com/connect-iq/connect-iq-basics/getting-started/) and play with the SDK samples (open the VS Code command palette with CTRL/CMD-SHIFT-P and search for "Monkey C: Open Samples Folder".)

    There's also this Connect IQ video made by Garmin in 2022: [https://www.youtube.com/watch?v=Px0x37Yhxi4]

  • i have the same problem. pls can someone fix this