Acknowledged

bug: ERROR: Cannot invoke "java.util.Set.add(Object)" because "this.mFileInfo" is null

MacOS 15.3.1, SDK 8.1.0, VSC Monkey C extension: 1.1.1

In one of my projects (that had other problems because of many files which were now deleted) when I try to run / build I get the following error form the compiler:

java -Xms1g -Dfile.encoding=UTF-8 -Dapple.awt.UIElement=true -jar me/Library/Application Support/Garmin/ConnectIQ/Sdks/connectiq-sdk-mac-8.1.0-2025-03-04-7ae1ed1cb/bin/monkeybrains.jar -o MyApp/bin/MyApp.prg -f MyApp/monkey.jungle -y garmin/garmin_developer_key.der -d fr955 -w

ERROR: Cannot invoke "java.util.Set.add(Object)" because "this.mFileInfo" is null

  • After messing with this for a while, it seems it has to do with annotations and having a module annotated differently for release and debug. This will reproduce the issue:


    monkey.jungle:
    base.excludeAnnotations = hello

    hello.mc:
    (:release)
    module test {
    function test(){}
    }

    (:debug)
    module test {
    (:hello)
    function test(){}
    (:helpme)
    function test(){}
    }


    And I get the error. Removing one of the annotated functions will make it work again. Adding both annotated functions to (:release) still gives the same error. And removing the module annotated with :release also gets rid of the error.

  • Same issue for us here. We have received requests to add support to our existing app for Descent G2, but we are stuck since you need to use SDK 8.1.0 to support Descent G2.

    When I go back to an older SDK, VS Code builds the app fine, but since 7.4.3 SDK doesn't support Descent G2, we are stuck.

  • I'm having the same issue in a couple of my projects. I have the same setup, but still using the 1.0.11 vscode extension.