Acknowledged

7.4.1 Compiler fails: It claims function arguments are not initialized

As discussed in this thread on the developer forums:
https://forums.garmin.com/developer/connect-iq/f/discussion/396955/odd-compiler-errors-with-sdk-7-4-1

7.4.1 builds are failing on code that compiled in 7.3.1 without errors.

The errors indicate that certain values are "Uninitialized", even though they are coming in as function arguments.

Here is an example:

class MyClass {
    // public function initialize() is  up here...
    
    // This is the function where the compiler throws an error
    public function onUpdateInternal(dc as Graphics.Dc, paintFace as Lang.Method){
        if(!hasLayout){
            //This is where the error occurs, saying dc is not initialized
            appState.watchFaceView.onLayout(dc);
        }
        //Other code continues here...
    }
}

Built on MacOS 15.2

This is the build command:
/usr/bin/java -Xms1g -Dfile.encoding=UTF-8 -Dapple.awt.UIElement=true -jar /Users/myUserName/Library/Application Support/Garmin/ConnectIQ/Sdks/connectiq-sdk-mac-7.4.1-2024-11-27-9fadc2337/bin/monkeybrains.jar -o bin/outputname.prg -f /Users/myUserName/Code/Garmin/PathToProject/monkey.jungle;/Users/myUserName/Code/Garmin/PathToProject/barrels.jungle -y /Users/myUserName/Code/Garmin/Setup/developer_key -d approachs7042mm_sim -w -O 3