Acknowledged
CIQQA-3531

Issues with Monkey C Language Server in Visual Studio Code for Garmin Development

I am encountering persistent issues while trying to develop with Monkey C in Visual Studio Code for Garmin Connect IQ. Below are the details of the errors and the steps I have taken so far:

  1. Error Messages:

    • "Failed to load SDK supplementary files: null."
    • "Server initialization failed. Message: Pending response rejected since connection got disposed. Code: -32097."
    • "Connection to server got closed. Server will restart."
    • "Monkey C Language Server client: couldn't create connection to server."
    • "Server process exited with code 0."
    • "The Monkey C Language Server crashed 5 times in the last 3 minutes. The server will not be restarted."
  2. Build Error:
    When attempting to build for a device, I receive the following error:

    ERROR: Unable to load devices: null  
    

    The command being executed is:

    C:\Program Files\Java\jre1.8.0_461\bin\java.exe -Dfile.encoding=UTF-8 -Dapple.awt.UIElement=true -jar ...  
    
  3. Environment Details:

    • Visual Studio Code with the Monkey C extension installed (version 1.1.2).
    • Garmin Connect IQ SDK Manager is installed and configured.
    • Java JRE 1.8 is installed and added to the system PATH.
  4. Steps Taken:

    • Reinstalled the Monkey C extension.
    • Verified the SDK path in the Connect IQ SDK Manager.
    • Checked the Java installation and ensured it is accessible.
    • Restarted Visual Studio Code multiple times.

Despite these efforts, the errors persist, and I am unable to proceed with development.

Request for Help:
Has anyone encountered similar issues? If so, how did you resolve them? Any guidance or troubleshooting steps would be greatly appreciated.

Parents
  • ERROR: Unable to load devices: null  

    This indicates that the SDK manager might not have installed the "devices" (device config files). Could you try opening the SDK Manager and seeing if it has any devices installed? There is a setting which will have the SDK Manager update them automatically.

    "Failed to load SDK supplementary files: null."

    I'm guessing this is another symptom of not having devices.

Comment
  • ERROR: Unable to load devices: null  

    This indicates that the SDK manager might not have installed the "devices" (device config files). Could you try opening the SDK Manager and seeing if it has any devices installed? There is a setting which will have the SDK Manager update them automatically.

    "Failed to load SDK supplementary files: null."

    I'm guessing this is another symptom of not having devices.

Children
No Data