Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The Bicep server crashed 5 times in the last 3 minutes. The server will not be restarted. #16219

Closed
average-everyman opened this issue Jan 27, 2025 · 11 comments · Fixed by #16235
Assignees
Labels
bug Something isn't working Needs: Triage 🔍

Comments

@average-everyman
Copy link

Bicep extension in VS Code started crashes after startup since few days ago.
I can see this issue was reported here, but the solution provided does not solve the problem. Furthermore, if as per advice, the setting dotnetAcquisitionExtension.existingDotnetPath is removed, it gets re-added on vscode startup with the value of an empty list.

Please find the attached output from bicep extension.

bicep_server_crash.log

@average-everyman
Copy link
Author

I downgraded bicep extension version to 0.32.4 and also turned off auto update for this extension - that seemed to have helped.

@github-project-automation github-project-automation bot moved this from Todo to Done in Bicep Jan 27, 2025
@anthony-c-martin
Copy link
Member

Re-opening as this looks like a genuine bug in the latest version of Bicep. @average-everyman if possible, would you mind sharing the .bicep file which you are opening that causes the extension to crash?

@anthony-c-martin
Copy link
Member

Here's the stack trace from the error log - I've replaced the repetition causing the stack overflow and added ...next 2 lines repeated 1314 times...:

2025-01-27T06:04:46.690Z info: Current log level: debug.
2025-01-27T06:04:46.692Z info: Acquiring dotnet runtime...
2025-01-27T06:04:47.294Z debug: Found dotnet command at 'C:\Programs\dotnet-sdk-8.0.403-win-x64\dotnet.exe'.
2025-01-27T06:04:47.294Z info: Launching Bicep language service...
2025-01-27T06:04:47.294Z debug: Found language server at 'c:\Users\<username>\.vscode\extensions\ms-azuretools.vscode-bicep-0.33.13\bicepLanguageServer\Bicep.LangServer.dll'.
2025-01-27T06:04:49.316Z info: Bicep language service started.
[Info  - 7:04:49 AM] Running on processId 20032
Stack overflow.
   at System.Collections.Generic.Stack`1[[System.__Canon, System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]]..ctor(Int32)
   at System.Collections.Generic.SortedSet`1[[System.Collections.Generic.KeyValuePair`2[[System.__Canon, System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.__Canon, System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]].InOrderTreeWalk(System.Collections.Generic.TreeWalkPredicate`1<System.Collections.Generic.KeyValuePair`2<System.__Canon,System.__Canon>>)
   at System.Collections.Generic.SortedSet`1[[System.Collections.Generic.KeyValuePair`2[[System.__Canon, System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.__Canon, System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]].CopyTo(System.Collections.Generic.KeyValuePair`2<System.__Canon,System.__Canon>[], Int32, Int32)
   at System.Collections.Generic.SortedSet`1[[System.Collections.Generic.KeyValuePair`2[[System.__Canon, System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.__Canon, System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]].CopyTo(System.Collections.Generic.KeyValuePair`2<System.__Canon,System.__Canon>[], Int32)
   at System.Collections.Generic.EnumerableHelpers.ToArray[[System.Collections.Generic.KeyValuePair`2[[System.__Canon, System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.__Canon, System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]](System.Collections.Generic.IEnumerable`1<System.Collections.Generic.KeyValuePair`2<System.__Canon,System.__Canon>>)
   at System.Linq.Enumerable.ToArray[[System.Collections.Generic.KeyValuePair`2[[System.__Canon, System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.__Canon, System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]](System.Collections.Generic.IEnumerable`1<System.Collections.Generic.KeyValuePair`2<System.__Canon,System.__Canon>>)
   at System.Collections.Immutable.ImmutableExtensions+FallbackWrapper`1[[System.Collections.Generic.KeyValuePair`2[[System.__Canon, System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.__Canon, System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]].get_Item(Int32)
   at System.Collections.Immutable.ImmutableSortedDictionary`2+Node[[System.__Canon, System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.__Canon, System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]].NodeTreeFromList(System.Collections.Immutable.IOrderedCollection`1<System.Collections.Generic.KeyValuePair`2<System.__Canon,System.__Canon>>, Int32, Int32)
   at System.Collections.Immutable.ImmutableSortedDictionary`2+Node[[System.__Canon, System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.__Canon, System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]].NodeTreeFromList(System.Collections.Immutable.IOrderedCollection`1<System.Collections.Generic.KeyValuePair`2<System.__Canon,System.__Canon>>, Int32, Int32)
   at System.Collections.Immutable.ImmutableSortedDictionary`2[[System.__Canon, System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.__Canon, System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]].FillFromEmpty(System.Collections.Generic.IEnumerable`1<System.Collections.Generic.KeyValuePair`2<System.__Canon,System.__Canon>>, Boolean)
   at System.Collections.Immutable.ImmutableSortedDictionary`2[[System.__Canon, System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.__Canon, System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]].AddRange(System.Collections.Generic.IEnumerable`1<System.Collections.Generic.KeyValuePair`2<System.__Canon,System.__Canon>>, Boolean, Boolean)
   at System.Collections.Immutable.ImmutableSortedDictionary.ToImmutableSortedDictionary[[System.__Canon, System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.__Canon, System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.__Canon, System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]](System.Collections.Generic.IEnumerable`1<System.__Canon>, System.Func`2<System.__Canon,System.__Canon>, System.Func`2<System.__Canon,System.__Canon>, System.Collections.Generic.IComparer`1<System.__Canon>)
   at Bicep.Core.TypeSystem.Types.ObjectType..ctor(System.String, Bicep.Core.TypeSystem.TypeSymbolValidationFlags, System.Collections.Generic.IEnumerable`1<Bicep.Core.TypeSystem.Types.TypeProperty>, Bicep.Core.TypeSystem.ITypeReference, Bicep.Core.TypeSystem.Types.TypePropertyFlags, System.String, System.Func`2<Bicep.Core.TypeSystem.Types.ObjectType,Bicep.Core.TypeSystem.FunctionResolver>)
   at Bicep.Core.TypeSystem.Types.ObjectType..ctor(System.String, Bicep.Core.TypeSystem.TypeSymbolValidationFlags, System.Collections.Generic.IEnumerable`1<Bicep.Core.TypeSystem.Types.TypeProperty>, Bicep.Core.TypeSystem.ITypeReference, Bicep.Core.TypeSystem.Types.TypePropertyFlags, System.String, System.Collections.Generic.IEnumerable`1<Bicep.Core.Semantics.FunctionOverload>)
   at Bicep.Core.TypeSystem.TypeHelper.TransformProperties(Bicep.Core.TypeSystem.Types.ObjectType, System.Func`2<Bicep.Core.TypeSystem.Types.TypeProperty,Bicep.Core.TypeSystem.Types.TypeProperty>)
   at Bicep.Core.TypeSystem.TypeHelper.RemovePropertyFlagsRecursively(Bicep.Core.TypeSystem.TypeSymbol, Bicep.Core.TypeSystem.Types.TypePropertyFlags)
   at Bicep.Core.TypeSystem.TypeHelper+<>c__DisplayClass37_1.<RemovePropertyFlagsRecursively>b__1()
   at System.Lazy`1[[System.__Canon, System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]].CreateValue()
   at Bicep.Core.TypeSystem.DeferredTypeReference.get_Type()
   at Bicep.Core.Analyzers.Linter.Common.FindPossibleSecretsVisitor+<>c__DisplayClass11_0.<FindPathsToSecureTypeComponents>b__1(System.Collections.Generic.KeyValuePair`2<System.String,Bicep.Core.TypeSystem.Types.TypeProperty>)
   at System.Linq.Enumerable+SelectManySingleSelectorIterator`2[[System.Collections.Generic.KeyValuePair`2[[System.__Canon, System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.__Canon, System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.__Canon, System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]].MoveNext()
...next 2 lines repeated 1314 times...
   at Bicep.Core.Analyzers.Linter.Common.FindPossibleSecretsVisitor+<FindPathsToSecureTypeComponents>d__11.MoveNext()
   at System.Linq.Enumerable+SelectManySingleSelectorIterator`2[[System.Collections.Generic.KeyValuePair`2[[System.__Canon, System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.__Canon, System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.__Canon, System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]].MoveNext()
   at Bicep.Core.Analyzers.Linter.Common.FindPossibleSecretsVisitor+<FindPathsToSecureTypeComponents>d__11.MoveNext()
   at System.Linq.Enumerable+SelectEnumerableIterator`2[[System.__Canon, System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.__Canon, System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]].MoveNext()
   at System.Collections.Generic.List`1[[System.__Canon, System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]].AddRange(System.Collections.Generic.IEnumerable`1<System.__Canon>)
   at Bicep.Core.Analyzers.Linter.Common.FindPossibleSecretsVisitor.VisitPropertyAccessSyntax(Bicep.Core.Syntax.PropertyAccessSyntax)
   at Bicep.Core.Syntax.PropertyAccessSyntax.Accept(Bicep.Core.Syntax.ISyntaxVisitor)
   at Bicep.Core.Syntax.SyntaxVisitor.VisitInternal(Bicep.Core.Syntax.SyntaxBase)
   at Bicep.Core.Syntax.SyntaxVisitor.Visit(Bicep.Core.Syntax.SyntaxBase)
   at Bicep.Core.Syntax.AstVisitor.VisitOutputDeclarationSyntax(Bicep.Core.Syntax.OutputDeclarationSyntax)
   at Bicep.Core.Syntax.OutputDeclarationSyntax.Accept(Bicep.Core.Syntax.ISyntaxVisitor)
   at Bicep.Core.Syntax.SyntaxVisitor.VisitInternal(Bicep.Core.Syntax.SyntaxBase)
   at Bicep.Core.Syntax.SyntaxVisitor.Visit(Bicep.Core.Syntax.SyntaxBase)
   at Bicep.Core.Analyzers.Linter.Common.FindPossibleSecretsVisitor.FindPossibleSecretsInExpression(Bicep.Core.Semantics.SemanticModel, Bicep.Core.Syntax.SyntaxBase)
   at Bicep.Core.Analyzers.Linter.Rules.OutputsShouldNotContainSecretsRule+OutputVisitor.VisitOutputDeclarationSyntax(Bicep.Core.Syntax.OutputDeclarationSyntax)
   at Bicep.Core.Syntax.OutputDeclarationSyntax.Accept(Bicep.Core.Syntax.ISyntaxVisitor)
   at Bicep.Core.Syntax.SyntaxVisitor.VisitInternal(Bicep.Core.Syntax.SyntaxBase)
   at Bicep.Core.Syntax.SyntaxVisitor.Visit(Bicep.Core.Syntax.SyntaxBase)
   at Bicep.Core.Syntax.SyntaxVisitor.VisitNodes(System.Collections.Generic.IEnumerable`1<Bicep.Core.Syntax.SyntaxBase>)
   at Bicep.Core.Syntax.AstVisitor.VisitProgramSyntax(Bicep.Core.Syntax.ProgramSyntax)
   at Bicep.Core.Syntax.ProgramSyntax.Accept(Bicep.Core.Syntax.ISyntaxVisitor)
   at Bicep.Core.Syntax.SyntaxVisitor.VisitInternal(Bicep.Core.Syntax.SyntaxBase)
   at Bicep.Core.Syntax.SyntaxVisitor.Visit(Bicep.Core.Syntax.SyntaxBase)
   at Bicep.Core.Analyzers.Linter.Rules.OutputsShouldNotContainSecretsRule.AnalyzeInternal(Bicep.Core.Semantics.SemanticModel, Bicep.Core.Diagnostics.DiagnosticLevel)
   at Bicep.Core.Analyzers.Linter.LinterRuleBase.AnalyzeInternal(Bicep.Core.Semantics.SemanticModel, System.IServiceProvider, Bicep.Core.Diagnostics.DiagnosticLevel)
   at Bicep.Core.Analyzers.Linter.LinterRuleBase.Analyze(Bicep.Core.Semantics.SemanticModel, System.IServiceProvider)
   at Bicep.Core.Analyzers.Linter.LinterAnalyzer+<>c__DisplayClass13_0.<Analyze>b__0(Bicep.Core.Analyzers.Interfaces.IBicepAnalyzerRule)
   at System.Linq.Enumerable+SelectManySingleSelectorIterator`2[[System.__Canon, System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.__Canon, System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]].MoveNext()
   at System.Collections.Generic.List`1[[System.__Canon, System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]].AddRange(System.Collections.Generic.IEnumerable`1<System.__Canon>)
   at Bicep.Core.Analyzers.Linter.LinterAnalyzer.Analyze(Bicep.Core.Semantics.SemanticModel)
   at Bicep.Core.Semantics.SemanticModel.GetLinterDiagnostics()
   at Bicep.Core.Semantics.SemanticModel.AssembleDiagnostics()
   at System.Lazy`1[[System.Collections.Immutable.ImmutableArray`1[[System.__Canon, System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Collections.Immutable, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a]].ViaFactory(System.Threading.LazyThreadSafetyMode)
   at System.Lazy`1[[System.Collections.Immutable.ImmutableArray`1[[System.__Canon, System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Collections.Immutable, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a]].ExecutionAndPublication(System.LazyHelper, Boolean)
   at System.Lazy`1[[System.Collections.Immutable.ImmutableArray`1[[System.__Canon, System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Collections.Immutable, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a]].CreateValue()
   at System.Lazy`1[[System.Collections.Immutable.ImmutableArray`1[[System.__Canon, System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Collections.Immutable, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a]].get_Value()
   at Bicep.Core.Semantics.SemanticModel.HasErrors()
   at Bicep.Core.TypeSystem.TypeAssignmentVisitor+<>c__DisplayClass26_0.<VisitModuleDeclarationSyntax>b__0(Bicep.Core.Diagnostics.IDiagnosticWriter)
   at Bicep.Core.TypeSystem.TypeAssignmentVisitor+<>c__DisplayClass18_0.<AssignTypeWithDiagnostics>b__0()
   at Bicep.Core.TypeSystem.TypeAssignmentVisitor+<>c__DisplayClass16_0.<AssignTypeWithCaching>b__0(Bicep.Core.Syntax.SyntaxBase)
   at System.Collections.Concurrent.ConcurrentDictionary`2[[System.__Canon, System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.__Canon, System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]].GetOrAdd(System.__Canon, System.Func`2<System.__Canon,System.__Canon>)
   at Bicep.Core.TypeSystem.TypeAssignmentVisitor.AssignTypeWithCaching(Bicep.Core.Syntax.SyntaxBase, System.Func`1<Bicep.Core.TypeSystem.TypeAssignment>)
   at Bicep.Core.TypeSystem.TypeAssignmentVisitor.AssignTypeWithDiagnostics(Bicep.Core.Syntax.SyntaxBase, System.Func`2<Bicep.Core.Diagnostics.IDiagnosticWriter,Bicep.Core.TypeSystem.ITypeReference>)
   at Bicep.Core.TypeSystem.TypeAssignmentVisitor.VisitModuleDeclarationSyntax(Bicep.Core.Syntax.ModuleDeclarationSyntax)
   at Bicep.Core.Syntax.ModuleDeclarationSyntax.Accept(Bicep.Core.Syntax.ISyntaxVisitor)
   at Bicep.Core.Syntax.SyntaxVisitor.VisitInternal(Bicep.Core.Syntax.SyntaxBase)
   at Bicep.Core.Syntax.SyntaxVisitor.Visit(Bicep.Core.Syntax.SyntaxBase)
   at Bicep.Core.TypeSystem.TypeAssignmentVisitor.GetTypeAssignment(Bicep.Core.Syntax.SyntaxBase)
   at Bicep.Core.TypeSystem.TypeAssignmentVisitor.GetTypeInfo(Bicep.Core.Syntax.SyntaxBase)
   at Bicep.Core.TypeSystem.TypeManager.GetTypeInfo(Bicep.Core.Syntax.SyntaxBase)
   at Bicep.Core.Semantics.DeclaredSymbol.get_Type()
   at Bicep.Core.Semantics.ModuleSymbol+<get_Descendants>d__8.MoveNext()
   at Bicep.Core.Semantics.SymbolVisitor.VisitDescendants(Bicep.Core.Semantics.Symbol)
   at Bicep.Core.Semantics.SymbolVisitor.VisitModuleSymbol(Bicep.Core.Semantics.ModuleSymbol)
   at Bicep.Core.Semantics.SemanticDiagnosticVisitor.VisitModuleSymbol(Bicep.Core.Semantics.ModuleSymbol)
   at Bicep.Core.Semantics.ModuleSymbol.Accept(Bicep.Core.Semantics.SymbolVisitor)
   at Bicep.Core.Semantics.SymbolVisitor.VisitInternal(Bicep.Core.Semantics.Symbol)
   at Bicep.Core.Semantics.SymbolVisitor.Visit(Bicep.Core.Semantics.Symbol)
   at Bicep.Core.Semantics.SymbolVisitor.VisitDescendants(Bicep.Core.Semantics.Symbol)
   at Bicep.Core.Semantics.SymbolVisitor.VisitFileSymbol(Bicep.Core.Semantics.FileSymbol)
   at Bicep.Core.Semantics.SemanticDiagnosticVisitor.VisitFileSymbol(Bicep.Core.Semantics.FileSymbol)
   at Bicep.Core.Semantics.FileSymbol.Accept(Bicep.Core.Semantics.SymbolVisitor)
   at Bicep.Core.Semantics.SymbolVisitor.VisitInternal(Bicep.Core.Semantics.Symbol)
   at Bicep.Core.Semantics.SymbolVisitor.Visit(Bicep.Core.Semantics.Symbol)
   at Bicep.Core.Semantics.SemanticModel.GetSemanticDiagnostics()
   at Bicep.Core.Semantics.SemanticModel.AssembleDiagnostics()
   at System.Lazy`1[[System.Collections.Immutable.ImmutableArray`1[[System.__Canon, System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Collections.Immutable, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a]].ViaFactory(System.Threading.LazyThreadSafetyMode)
   at System.Lazy`1[[System.Collections.Immutable.ImmutableArray`1[[System.__Canon, System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Collections.Immutable, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a]].ExecutionAndPublication(System.LazyHelper, Boolean)
   at System.Lazy`1[[System.Collections.Immutable.ImmutableArray`1[[System.__Canon, System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Collections.Immutable, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a]].CreateValue()
   at System.Lazy`1[[System.Collections.Immutable.ImmutableArray`1[[System.__Canon, System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Collections.Immutable, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a]].get_Value()
   at Bicep.Core.Semantics.SemanticModel.HasErrors()
   at Bicep.Core.TypeSystem.TypeAssignmentVisitor+<>c__DisplayClass26_0.<VisitModuleDeclarationSyntax>b__0(Bicep.Core.Diagnostics.IDiagnosticWriter)
   at Bicep.Core.TypeSystem.TypeAssignmentVisitor+<>c__DisplayClass18_0.<AssignTypeWithDiagnostics>b__0()
   at Bicep.Core.TypeSystem.TypeAssignmentVisitor+<>c__DisplayClass16_0.<AssignTypeWithCaching>b__0(Bicep.Core.Syntax.SyntaxBase)
   at System.Collections.Concurrent.ConcurrentDictionary`2[[System.__Canon, System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.__Canon, System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]].GetOrAdd(System.__Canon, System.Func`2<System.__Canon,System.__Canon>)
   at Bicep.Core.TypeSystem.TypeAssignmentVisitor.AssignTypeWithCaching(Bicep.Core.Syntax.SyntaxBase, System.Func`1<Bicep.Core.TypeSystem.TypeAssignment>)
   at Bicep.Core.TypeSystem.TypeAssignmentVisitor.AssignTypeWithDiagnostics(Bicep.Core.Syntax.SyntaxBase, System.Func`2<Bicep.Core.Diagnostics.IDiagnosticWriter,Bicep.Core.TypeSystem.ITypeReference>)
   at Bicep.Core.TypeSystem.TypeAssignmentVisitor.VisitModuleDeclarationSyntax(Bicep.Core.Syntax.ModuleDeclarationSyntax)
   at Bicep.Core.Syntax.ModuleDeclarationSyntax.Accept(Bicep.Core.Syntax.ISyntaxVisitor)
   at Bicep.Core.Syntax.SyntaxVisitor.VisitInternal(Bicep.Core.Syntax.SyntaxBase)
   at Bicep.Core.Syntax.SyntaxVisitor.Visit(Bicep.Core.Syntax.SyntaxBase)
   at Bicep.Core.TypeSystem.TypeAssignmentVisitor.GetTypeAssignment(Bicep.Core.Syntax.SyntaxBase)
   at Bicep.Core.TypeSystem.TypeAssignmentVisitor.GetTypeInfo(Bicep.Core.Syntax.SyntaxBase)
   at Bicep.Core.TypeSystem.TypeManager.GetTypeInfo(Bicep.Core.Syntax.SyntaxBase)
   at Bicep.Core.Semantics.DeclaredSymbol.get_Type()
   at Bicep.Core.Semantics.ModuleSymbol+<get_Descendants>d__8.MoveNext()
   at Bicep.Core.Semantics.SymbolVisitor.VisitDescendants(Bicep.Core.Semantics.Symbol)
   at Bicep.Core.Semantics.SymbolVisitor.VisitModuleSymbol(Bicep.Core.Semantics.ModuleSymbol)
   at Bicep.Core.Semantics.SemanticDiagnosticVisitor.VisitModuleSymbol(Bicep.Core.Semantics.ModuleSymbol)
   at Bicep.Core.Semantics.ModuleSymbol.Accept(Bicep.Core.Semantics.SymbolVisitor)
   at Bicep.Core.Semantics.SymbolVisitor.VisitInternal(Bicep.Core.Semantics.Symbol)
   at Bicep.Core.Semantics.SymbolVisitor.Visit(Bicep.Core.Semantics.Symbol)
   at Bicep.Core.Semantics.SymbolVisitor.VisitDescendants(Bicep.Core.Semantics.Symbol)
   at Bicep.Core.Semantics.SymbolVisitor.VisitFileSymbol(Bicep.Core.Semantics.FileSymbol)
   at Bicep.Core.Semantics.SemanticDiagnosticVisitor.VisitFileSymbol(Bicep.Core.Semantics.FileSymbol)
   at Bicep.Core.Semantics.FileSymbol.Accept(Bicep.Core.Semantics.SymbolVisitor)
   at Bicep.Core.Semantics.SymbolVisitor.VisitInternal(Bicep.Core.Semantics.Symbol)
   at Bicep.Core.Semantics.SymbolVisitor.Visit(Bicep.Core.Semantics.Symbol)
   at Bicep.Core.Semantics.SemanticModel.GetSemanticDiagnostics()
   at Bicep.Core.Semantics.SemanticModel.AssembleDiagnostics()
   at System.Lazy`1[[System.Collections.Immutable.ImmutableArray`1[[System.__Canon, System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Collections.Immutable, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a]].ViaFactory(System.Threading.LazyThreadSafetyMode)
   at System.Lazy`1[[System.Collections.Immutable.ImmutableArray`1[[System.__Canon, System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Collections.Immutable, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a]].ExecutionAndPublication(System.LazyHelper, Boolean)
   at System.Lazy`1[[System.Collections.Immutable.ImmutableArray`1[[System.__Canon, System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Collections.Immutable, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a]].CreateValue()
   at System.Lazy`1[[System.Collections.Immutable.ImmutableArray`1[[System.__Canon, System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Collections.Immutable, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a]].get_Value()
   at Bicep.Core.Semantics.SemanticModel.GetAllDiagnostics()
   at Bicep.LanguageServer.BicepCompilationManager.GetDiagnosticsFromContext(Bicep.LanguageServer.CompilationManager.CompilationContext)
   at Bicep.LanguageServer.BicepCompilationManager.UpdateCompilationInternal(OmniSharp.Extensions.LanguageServer.Protocol.DocumentUri, System.Nullable`1<Int32>, System.Collections.Generic.IDictionary`2<Bicep.Core.Workspaces.ISourceFile,Bicep.Core.Semantics.ISemanticModel>, System.Collections.Generic.IEnumerable`1<Bicep.Core.Workspaces.ISourceFile>, Boolean)
   at Bicep.LanguageServer.BicepCompilationManager.UpsertCompilationInternal(OmniSharp.Extensions.LanguageServer.Protocol.DocumentUri, System.Nullable`1<Int32>, Bicep.Core.Workspaces.ISourceFile, Boolean, Boolean)
   at Bicep.LanguageServer.BicepCompilationManager.OpenCompilation(OmniSharp.Extensions.LanguageServer.Protocol.DocumentUri, System.Nullable`1<Int32>, System.String, System.String)
   at Bicep.LanguageServer.Handlers.BicepTextDocumentSyncHandler.Handle(OmniSharp.Extensions.LanguageServer.Protocol.Models.DidOpenTextDocumentParams, System.Threading.CancellationToken)
   at OmniSharp.Extensions.JsonRpc.JsonRpcServerServiceCollectionExtensions+RequestHandlerDecorator`2[[System.__Canon, System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[MediatR.Unit, MediatR, Version=8.0.0.0, Culture=neutral, PublicKeyToken=bb9a41a5e8aaa7e2]].Handle(System.__Canon, System.Threading.CancellationToken)
   at MediatR.Internal.RequestHandlerWrapperImpl`2+<>c__DisplayClass1_0[[System.__Canon, System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[MediatR.Unit, MediatR, Version=8.0.0.0, Culture=neutral, PublicKeyToken=bb9a41a5e8aaa7e2]].<Handle>g__Handler|0()
   at OmniSharp.Extensions.LanguageServer.Server.Pipelines.SemanticTokensDeltaPipeline`2+<Handle>d__0[[System.__Canon, System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[MediatR.Unit, MediatR, Version=8.0.0.0, Culture=neutral, PublicKeyToken=bb9a41a5e8aaa7e2]].MoveNext()
   at System.Runtime.CompilerServices.AsyncMethodBuilderCore.Start[[OmniSharp.Extensions.LanguageServer.Server.Pipelines.SemanticTokensDeltaPipeline`2+<Handle>d__0[[System.__Canon, System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[MediatR.Unit, MediatR, Version=8.0.0.0, Culture=neutral, PublicKeyToken=bb9a41a5e8aaa7e2]], OmniSharp.Extensions.LanguageServer, Version=0.19.0.0, Culture=neutral, PublicKeyToken=6d868dff454e6022]](<Handle>d__0<System.__Canon,MediatR.Unit> ByRef)
   at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1[[MediatR.Unit, MediatR, Version=8.0.0.0, Culture=neutral, PublicKeyToken=bb9a41a5e8aaa7e2]].Start[[OmniSharp.Extensions.LanguageServer.Server.Pipelines.SemanticTokensDeltaPipeline`2+<Handle>d__0[[System.__Canon, System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[MediatR.Unit, MediatR, Version=8.0.0.0, Culture=neutral, PublicKeyToken=bb9a41a5e8aaa7e2]], OmniSharp.Extensions.LanguageServer, Version=0.19.0.0, Culture=neutral, PublicKeyToken=6d868dff454e6022]](<Handle>d__0<System.__Canon,MediatR.Unit> ByRef)
   at OmniSharp.Extensions.LanguageServer.Server.Pipelines.SemanticTokensDeltaPipeline`2[[System.__Canon, System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[MediatR.Unit, MediatR, Version=8.0.0.0, Culture=neutral, PublicKeyToken=bb9a41a5e8aaa7e2]].Handle(System.__Canon, System.Threading.CancellationToken, MediatR.RequestHandlerDelegate`1<MediatR.Unit>)
   at MediatR.Internal.RequestHandlerWrapperImpl`2+<>c__DisplayClass1_1[[System.__Canon, System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[MediatR.Unit, MediatR, Version=8.0.0.0, Culture=neutral, PublicKeyToken=bb9a41a5e8aaa7e2]].<Handle>b__2()
   at OmniSharp.Extensions.LanguageServer.Server.Pipelines.ResolveCommandPipeline`2+<Handle>d__3[[System.__Canon, System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[MediatR.Unit, MediatR, Version=8.0.0.0, Culture=neutral, PublicKeyToken=bb9a41a5e8aaa7e2]].MoveNext()
   at System.Runtime.CompilerServices.AsyncMethodBuilderCore.Start[[OmniSharp.Extensions.LanguageServer.Server.Pipelines.ResolveCommandPipeline`2+<Handle>d__3[[System.__Canon, System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[MediatR.Unit, MediatR, Version=8.0.0.0, Culture=neutral, PublicKeyToken=bb9a41a5e8aaa7e2]], OmniSharp.Extensions.LanguageServer, Version=0.19.0.0, Culture=neutral, PublicKeyToken=6d868dff454e6022]](<Handle>d__3<System.__Canon,MediatR.Unit> ByRef)
   at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1[[MediatR.Unit, MediatR, Version=8.0.0.0, Culture=neutral, PublicKeyToken=bb9a41a5e8aaa7e2]].Start[[OmniSharp.Extensions.LanguageServer.Server.Pipelines.ResolveCommandPipeline`2+<Handle>d__3[[System.__Canon, System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[MediatR.Unit, MediatR, Version=8.0.0.0, Culture=neutral, PublicKeyToken=bb9a41a5e8aaa7e2]], OmniSharp.Extensions.LanguageServer, Version=0.19.0.0, Culture=neutral, PublicKeyToken=6d868dff454e6022]](<Handle>d__3<System.__Canon,MediatR.Unit> ByRef)
   at OmniSharp.Extensions.LanguageServer.Server.Pipelines.ResolveCommandPipeline`2[[System.__Canon, System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[MediatR.Unit, MediatR, Version=8.0.0.0, Culture=neutral, PublicKeyToken=bb9a41a5e8aaa7e2]].Handle(System.__Canon, System.Threading.CancellationToken, MediatR.RequestHandlerDelegate`1<MediatR.Unit>)
   at MediatR.Internal.RequestHandlerWrapperImpl`2+<>c__DisplayClass1_1[[System.__Canon, System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[MediatR.Unit, MediatR, Version=8.0.0.0, Culture=neutral, PublicKeyToken=bb9a41a5e8aaa7e2]].<Handle>b__2()
   at MediatR.Pipeline.RequestPreProcessorBehavior`2+<Handle>d__2[[System.__Canon, System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[MediatR.Unit, MediatR, Version=8.0.0.0, Culture=neutral, PublicKeyToken=bb9a41a5e8aaa7e2]].MoveNext()
   at System.Runtime.CompilerServices.AsyncMethodBuilderCore.Start[[MediatR.Pipeline.RequestPreProcessorBehavior`2+<Handle>d__2[[System.__Canon, System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[MediatR.Unit, MediatR, Version=8.0.0.0, Culture=neutral, PublicKeyToken=bb9a41a5e8aaa7e2]], MediatR, Version=8.0.0.0, Culture=neutral, PublicKeyToken=bb9a41a5e8aaa7e2]](<Handle>d__2<System.__Canon,MediatR.Unit> ByRef)
   at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1[[MediatR.Unit, MediatR, Version=8.0.0.0, Culture=neutral, PublicKeyToken=bb9a41a5e8aaa7e2]].Start[[MediatR.Pipeline.RequestPreProcessorBehavior`2+<Handle>d__2[[System.__Canon, System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[MediatR.Unit, MediatR, Version=8.0.0.0, Culture=neutral, PublicKeyToken=bb9a41a5e8aaa7e2]], MediatR, Version=8.0.0.0, Culture=neutral, PublicKeyToken=bb9a41a5e8aaa7e2]](<Handle>d__2<System.__Canon,MediatR.Unit> ByRef)
   at MediatR.Pipeline.RequestPreProcessorBehavior`2[[System.__Canon, System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[MediatR.Unit, MediatR, Version=8.0.0.0, Culture=neutral, PublicKeyToken=bb9a41a5e8aaa7e2]].Handle(System.__Canon, System.Threading.CancellationToken, MediatR.RequestHandlerDelegate`1<MediatR.Unit>)
   at MediatR.Internal.RequestHandlerWrapperImpl`2+<>c__DisplayClass1_1[[System.__Canon, System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[MediatR.Unit, MediatR, Version=8.0.0.0, Culture=neutral, PublicKeyToken=bb9a41a5e8aaa7e2]].<Handle>b__2()
   at MediatR.Pipeline.RequestPostProcessorBehavior`2+<Handle>d__2[[System.__Canon, System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[MediatR.Unit, MediatR, Version=8.0.0.0, Culture=neutral, PublicKeyToken=bb9a41a5e8aaa7e2]].MoveNext()
   at System.Runtime.CompilerServices.AsyncMethodBuilderCore.Start[[MediatR.Pipeline.RequestPostProcessorBehavior`2+<Handle>d__2[[System.__Canon, System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[MediatR.Unit, MediatR, Version=8.0.0.0, Culture=neutral, PublicKeyToken=bb9a41a5e8aaa7e2]], MediatR, Version=8.0.0.0, Culture=neutral, PublicKeyToken=bb9a41a5e8aaa7e2]](<Handle>d__2<System.__Canon,MediatR.Unit> ByRef)
   at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1[[MediatR.Unit, MediatR, Version=8.0.0.0, Culture=neutral, PublicKeyToken=bb9a41a5e8aaa7e2]].Start[[MediatR.Pipeline.RequestPostProcessorBehavior`2+<Handle>d__2[[System.__Canon, System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[MediatR.Unit, MediatR, Version=8.0.0.0, Culture=neutral, PublicKeyToken=bb9a41a5e8aaa7e2]], MediatR, Version=8.0.0.0, Culture=neutral, PublicKeyToken=bb9a41a5e8aaa7e2]](<Handle>d__2<System.__Canon,MediatR.Unit> ByRef)
   at MediatR.Pipeline.RequestPostProcessorBehavior`2[[System.__Canon, System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[MediatR.Unit, MediatR, Version=8.0.0.0, Culture=neutral, PublicKeyToken=bb9a41a5e8aaa7e2]].Handle(System.__Canon, System.Threading.CancellationToken, MediatR.RequestHandlerDelegate`1<MediatR.Unit>)
   at MediatR.Internal.RequestHandlerWrapperImpl`2+<>c__DisplayClass1_1[[System.__Canon, System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[MediatR.Unit, MediatR, Version=8.0.0.0, Culture=neutral, PublicKeyToken=bb9a41a5e8aaa7e2]].<Handle>b__2()
   at MediatR.Pipeline.RequestExceptionProcessorBehavior`2+<Handle>d__2[[System.__Canon, System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[MediatR.Unit, MediatR, Version=8.0.0.0, Culture=neutral, PublicKeyToken=bb9a41a5e8aaa7e2]].MoveNext()
   at System.Runtime.CompilerServices.AsyncMethodBuilderCore.Start[[MediatR.Pipeline.RequestExceptionProcessorBehavior`2+<Handle>d__2[[System.__Canon, System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[MediatR.Unit, MediatR, Version=8.0.0.0, Culture=neutral, PublicKeyToken=bb9a41a5e8aaa7e2]], MediatR, Version=8.0.0.0, Culture=neutral, PublicKeyToken=bb9a41a5e8aaa7e2]](<Handle>d__2<System.__Canon,MediatR.Unit> ByRef)
   at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1[[MediatR.Unit, MediatR, Version=8.0.0.0, Culture=neutral, PublicKeyToken=bb9a41a5e8aaa7e2]].Start[[MediatR.Pipeline.RequestExceptionProcessorBehavior`2+<Handle>d__2[[System.__Canon, System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[MediatR.Unit, MediatR, Version=8.0.0.0, Culture=neutral, PublicKeyToken=bb9a41a5e8aaa7e2]], MediatR, Version=8.0.0.0, Culture=neutral, PublicKeyToken=bb9a41a5e8aaa7e2]](<Handle>d__2<System.__Canon,MediatR.Unit> ByRef)
   at MediatR.Pipeline.RequestExceptionProcessorBehavior`2[[System.__Canon, System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[MediatR.Unit, MediatR, Version=8.0.0.0, Culture=neutral, PublicKeyToken=bb9a41a5e8aaa7e2]].Handle(System.__Canon, System.Threading.CancellationToken, MediatR.RequestHandlerDelegate`1<MediatR.Unit>)
   at MediatR.Internal.RequestHandlerWrapperImpl`2+<>c__DisplayClass1_1[[System.__Canon, System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[MediatR.Unit, MediatR, Version=8.0.0.0, Culture=neutral, PublicKeyToken=bb9a41a5e8aaa7e2]].<Handle>b__2()
   at MediatR.Pipeline.RequestExceptionActionProcessorBehavior`2+<Handle>d__2[[System.__Canon, System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[MediatR.Unit, MediatR, Version=8.0.0.0, Culture=neutral, PublicKeyToken=bb9a41a5e8aaa7e2]].MoveNext()
   at System.Runtime.CompilerServices.AsyncMethodBuilderCore.Start[[MediatR.Pipeline.RequestExceptionActionProcessorBehavior`2+<Handle>d__2[[System.__Canon, System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[MediatR.Unit, MediatR, Version=8.0.0.0, Culture=neutral, PublicKeyToken=bb9a41a5e8aaa7e2]], MediatR, Version=8.0.0.0, Culture=neutral, PublicKeyToken=bb9a41a5e8aaa7e2]](<Handle>d__2<System.__Canon,MediatR.Unit> ByRef)
   at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1[[MediatR.Unit, MediatR, Version=8.0.0.0, Culture=neutral, PublicKeyToken=bb9a41a5e8aaa7e2]].Start[[MediatR.Pipeline.RequestExceptionActionProcessorBehavior`2+<Handle>d__2[[System.__Canon, System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[MediatR.Unit, MediatR, Version=8.0.0.0, Culture=neutral, PublicKeyToken=bb9a41a5e8aaa7e2]], MediatR, Version=8.0.0.0, Culture=neutral, PublicKeyToken=bb9a41a5e8aaa7e2]](<Handle>d__2<System.__Canon,MediatR.Unit> ByRef)
   at MediatR.Pipeline.RequestExceptionActionProcessorBehavior`2[[System.__Canon, System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[MediatR.Unit, MediatR, Version=8.0.0.0, Culture=neutral, PublicKeyToken=bb9a41a5e8aaa7e2]].Handle(System.__Canon, System.Threading.CancellationToken, MediatR.RequestHandlerDelegate`1<MediatR.Unit>)
   at MediatR.Internal.RequestHandlerWrapperImpl`2+<>c__DisplayClass1_1[[System.__Canon, System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[MediatR.Unit, MediatR, Version=8.0.0.0, Culture=neutral, PublicKeyToken=bb9a41a5e8aaa7e2]].<Handle>b__2()
   at MediatR.Internal.RequestHandlerWrapperImpl`2[[System.__Canon, System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[MediatR.Unit, MediatR, Version=8.0.0.0, Culture=neutral, PublicKeyToken=bb9a41a5e8aaa7e2]].Handle(MediatR.IRequest`1<MediatR.Unit>, System.Threading.CancellationToken, MediatR.ServiceFactory)
   at MediatR.Mediator.Send[[MediatR.Unit, MediatR, Version=8.0.0.0, Culture=neutral, PublicKeyToken=bb9a41a5e8aaa7e2]](MediatR.IRequest`1<MediatR.Unit>, System.Threading.CancellationToken)
   at OmniSharp.Extensions.JsonRpc.RequestRouterBase`1[[System.__Canon, System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]].SendRequest[[System.__Canon, System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]](MediatR.IMediator, System.__Canon, System.Threading.CancellationToken)
   at System.RuntimeMethodHandle.InvokeMethod(System.Object, Void**, System.Signature, Boolean)
   at System.Reflection.MethodBaseInvoker.InvokeDirectByRefWithFewArgs(System.Object, System.Span`1<System.Object>, System.Reflection.BindingFlags)
   at System.Reflection.MethodBaseInvoker.InvokeWithFewArgs(System.Object, System.Reflection.BindingFlags, System.Reflection.Binder, System.Object[], System.Globalization.CultureInfo)
   at System.Reflection.MethodBase.Invoke(System.Object, System.Object[])
   at OmniSharp.Extensions.JsonRpc.RequestRouterBase`1[[System.__Canon, System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]].HandleNotification(MediatR.IMediator, OmniSharp.Extensions.JsonRpc.IHandlerDescriptor, System.Object, System.Threading.CancellationToken)
   at OmniSharp.Extensions.JsonRpc.RequestRouterBase`1+<<RouteNotification>g__InnerRoute|6_0>d[[System.__Canon, System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]].MoveNext()
   at System.Runtime.CompilerServices.AsyncMethodBuilderCore.Start[[OmniSharp.Extensions.JsonRpc.RequestRouterBase`1+<<RouteNotification>g__InnerRoute|6_0>d[[System.__Canon, System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], OmniSharp.Extensions.JsonRpc, Version=0.19.0.0, Culture=neutral, PublicKeyToken=6d868dff454e6022]](<<RouteNotification>g__InnerRoute|6_0>d<System.__Canon> ByRef)
   at System.Runtime.CompilerServices.AsyncTaskMethodBuilder.Start[[OmniSharp.Extensions.JsonRpc.RequestRouterBase`1+<<RouteNotification>g__InnerRoute|6_0>d[[System.__Canon, System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], OmniSharp.Extensions.JsonRpc, Version=0.19.0.0, Culture=neutral, PublicKeyToken=6d868dff454e6022]](<<RouteNotification>g__InnerRoute|6_0>d<System.__Canon> ByRef)
   at OmniSharp.Extensions.JsonRpc.RequestRouterBase`1[[System.__Canon, System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]].<RouteNotification>g__InnerRoute|6_0(Microsoft.Extensions.DependencyInjection.IServiceScopeFactory, System.__Canon, System.Object, System.Threading.CancellationToken)
   at OmniSharp.Extensions.JsonRpc.RequestRouterBase`1+<>c__DisplayClass6_0[[System.__Canon, System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]].<RouteNotification>b__1(System.__Canon)
   at System.Linq.Enumerable+SelectEnumerableIterator`2[[System.__Canon, System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.__Canon, System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]].MoveNext()
   at System.Threading.Tasks.Task.WhenAll(System.Collections.Generic.IEnumerable`1<System.Threading.Tasks.Task>)
   at OmniSharp.Extensions.JsonRpc.RequestRouterBase`1+<RouteNotification>d__6[[System.__Canon, System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]].MoveNext()
   at System.Runtime.CompilerServices.AsyncMethodBuilderCore.Start[[OmniSharp.Extensions.JsonRpc.RequestRouterBase`1+<RouteNotification>d__6[[System.__Canon, System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], OmniSharp.Extensions.JsonRpc, Version=0.19.0.0, Culture=neutral, PublicKeyToken=6d868dff454e6022]](<RouteNotification>d__6<System.__Canon> ByRef)
   at System.Runtime.CompilerServices.AsyncTaskMethodBuilder.Start[[OmniSharp.Extensions.JsonRpc.RequestRouterBase`1+<RouteNotification>d__6[[System.__Canon, System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], OmniSharp.Extensions.JsonRpc, Version=0.19.0.0, Culture=neutral, PublicKeyToken=6d868dff454e6022]](<RouteNotification>d__6<System.__Canon> ByRef)
   at OmniSharp.Extensions.JsonRpc.RequestRouterBase`1[[System.__Canon, System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]].RouteNotification(OmniSharp.Extensions.JsonRpc.IRequestDescriptor`1<System.__Canon>, OmniSharp.Extensions.JsonRpc.Server.Notification, System.Threading.CancellationToken)
   at OmniSharp.Extensions.LanguageServer.Shared.LspRequestRouter.OmniSharp.Extensions.JsonRpc.IRequestRouter<OmniSharp.Extensions.JsonRpc.IHandlerDescriptor>.RouteNotification(OmniSharp.Extensions.JsonRpc.IRequestDescriptor`1<OmniSharp.Extensions.JsonRpc.IHandlerDescriptor>, OmniSharp.Extensions.JsonRpc.Server.Notification, System.Threading.CancellationToken)
   at OmniSharp.Extensions.JsonRpc.DefaultRequestInvoker+<>c__DisplayClass11_0+<<RouteNotification>b__3>d.MoveNext()
   at System.Runtime.CompilerServices.AsyncMethodBuilderCore.Start[[OmniSharp.Extensions.JsonRpc.DefaultRequestInvoker+<>c__DisplayClass11_0+<<RouteNotification>b__3>d, OmniSharp.Extensions.JsonRpc, Version=0.19.0.0, Culture=neutral, PublicKeyToken=6d868dff454e6022]](<<RouteNotification>b__3>d ByRef)
   at System.Runtime.CompilerServices.AsyncTaskMethodBuilder.Start[[OmniSharp.Extensions.JsonRpc.DefaultRequestInvoker+<>c__DisplayClass11_0+<<RouteNotification>b__3>d, OmniSharp.Extensions.JsonRpc, Version=0.19.0.0, Culture=neutral, PublicKeyToken=6d868dff454e6022]](<<RouteNotification>b__3>d ByRef)
   at OmniSharp.Extensions.JsonRpc.DefaultRequestInvoker+<>c__DisplayClass11_0.<RouteNotification>b__3(System.Threading.CancellationToken)
   at System.Reactive.Linq.QueryLanguage.StartAsyncImpl(System.Func`2<System.Threading.CancellationToken,System.Threading.Tasks.Task>, Value ByRef)
   at System.Reactive.Linq.QueryLanguage.StartAsync(System.Func`2<System.Threading.CancellationToken,System.Threading.Tasks.Task>)
   at System.Reactive.Linq.QueryLanguage+<>c__DisplayClass185_0.<FromAsync>b__0()
   at System.Reactive.Linq.ObservableImpl.Defer`1+_[[System.Reactive.Unit, System.Reactive, Version=6.0.0.0, Culture=neutral, PublicKeyToken=94bc3704cddfc263]].Run()
   at System.Reactive.Linq.ObservableImpl.Defer`1[[System.Reactive.Unit, System.Reactive, Version=6.0.0.0, Culture=neutral, PublicKeyToken=94bc3704cddfc263]].Run(_<System.Reactive.Unit>)
   at System.Reactive.Producer`2[[System.Reactive.Unit, System.Reactive, Version=6.0.0.0, Culture=neutral, PublicKeyToken=94bc3704cddfc263],[System.__Canon, System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]].SubscribeRaw(System.IObserver`1<System.Reactive.Unit>, Boolean)
   at System.ObservableExtensions.SubscribeSafe[[System.Reactive.Unit, System.Reactive, Version=6.0.0.0, Culture=neutral, PublicKeyToken=94bc3704cddfc263]](System.IObservable`1<System.Reactive.Unit>, System.IObserver`1<System.Reactive.Unit>)
   at System.Reactive.Sink`2[[System.Reactive.Unit, System.Reactive, Version=6.0.0.0, Culture=neutral, PublicKeyToken=94bc3704cddfc263],[System.Reactive.Unit, System.Reactive, Version=6.0.0.0, Culture=neutral, PublicKeyToken=94bc3704cddfc263]].Run(System.IObservable`1<System.Reactive.Unit>)
   at System.Reactive.Linq.ObservableImpl.Amb`1+AmbCoordinator[[System.Reactive.Unit, System.Reactive, Version=6.0.0.0, Culture=neutral, PublicKeyToken=94bc3704cddfc263]].Run(System.IObservable`1<System.Reactive.Unit>, System.IObservable`1<System.Reactive.Unit>)
   at System.Reactive.Linq.ObservableImpl.Amb`1[[System.Reactive.Unit, System.Reactive, Version=6.0.0.0, Culture=neutral, PublicKeyToken=94bc3704cddfc263]].Run(AmbCoordinator<System.Reactive.Unit>)
   at System.Reactive.Producer`2[[System.Reactive.Unit, System.Reactive, Version=6.0.0.0, Culture=neutral, PublicKeyToken=94bc3704cddfc263],[System.__Canon, System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]].SubscribeRaw(System.IObserver`1<System.Reactive.Unit>, Boolean)
   at System.ObservableExtensions.SubscribeSafe[[System.Reactive.Unit, System.Reactive, Version=6.0.0.0, Culture=neutral, PublicKeyToken=94bc3704cddfc263]](System.IObservable`1<System.Reactive.Unit>, System.IObserver`1<System.Reactive.Unit>)
   at System.Reactive.Linq.ObservableImpl.Catch`2+_[[System.Reactive.Unit, System.Reactive, Version=6.0.0.0, Culture=neutral, PublicKeyToken=94bc3704cddfc263],[System.__Canon, System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]].Run(System.IObservable`1<System.Reactive.Unit>)
   at System.Reactive.Linq.ObservableImpl.Catch`2[[System.Reactive.Unit, System.Reactive, Version=6.0.0.0, Culture=neutral, PublicKeyToken=94bc3704cddfc263],[System.__Canon, System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]].Run(_<System.Reactive.Unit,System.__Canon>)
   at System.Reactive.Producer`2[[System.Reactive.Unit, System.Reactive, Version=6.0.0.0, Culture=neutral, PublicKeyToken=94bc3704cddfc263],[System.__Canon, System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]].SubscribeRaw(System.IObserver`1<System.Reactive.Unit>, Boolean)
   at System.ObservableExtensions.SubscribeSafe[[System.Reactive.Unit, System.Reactive, Version=6.0.0.0, Culture=neutral, PublicKeyToken=94bc3704cddfc263]](System.IObservable`1<System.Reactive.Unit>, System.IObserver`1<System.Reactive.Unit>)
   at System.Reactive.Linq.ObservableImpl.Catch`2+_[[System.Reactive.Unit, System.Reactive, Version=6.0.0.0, Culture=neutral, PublicKeyToken=94bc3704cddfc263],[System.__Canon, System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]].Run(System.IObservable`1<System.Reactive.Unit>)
   at System.Reactive.Linq.ObservableImpl.Catch`2[[System.Reactive.Unit, System.Reactive, Version=6.0.0.0, Culture=neutral, PublicKeyToken=94bc3704cddfc263],[System.__Canon, System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]].Run(_<System.Reactive.Unit,System.__Canon>)
   at System.Reactive.Producer`2[[System.Reactive.Unit, System.Reactive, Version=6.0.0.0, Culture=neutral, PublicKeyToken=94bc3704cddfc263],[System.__Canon, System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]].SubscribeRaw(System.IObserver`1<System.Reactive.Unit>, Boolean)
   at System.ObservableExtensions.SubscribeSafe[[System.Reactive.Unit, System.Reactive, Version=6.0.0.0, Culture=neutral, PublicKeyToken=94bc3704cddfc263]](System.IObservable`1<System.Reactive.Unit>, System.IObserver`1<System.Reactive.Unit>)
   at System.Reactive.Linq.ObservableImpl.Catch`2+_[[System.Reactive.Unit, System.Reactive, Version=6.0.0.0, Culture=neutral, PublicKeyToken=94bc3704cddfc263],[System.__Canon, System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]].Run(System.IObservable`1<System.Reactive.Unit>)
   at System.Reactive.Linq.ObservableImpl.Catch`2[[System.Reactive.Unit, System.Reactive, Version=6.0.0.0, Culture=neutral, PublicKeyToken=94bc3704cddfc263],[System.__Canon, System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]].Run(_<System.Reactive.Unit,System.__Canon>)
   at System.Reactive.Producer`2[[System.Reactive.Unit, System.Reactive, Version=6.0.0.0, Culture=neutral, PublicKeyToken=94bc3704cddfc263],[System.__Canon, System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]].SubscribeRaw(System.IObserver`1<System.Reactive.Unit>, Boolean)
   at System.ObservableExtensions.SubscribeSafe[[System.Reactive.Unit, System.Reactive, Version=6.0.0.0, Culture=neutral, PublicKeyToken=94bc3704cddfc263]](System.IObservable`1<System.Reactive.Unit>, System.IObserver`1<System.Reactive.Unit>)
   at System.Reactive.Linq.ObservableImpl.Catch`2+_[[System.Reactive.Unit, System.Reactive, Version=6.0.0.0, Culture=neutral, PublicKeyToken=94bc3704cddfc263],[System.__Canon, System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]].Run(System.IObservable`1<System.Reactive.Unit>)
   at System.Reactive.Linq.ObservableImpl.Catch`2[[System.Reactive.Unit, System.Reactive, Version=6.0.0.0, Culture=neutral, PublicKeyToken=94bc3704cddfc263],[System.__Canon, System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]].Run(_<System.Reactive.Unit,System.__Canon>)
   at System.Reactive.Producer`2+<>c[[System.Reactive.Unit, System.Reactive, Version=6.0.0.0, Culture=neutral, PublicKeyToken=94bc3704cddfc263],[System.__Canon, System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]].<SubscribeRaw>b__1_0(System.ValueTuple`2<System.Reactive.Producer`2<System.Reactive.Unit,System.__Canon>,System.__Canon>)
   at System.Reactive.Concurrency.Scheduler+<>c__75`1[[System.ValueTuple`2[[System.__Canon, System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.__Canon, System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]].<ScheduleAction>b__75_0(System.Reactive.Concurrency.IScheduler, System.ValueTuple`2<System.Action`1<System.ValueTuple`2<System.__Canon,System.__Canon>>,System.ValueTuple`2<System.__Canon,System.__Canon>>)
   at System.Reactive.Concurrency.CurrentThreadScheduler.Schedule[[System.ValueTuple`2[[System.__Canon, System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.ValueTuple`2[[System.__Canon, System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.__Canon, System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]](System.ValueTuple`2<System.__Canon,System.ValueTuple`2<System.__Canon,System.__Canon>>, System.TimeSpan, System.Func`3<System.Reactive.Concurrency.IScheduler,System.ValueTuple`2<System.__Canon,System.ValueTuple`2<System.__Canon,System.__Canon>>,System.IDisposable>)
   at System.Reactive.Concurrency.LocalScheduler.Schedule[[System.ValueTuple`2[[System.__Canon, System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.ValueTuple`2[[System.__Canon, System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.__Canon, System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]](System.ValueTuple`2<System.__Canon,System.ValueTuple`2<System.__Canon,System.__Canon>>, System.Func`3<System.Reactive.Concurrency.IScheduler,System.ValueTuple`2<System.__Canon,System.ValueTuple`2<System.__Canon,System.__Canon>>,System.IDisposable>)
   at System.Reactive.Concurrency.Scheduler.ScheduleAction[[System.ValueTuple`2[[System.__Canon, System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.__Canon, System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]](System.Reactive.Concurrency.IScheduler, System.ValueTuple`2<System.__Canon,System.__Canon>, System.Action`1<System.ValueTuple`2<System.__Canon,System.__Canon>>)
   at System.Reactive.Producer`2[[System.Reactive.Unit, System.Reactive, Version=6.0.0.0, Culture=neutral, PublicKeyToken=94bc3704cddfc263],[System.__Canon, System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]].SubscribeRaw(System.IObserver`1<System.Reactive.Unit>, Boolean)
   at System.ObservableExtensions.SubscribeSafe[[System.Reactive.Unit, System.Reactive, Version=6.0.0.0, Culture=neutral, PublicKeyToken=94bc3704cddfc263]](System.IObservable`1<System.Reactive.Unit>, System.IObserver`1<System.Reactive.Unit>)
   at System.Reactive.Linq.ObservableImpl.ConcatMany`1+ConcatManyOuterObserver[[System.Reactive.Unit, System.Reactive, Version=6.0.0.0, Culture=neutral, PublicKeyToken=94bc3704cddfc263]].Drain()
   at System.Reactive.Linq.ObservableImpl.ConcatMany`1+ConcatManyOuterObserver[[System.Reactive.Unit, System.Reactive, Version=6.0.0.0, Culture=neutral, PublicKeyToken=94bc3704cddfc263]].OnNext(System.IObservable`1<System.Reactive.Unit>)
   at System.Reactive.ScheduledObserver`1[[System.__Canon, System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]].Run(System.Object, System.Action`1<System.Object>)
   at System.Reactive.Concurrency.Scheduler+InvokeRec1State`1[[System.__Canon, System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]].InvokeFirst(System.__Canon)
   at System.Reactive.Concurrency.Scheduler.InvokeRec1[[System.__Canon, System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]](System.Reactive.Concurrency.IScheduler, System.ValueTuple`2<System.__Canon,System.Action`2<System.__Canon,System.Action`1<System.__Canon>>>)
   at System.Reactive.Concurrency.Scheduler+<>c__49`1[[System.__Canon, System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]].<Schedule>b__49_0(System.Reactive.Concurrency.IScheduler, System.ValueTuple`2<System.__Canon,System.Action`2<System.__Canon,System.Action`1<System.__Canon>>>)
   at System.Reactive.Concurrency.ImmediateScheduler.Schedule[[System.ValueTuple`2[[System.__Canon, System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.__Canon, System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]](System.ValueTuple`2<System.__Canon,System.__Canon>, System.Func`3<System.Reactive.Concurrency.IScheduler,System.ValueTuple`2<System.__Canon,System.__Canon>,System.IDisposable>)
   at System.Reactive.Concurrency.Scheduler.Schedule[[System.__Canon, System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]](System.Reactive.Concurrency.IScheduler, System.__Canon, System.Action`2<System.__Canon,System.Action`1<System.__Canon>>)
   at System.Reactive.ScheduledObserver`1[[System.__Canon, System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]].EnsureActiveSlow()
   at System.Reactive.ScheduledObserver`1[[System.__Canon, System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]].EnsureActive(Int32)
   at System.Reactive.ScheduledObserver`1[[System.__Canon, System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]].EnsureActive()
   at System.Reactive.Subjects.ReplaySubject`1+ReplayBase[[System.__Canon, System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]].OnNext(System.__Canon)
   at System.Reactive.Subjects.ReplaySubject`1[[System.__Canon, System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]].OnNext(System.__Canon)
   at OmniSharp.Extensions.JsonRpc.ProcessScheduler+<>c__DisplayClass2_1.<.ctor>b__3(System.ValueTuple`3<OmniSharp.Extensions.JsonRpc.RequestProcessType,System.String,OmniSharp.Extensions.JsonRpc.SchedulerDelegate>)
   at System.Reactive.AnonymousObserver`1[[System.ValueTuple`3[[OmniSharp.Extensions.JsonRpc.RequestProcessType, OmniSharp.Extensions.JsonRpc, Version=0.19.0.0, Culture=neutral, PublicKeyToken=6d868dff454e6022],[System.__Canon, System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.__Canon, System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]].OnNextCore(System.ValueTuple`3<OmniSharp.Extensions.JsonRpc.RequestProcessType,System.__Canon,System.__Canon>)
   at System.Reactive.ObserverBase`1[[System.ValueTuple`3[[OmniSharp.Extensions.JsonRpc.RequestProcessType, OmniSharp.Extensions.JsonRpc, Version=0.19.0.0, Culture=neutral, PublicKeyToken=6d868dff454e6022],[System.__Canon, System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.__Canon, System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]].OnNext(System.ValueTuple`3<OmniSharp.Extensions.JsonRpc.RequestProcessType,System.__Canon,System.__Canon>)
   at System.Reactive.Subjects.Subject`1[[System.ValueTuple`3[[OmniSharp.Extensions.JsonRpc.RequestProcessType, OmniSharp.Extensions.JsonRpc, Version=0.19.0.0, Culture=neutral, PublicKeyToken=6d868dff454e6022],[System.__Canon, System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.__Canon, System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]].OnNext(System.ValueTuple`3<OmniSharp.Extensions.JsonRpc.RequestProcessType,System.__Canon,System.__Canon>)
   at OmniSharp.Extensions.JsonRpc.ProcessScheduler.Add(OmniSharp.Extensions.JsonRpc.RequestProcessType, System.String, OmniSharp.Extensions.JsonRpc.SchedulerDelegate)
   at OmniSharp.Extensions.JsonRpc.DefaultRequestInvoker.InvokeNotification(OmniSharp.Extensions.JsonRpc.IRequestDescriptor`1<OmniSharp.Extensions.JsonRpc.IHandlerDescriptor>, OmniSharp.Extensions.JsonRpc.Server.Notification)
   at OmniSharp.Extensions.JsonRpc.InputHandler.HandleRequest(System.Buffers.ReadOnlySequence`1<Byte> ByRef)
   at OmniSharp.Extensions.JsonRpc.InputHandler+<ProcessInputStream>d__35.MoveNext()
   at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1+AsyncStateMachineBox`1[[System.Threading.Tasks.VoidTaskResult, System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[OmniSharp.Extensions.JsonRpc.InputHandler+<ProcessInputStream>d__35, OmniSharp.Extensions.JsonRpc, Version=0.19.0.0, Culture=neutral, PublicKeyToken=6d868dff454e6022]].ExecutionContextCallback(System.Object)
   at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(System.Threading.Thread, System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object)
   at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1+AsyncStateMachineBox`1[[System.Threading.Tasks.VoidTaskResult, System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[OmniSharp.Extensions.JsonRpc.InputHandler+<ProcessInputStream>d__35, OmniSharp.Extensions.JsonRpc, Version=0.19.0.0, Culture=neutral, PublicKeyToken=6d868dff454e6022]].MoveNext(System.Threading.Thread)
   at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1+AsyncStateMachineBox`1[[System.Threading.Tasks.VoidTaskResult, System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[OmniSharp.Extensions.JsonRpc.InputHandler+<ProcessInputStream>d__35, OmniSharp.Extensions.JsonRpc, Version=0.19.0.0, Culture=neutral, PublicKeyToken=6d868dff454e6022]].ExecuteFromThreadPool(System.Threading.Thread)
   at System.Threading.ThreadPoolWorkQueue.Dispatch()
   at System.Threading.PortableThreadPool+WorkerThread.WorkerThreadStart()
7:04:51 AM: Error: Connection closed
[Info  - 7:04:51 AM] Connection to server got closed. Server will restart.

@RT235
Copy link

RT235 commented Jan 27, 2025

I cannot share the Bicep output or Bicep file being compiled for confidential reasons, however we are seeing the exact same repetition of these two lines in the bicep output as @average-everyman has attached:

at System.Linq.Enumerable+SelectManySingleSelectorIterator`2[[System.Collections.Generic.KeyValuePair`2[[System.__Canon, System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.__Canon, System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.__Canon, System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]].MoveNext()
   at Bicep.Core.Analyzers.Linter.Common.FindPossibleSecretsVisitor+<FindPathsToSecureTypeComponents>d__11.MoveNext()

@average-everyman
Copy link
Author

@anthony-c-martin apologies, I am also not able to share the bicep project I am afraid...

@MattDaines
Copy link

MattDaines commented Jan 28, 2025

Hi all! My VS Code has also been throwing these stack traces when I've been working on an application gateway module. This has also impacted our DevOps pipelines (which was harder to troubleshoot as the stack trace isn't visible in the pipeline outputs).

I started testing locally originally with PowerShell using Test-AzResourceGroupDeployment/Test-AzSubscriptionDeployment which was successfully validating the template. The pipelines however use Az CLI so I figured I'd better use that for testing. az deployment sub validate threw similar stack traces to what I was seeing in VS Code. Walking further up the chain az bicep build saw the same error.

Long story short, I started to try to isolate the problem as I could build other templates (including the AVM public IP address resource) and I found the "offending" code in our public IP address module our app gateway template was using. The code was an output that's supposed to output the public IP address:

@description('The public IP address of the public IP address resource.')
output ipAddress string = contains(publicIpAddress.properties, 'ipAddress') ? publicIpAddress.properties.ipAddress : ''

Swapping this output value with what was in AVM has let me progress.

Repro Steps

  • Change the AVM public IP address ipAddress output from publicIpAddress.properties.?ipAddress ?? '' to contains(publicIpAddress.properties, 'ipAddress') ? publicIpAddress.properties.ipAddress : ''
  • Attempt a az bicep build

AzCLI Details

az version

{
  "azure-cli": "2.67.0",
  "azure-cli-core": "2.67.0",
  "azure-cli-telemetry": "1.1.0",
  "extensions": {
    "bastion": "0.3.0"
  }
}

az bicep version

Bicep CLI version 0.33.13 (48521b997f)


A colleague could az bicep build with the "broken" code on an older version of the Az module:

azure-cli: 2.64.0
azure-cli-core: 2.64.0

Bicep CLI version 0.32.4 (b326faa456)

@anthony-c-martin
Copy link
Member

@MattDaines thanks for sharing. I was able to repro as well with the AVM module, and was able to turn this into a minimal repro which causes the same issue on my machine:

@description('Required. The name of the Public IP Address.')
param name string

resource publicIpAddress 'Microsoft.Network/publicIPAddresses@2023-09-01' = {
  name: name
  location: resourceGroup().location
  sku: {
    name: 'Basic'
    tier: 'Regional'
  }
  properties: {
    publicIPAddressVersion: 'IPv4'
    publicIPAllocationMethod: 'Static'
    idleTimeoutInMinutes: 4
    ipTags: []
  }
}

@description('The public IP address of the public IP address resource.')
output ipAddress string = contains(publicIpAddress.properties, 'ipAddress') ? publicIpAddress.properties.ipAddress : ''

@anthony-c-martin
Copy link
Member

anthony-c-martin commented Jan 28, 2025

I used git bisect to narrow it down to this PR: #15825. @jeskew, could you take a look?

This hasn't changed in a long time, but removing the element from the "visited" list here feels suspect as it undercuts the original intention of avoiding infinite recursion:

As far as I can tell, this is what's causing us to get stuck recursing, but it's not clear why the above PR would have impacted this, and why this hasn't been a problem before.

Here's the test case I used with bisect:

    [TestMethod]
    public void Test_Issue16219()
    {
        // https://github.com/Azure/bicep/issues/16219
        var result = CompilationHelper.Compile("""
@description('Required. The name of the Public IP Address.')
param name string

resource publicIpAddress 'Microsoft.Network/publicIPAddresses@2023-09-01' = {
  name: name
  location: resourceGroup().location
  sku: {
    name: 'Basic'
    tier: 'Regional'
  }
  properties: {
    publicIPAddressVersion: 'IPv4'
    publicIPAllocationMethod: 'Static'
    idleTimeoutInMinutes: 4
    ipTags: []
  }
}

@description('The public IP address of the public IP address resource.')
output ipAddress string = contains(publicIpAddress.properties, 'ipAddress') ? publicIpAddress.properties.ipAddress : ''
""");
    }

@jeskew jeskew self-assigned this Jan 28, 2025
@jeskew jeskew added the bug Something isn't working label Jan 28, 2025
jeskew added a commit that referenced this issue Jan 28, 2025
…perty flags (#16235)

Resolves #16219

The server crash reported in #16219 was caused by
https://github.com/Azure/bicep/pull/15825/files#diff-7d66583c4922f57735a4eac96cd074d356e8eace34ec5900860f093f3d0cbc69R701.
The FindPossibleSecretsVisitor relies on object identity to detect and
stop infinitely walking recursive types, and the linked line caused
otherwise identical object types within the assigned type of a
`resource` symbol to have different identities.
###### Microsoft Reviewers: [Open in
CodeFlow](https://microsoft.github.io/open-pr/?codeflow=https://github.com/Azure/bicep/pull/16235)
@RT235
Copy link

RT235 commented Jan 29, 2025

I cannot share the Bicep output or Bicep file being compiled for confidential reasons, however we are seeing the exact same repetition of these two lines in the bicep output as @average-everyman has attached:

at System.Linq.Enumerable+SelectManySingleSelectorIterator`2[[System.Collections.Generic.KeyValuePair`2[[System.__Canon, System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.__Canon, System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.__Canon, System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]].MoveNext()
   at Bicep.Core.Analyzers.Linter.Common.FindPossibleSecretsVisitor+<FindPathsToSecureTypeComponents>d__11.MoveNext()

Hi, this has been closed, but Bicep is still crashing - Bicep CLI version 0.33.13 (48521b9)

@average-everyman
Copy link
Author

average-everyman commented Jan 29, 2025

yes also crashing for me in Azure DevOps Microsoft hosted agent running with ubuntu-latest. Despite the initial bicep version of 32.4 it does auto update to 33.13 and then times out during az deployment sub validate. (does anyone have an idea how to prevent Bicep CLI from attempting auto update while we are waiting for new bicep release?)

@jeskew
Copy link
Member

jeskew commented Jan 30, 2025

The fix is included in 0.33.93.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working Needs: Triage 🔍
Projects
Status: Done
Development

Successfully merging a pull request may close this issue.

5 participants