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

AllWebProjectsRestoreAndBuild failing to new F# projects #40011

Closed
Forgind opened this issue Apr 4, 2024 · 3 comments
Closed

AllWebProjectsRestoreAndBuild failing to new F# projects #40011

Forgind opened this issue Apr 4, 2024 · 3 comments
Labels

Comments

@Forgind
Copy link
Member

Forgind commented Apr 4, 2024

Build Information

Build: https://dev.azure.com/dnceng-public/cbb18261-c48f-4abb-8651-8cdcb5474649/_build/results?buildId=629731
Build error leg or test failing: Microsoft.DotNet.Cli.New.IntegrationTests.WebProjectsTests.AllWebProjectsRestoreAndBuild
Pull request: https://github.com/dotnet/sdk.git/pull/40003

Error Message

Expected command to exit with 0 but it did not.
File Name: /mnt/vss/_work/1/s/artifacts/bin/redist/Release/dotnet/dotnet
Arguments: new mvc -lang F# -f net6.0 --debug:custom-hive /mnt/vss/_work/1/s/artifacts/tmp/Release/dotnet-new.IntegrationTests/SharedHomeDirectory/20240404001806267
Exit Code: 134
StdOut:

StdErr:
Process terminated. Assertion failed.
Unbalanced condition
   at Microsoft.TemplateEngine.Core.Expressions.Cpp.CppStyleEvaluatorDefinition.EvaluateCondition(IReadOnlyList`1 tokens, IReadOnlyList`1 values)
   at Microsoft.TemplateEngine.Core.Expressions.Cpp.CppStyleEvaluatorDefinition.Evaluate(IProcessorState processor, Int32& bufferLength, Int32& currentBufferPosition, Boolean& faulted)
   at Microsoft.TemplateEngine.Core.Operations.Conditional.Implementation.EvaluationState.Evaluate(IProcessorState processor, Int32& bufferLength, Int32& currentBufferPosition)
   at Microsoft.TemplateEngine.Core.Operations.Conditional.Implementation.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, IEnumerable`1 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, IReadOnlyDictionary`2 inputParameters, Boolean forceCreation, String baselineName, Boolean dryRun, CancellationToken cancellationToken)
   at Microsoft.TemplateEngine.Cli.TemplateInvoker.CreateTemplateAsync(TemplateCommandArgs templateArgs, CancellationToken cancellationToken) in /_/src/Cli/Microsoft.TemplateEngine.Cli/TemplateInvoker.cs:line 160
   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) in /_/src/Cli/Microsoft.TemplateEngine.Cli/TemplateInvoker.cs:line 60
   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) in /_/src/Cli/Microsoft.TemplateEngine.Cli/Commands/create/TemplateCommand.cs:line 171
   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.HandleTemplateInstantiationAsync(InstantiateCommandArgs args, IEngineEnvironmentSettings environmentSettings, TemplatePackageManager templatePackageManager, TemplateGroup templateGroup, CancellationToken cancellationToken) in /_/src/Cli/Microsoft.TemplateEngine.Cli/Commands/create/InstantiateCommand.cs:line 279
   at System.Runtime.CompilerServices.AsyncMethodBuilderCore.Start[TStateMachine](TStateMachine& stateMachine)
   at Microsoft.TemplateEngine.Cli.Commands.InstantiateCommand.HandleTemplateInstantiationAsync(InstantiateCommandArgs args, IEngineEnvironmentSettings environmentSettings, TemplatePackageManager templatePackageManager, TemplateGroup templateGroup, CancellationToken cancellationToken)
   at Microsoft.TemplateEngine.Cli.Commands.InstantiateCommand.ExecuteIntAsync(InstantiateCommandArgs instantiateArgs, IEngineEnvironmentSettings environmentSettings, TemplatePackageManager templatePackageManager, ParseResult parseResult, CancellationToken cancellationToken) in /_/src/Cli/Microsoft.TemplateEngine.Cli/Commands/create/InstantiateCommand.cs:line 223
   at System.Runtime.CompilerServices.AsyncMethodBuilderCore.Start[TStateMachine](TStateMachine& stateMachine)
   at Microsoft.TemplateEngine.Cli.Commands.InstantiateCommand.ExecuteIntAsync(InstantiateCommandArgs instantiateArgs, IEngineEnvironmentSettings environmentSettings, TemplatePackageManager templatePackageManager, ParseResult parseResult, CancellationToken cancellationToken)
   at Microsoft.TemplateEngine.Cli.Commands.InstantiateCommand.ExecuteAsync(NewCommandArgs newCommandArgs, IEngineEnvironmentSettings environmentSettings, TemplatePackageManager templatePackageManager, ParseResult parseResult, CancellationToken cancellationToken) in /_/src/Cli/Microsoft.TemplateEngine.Cli/Commands/create/InstantiateCommand.cs:line 68
   at Microsoft.TemplateEngine.Cli.Commands.NewCommand.ExecuteAsync(NewCommandArgs args, IEngineEnvironmentSettings environmentSettings, TemplatePackageManager templatePackageManager, ParseResult parseResult, CancellationToken cancellationToken) in /_/src/Cli/Microsoft.TemplateEngine.Cli/Commands/NewCommand.cs:line 157
   at Microsoft.TemplateEngine.Cli.Commands.BaseCommand`1.CommandAction.InvokeAsync(ParseResult parseResult, CancellationToken cancellationToken) in /_/src/Cli/Microsoft.TemplateEngine.Cli/Commands/BaseCommand.cs:line 242
   at System.Runtime.CompilerServices.AsyncMethodBuilderCore.Start[TStateMachine](TStateMachine& stateMachine)
   at Microsoft.TemplateEngine.Cli.Commands.BaseCommand`1.CommandAction.InvokeAsync(ParseResult parseResult, CancellationToken cancellationToken)
   at System.CommandLine.Invocation.InvocationPipeline.InvokeAsync(ParseResult parseResult, CancellationToken cancellationToken)
   at System.Runtime.CompilerServices.AsyncMethodBuilderCore.Start[TStateMachine](TStateMachine& stateMachine)
   at System.CommandLine.Invocation.InvocationPipeline.InvokeAsync(ParseResult parseResult, CancellationToken cancellationToken)
   at System.CommandLine.ParseResult.Invoke()
   at Microsoft.DotNet.Cli.Program.ProcessArgs(String[] args, TimeSpan startupTime, ITelemetry telemetryClient) in /_/src/Cli/dotnet/Program.cs:line 233
   at Microsoft.DotNet.Cli.Program.Main(String[] args) in /_/src/Cli/dotnet/Program.cs:line 74

Fill the error message using step by step known issues guidance.

{
  "ErrorMessage": "at Microsoft.TemplateEngine.Core.Expressions.Cpp.CppStyleEvaluatorDefinition",
  "BuildRetry": false,
  "ExcludeConsoleLog": false
}

Report

Summary

24-Hour Hit Count 7-Day Hit Count 1-Month Count
0 0 0

Known issue validation

Build: 🔎 https://dev.azure.com/dnceng-public/public/_build/results?buildId=629731
Error message validated: [Arguments: new mvc -lang F#.*Exit Code: 134.*Unbalanced condition]
Result validation: ❌ Known issue did not match with the provided build.
Validation performed at: 4/8/2024 7:03:29 PM UTC

@dotnet-issue-labeler dotnet-issue-labeler bot added Area-Infrastructure untriaged Request triage from a team member labels Apr 4, 2024
@baronfel
Copy link
Member

baronfel commented Apr 6, 2024

@DamianEdwards did the MVC templates for F# change recently? The template engine seems to use a) trying to use C++-style comment detection and b) finding some sort of grammar error in the conditional used, so I'm wondering if there's been a change in the content that might cause it. If not, then the template engine would need to be looked into.

@MiYanni
Copy link
Member

MiYanni commented Apr 9, 2024

It doesn't seem to be collecting the failure PR builds appropriately. I'm closing and opening a new one.

@MiYanni MiYanni closed this as completed Apr 9, 2024
@Forgind Forgind closed this as not planned Won't fix, can't repro, duplicate, stale Apr 9, 2024
@MiYanni
Copy link
Member

MiYanni commented Apr 9, 2024

New issue: #40071

Didn't work again. Gonna keep trying this until I figure out how it works.

Got it working: #40073

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

No branches or pull requests

3 participants