Closed rouke-broersma closed 2 years ago
I am not able to repro with this same version on Windows 11. What OS are you using? Are you using a WSL/remote environment setup?
Yes sorry, this was in vscode with a remote connection to Ubuntu wsl.
Took a look through the Bicep code - the error occurs when calculating the scope created by a partially-typed resourceGroup resource. I couldn't repro this with the above sample, but I could repro with the following:
targetScope = 'subscription'
resource foo 'Microsoft.AAD/domainServices@2021-05-01' existing = {
scope: resourceGroup
name: 'foo'
}
resource resourceGroup 'Microsoft.Resources/resourceGroups@2021-04-01'
Bicep version VS Code extension: v0.4.1124
Describe the bug Bicep syntax parsing seems to fail in a very specific scenario
To Reproduce Steps to reproduce the behavior:
Create a bicep file with as contents:
Now try to use the autocomplete and the Bicep interpreter crashes with the below exception and keeps restarting and crashing.
Additional context