Skip to content

Variables in barrel's jungle files are not fully supported #64

Open
@m4tiz5zktonj

Description

@m4tiz5zktonj

monkey.jungle in barrel:

custom_sourcePath = custom-source
base.sourcePath = source;$(custom_sourcePath)

custom-source/f.mc in barrel:

module TestBarrel {
    function f() as Void {}
}

source/g.mc in project:

function g() as Void {
    // Undefined symbol TestBarrel.f
    // 'TestBarrel.f' is not callable
    TestBarrel.f();
}

This reproduces for barrel added as barrel-file dependency.

Garmin's compiler builds this without errors, and SDK 8 Language Server provides function $.TestBarrel.f() as Void hint for it.

This issue can be avoided by changing dependency type to barrel's monkey.jungle or by replacing $(custom_sourcePath) with its value in project's bin/optimized/raw-barrels/.../barrel.jungle.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions