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

Bicep crashes with out of stack on "type resource = resource<'Microsoft.Compute/virtualMachines'>" #15265

Open
StephenWeatherford opened this issue Oct 7, 2024 · 0 comments

Comments

@StephenWeatherford
Copy link
Contributor

Type this into vscode:

type resource = resource<'Microsoft.Compute/virtualMachines'>
  Message: Internal Error - System.InsufficientExecutionStackException: Insufficient stack to continue executing the program safely. This can happen from having too many functions on the call stack or function on the stack using too much stack space.
   at System.Runtime.CompilerServices.RuntimeHelpers.EnsureSufficientExecutionStack()
   at Bicep.Core.TypeSystem.DeclaredTypeManager.<>c__DisplayClass39_0.<TryGetTypeAssignmentFromTypeSyntax>b__0(SyntaxBase s) in C:\__w\1\s\bicep\src\Bicep.Core\TypeSystem\DeclaredTypeManager.cs:line 448
   at Bicep.Core.TypeSystem.DeclaredTypeManager.GetUserDefinedTypeType(TypeAliasSymbol symbol) in C:\__w\1\s\bicep\src\Bicep.Core\TypeSystem\DeclaredTypeManager.cs:line 228
   at Bicep.Core.TypeSystem.DeclaredTypeManager.GetTypeType(TypeDeclarationSyntax syntax) in C:\__w\1\s\bicep\src\Bicep.Core\TypeSystem\DeclaredTypeManager.cs:line 211
   at Bicep.Core.TypeSystem.TypeAssignmentVisitor.<>c__DisplayClass31_0.<VisitTypeDeclarationSyntax>b__0(IDiagnosticWriter diagnostics) in C:\__w\1\s\bicep\src\Bicep.Core\TypeSystem\TypeAssignmentVisitor.cs:line 512
   at Bicep.Core.TypeSystem.TypeAssignmentVisitor.<>c__DisplayClass18_0.<AssignTypeWithCaching>b__0(SyntaxBase key) in C:\__w\1\s\bicep\src\Bicep.Core\TypeSystem\TypeAssignmentVisitor.cs:line 92
   at Bicep.Core.TypeSystem.TypeAssignmentVisitor.GetTypeAssignment(SyntaxBase syntax) in C:\__w\1\s\bicep\src\Bicep.Core\TypeSystem\TypeAssignmentVisitor.cs:line 57
   at Bicep.Core.TypeSystem.DeclaredTypeManager.InstantiateType(ParameterizedTypeInstantiationSyntax syntax) in C:\__w\1\s\bicep\src\Bicep.Core\TypeSystem\DeclaredTypeManager.cs:line 548
   at Bicep.Core.TypeSystem.DeclaredTypeManager.InstantiateType(ParameterizedTypeInstantiationSyntaxBase syntax) in C:\__w\1\s\bicep\src\Bicep.Core\TypeSystem\DeclaredTypeManager.cs:line 539
   at Bicep.Core.TypeSystem.DeclaredTypeManager.<>c__DisplayClass39_0.<TryGetTypeAssignmentFromTypeSyntax>b__0(SyntaxBase s) in C:\__w\1\s\bicep\src\Bicep.Core\TypeSystem\DeclaredTypeManager.cs:line 456
   at Bicep.Core.TypeSystem.DeclaredTypeManager.GetUserDefinedTypeType(TypeAliasSymbol symbol) in C:\__w\1\s\bicep\src\Bicep.Core\TypeSystem\DeclaredTypeManager.cs:line 228
...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Todo
Development

No branches or pull requests

3 participants