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

Parents
  • 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.

Comment
  • 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.

Children
No Data