Simulator does not reflect current changes

When I make changes in my code, I may get the same error message in the console, on a line that is now removed, or commented out or fixed, unless I sent the code to the simulator 3-4 times. Another example: change in a color or a date/time format, I have to run it in the simulator 3-4 times before I see any actual change.

Any ideas? This is on w7 btw.
  • I've been seeing the same thing in the last couple of weeks.

    I'm on Windows 10, Eclipse Mars, SDK 1.2.6.

    I seems to happen randomly. Sometimes it works on the first try. Other times I have to save, run, make a new change, save again, then run again. I have not tracked down a sequence to make the problem happen or prevent it consistently.

    It does add an extra level of confusion on debugging.
  • I seem to recall that this was happening with an earlier version of the Eclipse Plugin for CIQ.

    In Eclipse, go to "help>Installation Details". The current plugin is also 1.2.6

    There is "Connect IQ IDE" and "Connect IQ SDK Manager.
  • There is "Connect IQ IDE" and "Connect IQ SDK Manager" both on 1.2.6. What do you mean?

    It seems that the pattern is that any changes will reflect on the 2nd try. I even picks up errors on blank lines. On the 2nd run it goes through the code as it should.
  • Former Member
    Former Member over 9 years ago
    I'm having the same issue. Working in a Windows 10 machine with Eclipse Luna and SDK 1.2.6. I have to delete de 'sys.nfm' file in the bin folder, each time to start with a fresh emulator state. Really annoying!
  • You might try closing the simulator and then executing the following command in a command prompt (windows)

    C:\>rmdir /s /q %temp%\garmin


    The simulator will recreate the folder the next time you start it.

    Travis
  • I've seen cases where I have something running in the sim, and build a new version in Eclipse but get an error during the compile, and what's already running in the sim just keeps running. Is this what you're seeing? With things like watchfaces, you may not notice that it's not running the new version, and with an error, you may not see there was an error unless you look at at the proper console log in Eclipse. It could be there's an error outside the .mc, but in one of the .xml files for resources. To be sure you see the current code in the sim, "Ctrl-K" in the sim to stop what you are running before the compile.
  • I've seen cases where I have something running in the sim, and build a new version in Eclipse but get an error during the compile, and what's already running in the sim just keeps running. Is this what you're seeing? With things like watchfaces, you may not notice that it's not running the new version, and with an error, you may not see there was an error unless you look at at the proper console log in Eclipse. It could be there's an error outside the .mc, but in one of the .xml files for resources. To be sure you see the current code in the sim, "Ctrl-K" in the sim to stop what you are running before the compile.


    Hi Jim,

    Nope, I get this problem even with the simulator exited. I make a change and save it and then start the simulator. It runs the version prior to the change. I exit the simulator. Make a small change like add and delete a character, save again. Then start the simulator and it runs the version I wanted.

    It doesn't have this problem all of the time though. Sometimes it works after the first save.
  • You might try closing the simulator and then executing the following command in a command prompt (windows)

    C:\>rmdir /s /q %temp%\garmin


    The simulator will recreate the folder the next time you start it.

    Travis


    Thank you Travis, you are a treasure!