Skip to content

v0.38.x breaks extendableParamFiles feature when using imports in nested .bicepparam files #18177

@jamesharling

Description

@jamesharling

Bicep version
v0.38.x

Describe the bug
If a nested bicepparam file has params that are bound to an imported function or variable, the intellisense and build fails with the error:

Message: Internal Error - System.ArgumentException: Unable to determine parent of specified node of type 'PropertyAccessSyntax' at span '[722:754]' because it has not been indexed.

This was working in previous versions, i.e. v0.37.x and older.

To Reproduce
lookups.bicep

@export()
var subscriptions = {
  mySub: {
    id: '5f6cc39d-14a2-4f45-85b3-46a7b9e147d8'
  }
}

core.bicepparam

import { subscriptions } from 'lookups.bicep'

param subscriptionId = subscriptions.mySub.id

main.bicepparam

using './main.bicep'

extends 'core.bicepparam'

Additional context
Add any other context about the problem here.

Metadata

Metadata

Assignees

Type

No type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions