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

[NETSDKE2E][Regression]With 7.0.317 SDK installed, .Net Host will stop working when creating F# mvc/webapi project. #41076

Closed
vdanche opened this issue May 22, 2024 · 3 comments
Labels
Area-FSharp untriaged Request triage from a team member

Comments

@vdanche
Copy link
Member

vdanche commented May 22, 2024

1.install 7.0.317 SDK on win11-x64
2.in CLI, dotnet new mvc -lang F# -o fmvc
or dotnet new webapi -lang F# -o fwebapi
Expected Result:
F# mvc project can be install successfully.

Actual Result:
Failed with below error:
image

Process terminated. Assertion failed.
Unbalanced condition
at Microsoft.TemplateEngine.Core.Expressions.Cpp.CppStyleEvaluatorDefinition.EvaluateCondition(IReadOnlyList1 tokens, IReadOnlyList1 values)
at Microsoft.TemplateEngine.Core.Expressions.Cpp.CppStyleEvaluatorDefinition.Evaluate(IProcessorState processor, Int32& bufferLength, Int32& currentBufferPosition, Boolean& faulted)
at Microsoft.TemplateEngine.Core.Operations.Conditional.Impl.EvaluationState.Evaluate(IProcessorState processor, Int32& bufferLength, Int32& currentBufferPosition)
at Microsoft.TemplateEngine.Core.Operations.Conditional.Impl.HandleMatch(IProcessorState processor, Int32 bufferLength, Int32& currentBufferPosition, Int32 token)
at Microsoft.TemplateEngine.Core.Util.ProcessorState.Run()
at Microsoft.TemplateEngine.Core.Util.Processor.Run(Stream source, Stream target, Int32 bufferSize, Int32 flushThreshold)
at Microsoft.TemplateEngine.Core.Util.Processor.Run(Stream source, Stream target, Int32 bufferSize)
at Microsoft.TemplateEngine.Core.Util.Processor.Run(Stream source, Stream target)
at Microsoft.TemplateEngine.Core.Util.Orchestrator.ProcessFile(IFile sourceFile, String sourceRel, String targetDir, IGlobalRunSpec spec, IProcessor fallback, IEnumerable1 fileGlobProcessors) at Microsoft.TemplateEngine.Core.Util.Orchestrator.RunInternal(IDirectory sourceDir, String targetDir, IGlobalRunSpec spec) at Microsoft.TemplateEngine.Core.Util.Orchestrator.Run(IGlobalRunSpec spec, IDirectory sourceDir, String targetDir) at Microsoft.TemplateEngine.Orchestrator.RunnableProjects.RunnableProjectOrchestrator.Run(IGlobalRunSpec runSpec, IDirectory directoryInfo, String target) at Microsoft.TemplateEngine.Orchestrator.RunnableProjects.RunnableProjectGenerator.CreateAsync(IEngineEnvironmentSettings environmentSettings, IRunnableProjectConfig runnableProjectConfig, IDirectory templateSourceRoot, IParameterSetData parameters, String targetDirectory, CancellationToken cancellationToken) at System.Runtime.CompilerServices.AsyncMethodBuilderCore.Start[TStateMachine](TStateMachine& stateMachine) at Microsoft.TemplateEngine.Orchestrator.RunnableProjects.RunnableProjectGenerator.CreateAsync(IEngineEnvironmentSettings environmentSettings, IRunnableProjectConfig runnableProjectConfig, IDirectory templateSourceRoot, IParameterSetData parameters, String targetDirectory, CancellationToken cancellationToken) at Microsoft.TemplateEngine.Orchestrator.RunnableProjects.RunnableProjectGenerator.Microsoft.TemplateEngine.Abstractions.IGenerator.CreateAsync(IEngineEnvironmentSettings environmentSettings, ITemplate templateData, IParameterSetData parameters, String targetDirectory, CancellationToken cancellationToken) at Microsoft.TemplateEngine.Edge.Template.TemplateCreator.InstantiateAsync(ITemplateInfo templateInfo, String name, String fallbackName, String outputPath, InputDataSet inputParameters, Boolean forceCreation, String baselineName, Boolean dryRun, CancellationToken cancellationToken) at System.Runtime.CompilerServices.AsyncMethodBuilderCore.Start[TStateMachine](TStateMachine& stateMachine) at Microsoft.TemplateEngine.Edge.Template.TemplateCreator.InstantiateAsync(ITemplateInfo templateInfo, String name, String fallbackName, String outputPath, InputDataSet inputParameters, Boolean forceCreation, String baselineName, Boolean dryRun, CancellationToken cancellationToken) at Microsoft.TemplateEngine.Edge.Template.TemplateCreator.InstantiateAsync(ITemplateInfo templateInfo, String name, String fallbackName, String outputPath, IReadOnlyDictionary2 inputParameters, Boolean forceCreation, String baselineName, Boolean dryRun, CancellationToken cancellationToken)
at Microsoft.TemplateEngine.Cli.TemplateInvoker.CreateTemplateAsync(TemplateCommandArgs templateArgs, CancellationToken cancellationToken)
at System.Runtime.CompilerServices.AsyncMethodBuilderCore.Start[TStateMachine](TStateMachine& stateMachine)
at Microsoft.TemplateEngine.Cli.TemplateInvoker.CreateTemplateAsync(TemplateCommandArgs templateArgs, CancellationToken cancellationToken)
at Microsoft.TemplateEngine.Cli.TemplateInvoker.InvokeTemplateAsync(TemplateCommandArgs templateArgs, CancellationToken cancellationToken)
at System.Runtime.CompilerServices.AsyncMethodBuilderCore.Start[TStateMachine](TStateMachine& stateMachine)
at Microsoft.TemplateEngine.Cli.TemplateInvoker.InvokeTemplateAsync(TemplateCommandArgs templateArgs, CancellationToken cancellationToken)
at Microsoft.TemplateEngine.Cli.Commands.TemplateCommand.InvokeAsync(ParseResult parseResult, CancellationToken cancellationToken)
at System.Runtime.CompilerServices.AsyncMethodBuilderCore.Start[TStateMachine](TStateMachine& stateMachine)
at Microsoft.TemplateEngine.Cli.Commands.TemplateCommand.InvokeAsync(ParseResult parseResult, CancellationToken cancellationToken)
at Microsoft.TemplateEngine.Cli.Commands.InstantiateCommand.HandleTemplateInstantationAsync(InstantiateCommandArgs args, IEngineEnvironmentSettings environmentSettings, TemplatePackageManager templatePackageManager, TemplateGroup templateGroup, CancellationToken cancellationToken)
at System.Runtime.CompilerServices.AsyncMethodBuilderCore.Start[TStateMachine](TStateMachine& stateMachine)
at Microsoft.TemplateEngine.Cli.Commands.InstantiateCommand.HandleTemplateInstantationAsync(InstantiateCommandArgs args, IEngineEnvironmentSettings environmentSettings, TemplatePackageManager templatePackageManager, TemplateGroup templateGroup, CancellationToken cancellationToken)
at Microsoft.TemplateEngine.Cli.Commands.InstantiateCommand.ExecuteIntAsync(InstantiateCommandArgs instantiateArgs, IEngineEnvironmentSettings environmentSettings, TemplatePackageManager templatePackageManager, InvocationContext context)
at System.Runtime.CompilerServices.AsyncMethodBuilderCore.Start[TStateMachine](TStateMachine& stateMachine)
at Microsoft.TemplateEngine.Cli.Commands.InstantiateCommand.ExecuteIntAsync(InstantiateCommandArgs instantiateArgs, IEngineEnvironmentSettings environmentSettings, TemplatePackageManager templatePackageManager, InvocationContext context)
at Microsoft.TemplateEngine.Cli.Commands.BaseCommand1.InvokeAsync(InvocationContext context) at System.Runtime.CompilerServices.AsyncMethodBuilderCore.Start[TStateMachine](TStateMachine& stateMachine) at Microsoft.TemplateEngine.Cli.Commands.BaseCommand1.InvokeAsync(InvocationContext context)
at Microsoft.TemplateEngine.Cli.Commands.BaseCommand1.Invoke(InvocationContext context) at System.CommandLine.Invocation.InvocationPipeline.<>c__DisplayClass4_0.<<BuildInvocationChain>b__0>d.MoveNext() at System.Runtime.CompilerServices.AsyncMethodBuilderCore.Start[TStateMachine](TStateMachine& stateMachine) at System.CommandLine.Invocation.InvocationPipeline.<>c__DisplayClass4_0.<BuildInvocationChain>b__0(InvocationContext invocationContext, Func2 _)
at Microsoft.DotNet.Cli.Parser.<>c__DisplayClass17_0.<b__0>d.MoveNext()
at System.Runtime.CompilerServices.AsyncMethodBuilderCore.Start[TStateMachine](TStateMachine& stateMachine)
at Microsoft.DotNet.Cli.Parser.<>c__DisplayClass17_0.b__0(InvocationContext context, Func2 next) at System.CommandLine.CommandLineBuilderExtensions.<>c__DisplayClass11_0.<<UseHelp>b__0>d.MoveNext() at System.Runtime.CompilerServices.AsyncMethodBuilderCore.Start[TStateMachine](TStateMachine& stateMachine) at System.CommandLine.CommandLineBuilderExtensions.<>c__DisplayClass11_0.<UseHelp>b__0(InvocationContext context, Func2 next)
at System.CommandLine.CommandLineBuilderExtensions.<>c.<b__17_0>d.MoveNext()
at System.Runtime.CompilerServices.AsyncMethodBuilderCore.Start[TStateMachine](TStateMachine& stateMachine)
at System.CommandLine.CommandLineBuilderExtensions.<>c.b__17_0(InvocationContext context, Func2 next) at System.CommandLine.CommandLineBuilderExtensions.<>c__DisplayClass15_0.<<UseParseDirective>b__0>d.MoveNext() at System.Runtime.CompilerServices.AsyncMethodBuilderCore.Start[TStateMachine](TStateMachine& stateMachine) at System.CommandLine.CommandLineBuilderExtensions.<>c__DisplayClass15_0.<UseParseDirective>b__0(InvocationContext context, Func2 next)
at System.CommandLine.CommandLineBuilderExtensions.<>c__DisplayClass7_0.<b__0>d.MoveNext()
at System.Runtime.CompilerServices.AsyncMethodBuilderCore.Start[TStateMachine](TStateMachine& stateMachine)
at System.CommandLine.CommandLineBuilderExtensions.<>c__DisplayClass7_0.b__0(InvocationContext context, Func`2 next)
at System.CommandLine.Invocation.InvocationPipeline.g__FullInvocationChain|3_0(InvocationContext context)
at System.CommandLine.Invocation.InvocationPipeline.Invoke(IConsole console)
at Microsoft.DotNet.Cli.Program.ProcessArgs(String[] args, TimeSpan startupTime, ITelemetry telemetryClient)
at Microsoft.DotNet.Cli.Program.Main(String[] args)

dotnet --info:
.NET SDK:
Version: 7.0.317
Commit: 791ccb71b5

Runtime Environment:
OS Name: Windows
OS Version: 10.0.22631
OS Platform: Windows
RID: win10-x64
Base Path: C:\Program Files\dotnet\sdk\7.0.317\

Host:
Version: 7.0.20
Architecture: x64
Commit: 0fb6ac59fb

.NET SDKs installed:
7.0.317 [C:\Program Files\dotnet\sdk]

.NET runtimes installed:
Microsoft.AspNetCore.App 7.0.20 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.NETCore.App 7.0.20 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.WindowsDesktop.App 7.0.20 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]

Other architectures found:
None

Environment variables:
Not set

global.json file:
Not found

Learn more:
https://aka.ms/dotnet/info

Download .NET:
https://aka.ms/dotnet/download

@dotnet-issue-labeler dotnet-issue-labeler bot added Area-FSharp untriaged Request triage from a team member labels May 22, 2024
@v-xiaofchen
Copy link

This issue also repro's on MAC and Linux.
image

@v-ainigao
Copy link

This issue also repro's on ARM64OS.
image

@vdanche
Copy link
Member Author

vdanche commented May 24, 2024

not repro on new 7.0.317 build.
image

@vdanche vdanche closed this as completed May 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area-FSharp untriaged Request triage from a team member
Projects
None yet
Development

No branches or pull requests

3 participants