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.