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

Debug assert thrown when creating new MVC project targeting F# #7919

Open
marcpopMSFT opened this issue Apr 30, 2024 · 0 comments
Open

Debug assert thrown when creating new MVC project targeting F# #7919

marcpopMSFT opened this issue Apr 30, 2024 · 0 comments

Comments

@marcpopMSFT
Copy link
Member

Product

dotnet CLI (dotnet new)

Describe The Bug

https://dev.azure.com/dnceng-public/public/_build/results?buildId=660886&view=ms.vss-test-web.build-test-results-tab&runId=16380260&resultId=100079&paneView=debug

Microsoft.DotNet.Cli.New.IntegrationTests.WebProjectsTests.AllWebProjectsRestoreAndBuild(testName: "mvc_fs-70", args: ["mvc", "-lang", "F#", "-f", "net7.0"])

Expected command to exit with 0 but it did not.\nFile Name: /Users/runner/work/1/s/artifacts/bin/redist/Release/dotnet/dotnet\nArguments: new mvc -lang F# -f net7.0 --debug:custom-hive /Users/runner/work/1/s/artifacts/tmp/Release/dotnet-new.IntegrationTests/SharedHomeDirectory/20240430161855664\nExit Code: 134\nStdOut:\n\nStdErr:\nProcess terminated. Assertion failed.\nUnbalanced condition\n at Microsoft.TemplateEngine.Core.Expressions.Cpp.CppStyleEvaluatorDefinition.EvaluateCondition(IReadOnlyList1 tokens, IReadOnlyList1 values)\n at Microsoft.TemplateEngine.Core.Expressions.Cpp.CppStyleEvaluatorDefinition.Evaluate(IProcessorState processor, Int32& bufferLength, Int32& currentBufferPosition, Boolean& faulted)\n at

To Reproduce

dotnet new mvc -lang F# (with a debug build of templating)

https://github.com/dotnet/templating/blob/main/src/Microsoft.TemplateEngine.Core/Expressions/Cpp/CppStyleEvaluatorDefinition.cs#L530

dotnet Info

repros in main through 6.0.

Visual Studio Version

No response

Additional context

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant