Ticket Created
over 3 years ago

WERETECH-11158 (SDK Manager not working in Ireland)
WERETECH-11159 (Spaces in path break simulator)

SDK Manager error

Hi,

Since the SDK 4 was released, I was having issues making my watch faces work on the Venu 2 using the new SDK. I got past the createBuffer part with the help of the SDK announcement thread, but after that was solved, I was still getting errors like setColor not being recognized, which was very weird. So I decided to start using VSCode to see if it would make any difference to those weird errors.

So first I tried leaving Eclipse installed and go about the process of getting VSCode set up. I made a copy of my Eclipse project to another folder and was able to open this as a VSCode project. I installed the plugins, configured the MonkeyC settings and ran the simulator, apparently with no issues whatsoever. However, I started to make changes to my code and they were not showing up on the simulator, like the simulator was still running Eclipse's version of my code. Then I decided to create a new watch face project from scratch in VSCode and when I ran it, it was still running my old project from Eclipse somehow? It's like the data from VSCode was not being sent to the simulator and it was still running whatever it had in cache/memory from Eclipse.

Then, my next try was deleting Eclipse (including * ~/eclipse, * ~/.eclipse and * ~/.p2) and the SDK manager (including Garmin folder in AppData/Roaming where the SDK and devices are downloaded to) completely, to start everything from scratch. Sadly none of those have uninstalls in "add or remove programs", so I deleted them manually, all the folders that I could find. I downloaded the SDK files from Garmin again (just in case they've been updated) and extracted the files from the zip to a different folder location.

The problem is that now my new SDK manager installation is not opening at all. I can go through the whole login, terms and automatic/manual update set up, but after that, the below pop-up error is being presented on the SDK download screen:

lZ1LZGk.png (397×483) (imgur.com)

If I click the Yes button, it closes the SDK manager. If I click No or Cancel, then it's as if the SDK manager was not communicating to VSCode again and I'm still not able to send data to the simulator. I think my SDK manager might have been with some kind of problem for a while and that is making VSCode not communicate correctly with it.

How can I completely remove SDK manager from my computer to really start from scratch and get rid of this error? Is there some kind of registry entry that also needs to be removed?

Thanks!

  • :sigh:

    "WERETECH-11158 (SDK Manager not working in Ireland)"

    Grrr.

    Disappointed of Dublin, Ireland

  • I didn't see this bug before creating a new ticket: (+) Install and run SDK Manager fails horribly. - Connect IQ Bug Reports - Connect IQ - Garmin Forums

    But I cannot get CIQ4.0.1 now (I had it previously, but cannot now get it). 

  • Hi and , today I had the brilliant ID to use a free US VPN to test the SDK Manager, since Travis mentioned that it is working for him in the US. And guess what?

    So you guys do have a problem with the server in Ireland (or West Europe, not sure where the server is). I'm also not sure why the thread was marked as completed though, since this issue is still there Confused . Free VPNs are so slow that it takes ages to download the SDK, but at least I finally got it and we now know that your server has some kind of issue with my region.

    I did try an Irish VPN and was getting the same error message that I had without any VPN at all.

  • As soon as I replaced the space by an underscore, the simulator started to run correctly.

    This is something that bites us pretty often. We really need to add some sort of test to verify everything works when there are spaces (the SDK install path, the project path, ...). It would save everyone a lot of trouble.

    I still cannot download either SDK 4.0.1 or 4 preview 1

    I'm going to talk to on Monday morning to see if he might be able to help figure out what is going on. I don't know if there are other developers in Ireland that are having the same problem and just not mentioning it or if it is isolated to your account.

    > Any idea on when 4.0.2 will be released..

    No, honestly I do not know. Even if I did I probably couldn't say.

    > ..or if there is any way that I could manually download the SDK (without the manager)?

    We don't want to make this a thing moving forward. There is an official way to get the SDK and it requires authentication that is done by the SDK manager. That said, I'll bring this up with Kyle in the morning. If we can't figure out what the problem is or how to get a fix, we'll get something going for you.

  • , finally figured out what was wrong: One of the folders had a space on its name and this was causing VSCode to not send the code to the simulator. I really spent the whole day trying to figure out what was the difference between my VM and the VSCode install on the actual machine, and realised that the only difference was the path of the code folder. Not the project folder itself, but one folder before that. 

    As soon as I replaced the space by an underscore, the simulator started to run correctly. I then had another issue with one of my projects about an error on a commented row, but solved that by deleting the files on the bin folder and building the project again.

    Now the only final issue that I have (not related to VSCode, since I also have it in Eclipse) is that I still cannot download either SDK 4.0.1 or 4 preview 1, so can't start learning it or update my apps Slight frown . Any idea on when 4.0.2 will be released or if there is any way that I could manually download the SDK (without the manager)?

    Since both 4.0.1 and 4 preview 1 are having the same issue, I'm assuming that the SDK manager might be getting confused with the internal version numbers and not knowing which file to download from server? But that's just my guess Stuck out tongue