Need help installing Visual Studio with SDK 8

Dear all,

Please, please help me.

I am so very frustrated by the Garmin Programming "interface".

I have written several programs, used by several thousand people. Some ask me to add a feature. I know that "program-wise" this is easy, but I also know it will take me weeks to found out how it works with Garmin. Pff.

So I have a new windows 11 laptop. I have a user with administrator rights.

I have installed Java (1.8.0). I have installed Visio Studio Code (1.103.2). I have installed Monkey C in visual studio code. I have downloaded and started the SDK manager.

With all versions of ConnectIQ BELOW 8, for example 7.4.3, I get no error messages, verification of installation of Monkey C checks "ok". BUT, the simulator starts with an empty screen and I can only test/build for old devices (edge 1030).

When selecting ConnectIQ 8.1.0 until 8.2.3, I get several error messages: "Monkey C Language Server client: couldn't create connection to server". And I am completely stuck.

Have searched how to solve this, have reinstalled, but get the same.

So, I can not even start helping people, (again) I am stuck just how to use the bloody (sorry) tools.

Can someone please give me a guideline?

  • maybe it is not the same thing but I got this kind a message because I did not use the right Java.

  • I've been using this java for years with many different SDKs on win11 including the latest.

    openjdk version "17.0.2" 2022-01-18
    OpenJDK Runtime Environment (build 17.0.2+8-86)
    OpenJDK 64-Bit Server VM (build 17.0.2+8-86, mixed mode, sharing)

  • Thank you both, that was it!!

    I had Java 8, build 461.

    Now running with JDK24 no error messages anymore!

    Only simulator is showing only part of a second, then window is empty, I get a popup window that says: Download an application to open ms-gaming overlay..???

    But without simulator I can at least make some simple adjustments that I will test on my own device.

    Thanks again for the quick replies, you made my day :-)

  • I have just setup a new Windows 11 PC and used this same latest version of Java without any trouble:

    java version "1.8.0_461"
    Java(TM) SE Runtime Environment (build 1.8.0_461-b11)
    Java HotSpot(TM) 64-Bit Server VM (build 25.461-b11, mixed mode)

    Same version of VSCode 1.103.2 and Monkey C extension 1.1.2 

    I can build and run any version of CIQ 8.x and 7.x without seeing these problems.

    Make sure you stop the simulator before switching SDK versions since there are often incompatibilities between different simulator and SDK versions. But in principle, the versions you were using are working for me.

  • Simulator is still not working :-(

    Have tried Java 24 and 21, no difference.

    Simulator starts, window appears, a quick flash of the device and directly blank/grey window.

    I cannot select a different datafield layout, that is "invalid". But I can select and adjust "application data properties".

    Any ideas?

  • Have you tried starting the simulator from a cmd window? It may give some output which could give a clue when it fails.

  • Remaining problem: simulator starts, but shows the device only very short, then the simulator window is grey.

    So, I tried from a command window. No error message. I asked Chatgpt to help. Installed JavaFX. Didnt help.

    Updated GPU drivers (have a Dell laptop), didnt help. Deleted simulator.ini file, didnt help. Checked for duplicate Java installations, there was just one.

    The only odd thing is that Chatgpt assumes the Garmin ConnectIQ directory is in AppData\Local, but by me it is under AppDaqta\Roaming.

    So, it would be super if someone can help me out. I would really like to start programming again.

    Perhaps I should start a new thread, because everything else works, only the simulator window gets grey.

  • So, I tried from a command window. No error message. I asked Chatgpt to help. Installed JavaFX. Didnt help.

    Updated GPU drivers (have a Dell laptop), didnt help. Deleted simulator.ini file, didnt help. Checked for duplicate Java installations, there was just one.

    The only odd thing is that Chatgpt assumes the Garmin ConnectIQ directory is in AppData\Local, but by me it is under AppDaqta\Roaming.

    Let me get this straight:

    - ChatGPT told you to install JavaFX and it didn't help. For the record, no human being would have ever given you this advice, so it was just a waste of your time.

    - After that, ChatGPT told you something else that was incorrect (the location of the ConnectIQ directory), and you think it's "the only odd thing", as if you still think ChatGPT always tells the truth, despite direct evidence to the contrary?

    It's weird how ppl treat ChatGPT as some kind of infallible authority when it proves itself to be wrong, over and over again.

    You talk about ChatGPT as if it's some kind of expert person that knows stuff, and as if it should be a huge shock when it tells you something that isn't true. But it's not a person, and it shouldn't be a shock when it spouts nonsense.

    The only odd thing is that Chatgpt assumes the Garmin ConnectIQ directory is in AppData\Local, but by me it is under AppDaqta\Roaming.

    No human being would've told you ConnectIQ\ is in AppData\Local, either, unless they're the type of person that just likes to make stuff up or to rely on memory without double checking. But in the latter case, they would've probably at least said "I'm not sure, but..."

    For the record, you can find the location of the Connect IQ directory for all platforms here:

    https://developer.garmin.com/connect-iq/reference-guides/monkey-c-command-line-setup/

    Windows: %APPDATA%\Garmin\ConnectIQ\

    Mac: $HOME/Library/Application Support/Garmin/ConnectIQ/

    Linux: $HOME/.Garmin/ConnectIQ/

    Chatgpt assumes

    ChatGPT doesn't "assume" anything. It doesn't think, reason or have any knowledge (in the way that we think of it *), nor does it have a personality.

    It's just spicy autocomplete. If it seems like sometimes it makes stuff up, that's because that's exactly what it's designed to do, all the time. It just so happens that a lot of the time, the stuff it makes up coincides with reality.

    (*) it has no concept of truth or reality. It just knows how to predict the most likely text, based on your prompt. Crucially, it doesn't know what it doesn't know (because it doesn't know anything). How many times have you asked ChatGPT a question and gotten the answer "I don't know" or "I'm not sure"? Very rarely, right? Most people can at least assess whether they actually know the answer to a question or not. ChatGPT just makes stuff up, in all cases.

  • the simulator window gets grey.

    I found a few possible answers to your problem with one search:

    https://www.google.com/search?q=grey+simulator+window+connect+iq 

    https://forums.garmin.com/developer/connect-iq/i/bug-reports/simulator-does-not-work-with-the-most-basic-example-setup-from-the-docs 

    https://forums.garmin.com/developer/connect-iq/f/discussion/246129/connect-iq-device-simulator---not-working-empty-window 

    https://forums.garmin.com/developer/connect-iq/i/bug-reports/simulator-don-t-work-empty-gray-screen 

    - either enable hyper-v or disable hyper-v. Yeah, that's ridiculous, I know

    - "I had similar issues and it was caused by F-Secure antivirus software even though logs didn't indicate it. Adding a new exclusion rule for location C:\Users\<USERNAME>\AppData\Roaming\Garmin\ConnectIQ\Sdks in the antivirus software settings fixed the problem for me."

    - "after a lot of pain i ended up fixing the previous three times but it simply returns and i still don't catch the solution.
    all i know is that if somehow i induce windows to prompt for firewall allowance for simulator.exe again it gets fixed. but then soon after it gets broken again."

    I can tell you that the Monkey C extension does use network sockets to talk to the simulator, so the idea that antivirus software or the windows firewall might be blocking communication with the sim does make sense.

    For the record, the simulator listens on local port 1234 for communication, so if you have another app / service that uses the same port, that would be a problem.

    In your case, it seems like it works for a split second, then fails, so something else is probably going on.

    If you're unable to get it to work, I suggest opening a CIQ bug report, or adding a comment this bug report (it's kind of old though):

    https://forums.garmin.com/developer/connect-iq/i/bug-reports/simulator-does-not-work-with-the-most-basic-example-setup-from-the-docs 

    I know that "program-wise" this is easy, but I also know it will take me weeks to found out how it works with Garmin. Pff.

    Getting stuff like this to work, as well as learning new platforms/frameworks, is just as much a part of software development as the part where you write code.

    I don't claim that Garmin makes it easy though.

  • Ok, flowstate, thank you for your extensive replies.

    I am aware of the ChatGPT limitations, but sometimes it helps. Most of the time I am the one telling others exactly what you tell me, so you have me turned purple.. :-)

    I had already searched the web and tried the hyper-v and checked the port/firewall. Those did not help.

    Since my windows11-username contains both a space and a non-standard character, I thought I'd test on a new username.

    Created a short and simple username with admin rights, installed VScode, SDK, devices, Monkey C. Tested with a simple app and now I get a popup:

    -> Download an app to open this ms-gamingoverlay link; your pc does not have an app to open this link. Search a compatible app in the Microsoft Store. [Button: Search in Microsoft Store].

    Pressing the button gives no results in the store.

    I guess it is the Xbox gaming app. Tried to reinstall, but still get the popup.

    When searching the web (myself, no Chatgpt help), I get several solutions to prevent getting the popup, but I want to be sure I do it right.

    Could this be the cause? What would be the solution?