You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Bicep server crashes when setting params in param file which are nullable in the bicep file
Does this occur consistently? Yes
Repro steps:
Create types in a separate file 'types.bicep' with any fields or types
@export()
type MyType = {
name: string?
}
Use the type in your 'main.bicep' file, but make it nullable
import { MyType } from 'types.bicep'
param myVar MyType?
In your 'main.bicepparam' try to assign values to myVar . The server crashes with "Connection error" when trying to type the field names
using 'main.bicep'
param myVar = {
na.... <crash>
}
Try setting the type of myVar to non-nullable param myVar MyType = {}, go back to main.bicepparam and try entering name, autocomplete menu shows up with no error.
tmarkovski
changed the title
Bicep crashes when working with params that have nested nullable custom types
Bicep crashes when working with params that are nullable custom type
Nov 10, 2024
Bicep server crashes when setting params in param file which are nullable in the bicep file
Does this occur consistently? Yes
Repro steps:
myVar
. The server crashes with "Connection error" when trying to type the field namesmyVar
to non-nullableparam myVar MyType = {}
, go back tomain.bicepparam
and try entering name, autocomplete menu shows up with no error.Action: bicep.lsp-error
Error type: Error
Error Message: Connection closed
Version: 0.31.34
OS: darwin
OS Release: 24.0.0
Product: Visual Studio Code
Product Version: 1.95.2
Language: en
Call Stack
The text was updated successfully, but these errors were encountered: