Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
b.R.Add(ImageUtil.LoadWpfImageElement) show error and hang the program Version 1.9.0
#1
This code create error everytime, even when I paste it in, only after updated to version 1.9.0
Code:
Copy      Help
using System.Windows;
using System.Windows.Controls;


var b = new wpfBuilder("My WPF app").Columns(0);

b.R.Add(ImageUtil.LoadWpfImageElement);

It also show an error message window, that make program hang when clicked

Error in Console:
Code:
Copy      Help
---- Debug assertion failed ----
!containsFunctionTypes(exact)
   at Microsoft.CodeAnalysis.CSharp.MethodTypeInferrer.Fix(CSharpCompilation compilation, ConversionsBase conversions, TypeParameterSymbol typeParameter, HashSet`1 exact, HashSet`1 lower, HashSet`1 upper, CompoundUseSiteInfo`1& useSiteInfo) in C:\code-lib\roslyn\src\Compilers\CSharp\Portable\Binder\Semantics\OverloadResolution\MethodTypeInference.cs:line 2853
   at Microsoft.CodeAnalysis.CSharp.MethodTypeInferrer.Fix(Int32 iParam, CompoundUseSiteInfo`1& useSiteInfo) in C:\code-lib\roslyn\src\Compilers\CSharp\Portable\Binder\Semantics\OverloadResolution\MethodTypeInference.cs:line 2806
   at Microsoft.CodeAnalysis.CSharp.MethodTypeInferrer.FixParameters(FixParametersPredicate predicate, CompoundUseSiteInfo`1& useSiteInfo) in C:\code-lib\roslyn\src\Compilers\CSharp\Portable\Binder\Semantics\OverloadResolution\MethodTypeInference.cs:line 969
   at Microsoft.CodeAnalysis.CSharp.MethodTypeInferrer.FixNondependentParameters(CompoundUseSiteInfo`1& useSiteInfo) in C:\code-lib\roslyn\src\Compilers\CSharp\Portable\Binder\Semantics\OverloadResolution\MethodTypeInference.cs:line 930
   at Microsoft.CodeAnalysis.CSharp.MethodTypeInferrer.DoSecondPhase(Binder binder, CompoundUseSiteInfo`1& useSiteInfo) in C:\code-lib\roslyn\src\Compilers\CSharp\Portable\Binder\Semantics\OverloadResolution\MethodTypeInference.cs:line 814
   at Microsoft.CodeAnalysis.CSharp.MethodTypeInferrer.InferTypeArgsSecondPhase(Binder binder, CompoundUseSiteInfo`1& useSiteInfo) in C:\code-lib\roslyn\src\Compilers\CSharp\Portable\Binder\Semantics\OverloadResolution\MethodTypeInference.cs:line 773
   at Microsoft.CodeAnalysis.CSharp.MethodTypeInferrer.InferTypeArgs(Binder binder, CompoundUseSiteInfo`1& useSiteInfo) in C:\code-lib\roslyn\src\Compilers\CSharp\Portable\Binder\Semantics\OverloadResolution\MethodTypeInference.cs:line 563
   at Microsoft.CodeAnalysis.CSharp.MethodTypeInferrer.Infer(Binder binder, ConversionsBase conversions, ImmutableArray`1 methodTypeParameters, NamedTypeSymbol constructedContainingTypeOfMethod, ImmutableArray`1 formalParameterTypes, ImmutableArray`1 formalParameterRefKinds, ImmutableArray`1 arguments, CompoundUseSiteInfo`1& useSiteInfo, Extensions extensions) in C:\code-lib\roslyn\src\Compilers\CSharp\Portable\Binder\Semantics\OverloadResolution\MethodTypeInference.cs:line 302
   at Microsoft.CodeAnalysis.CSharp.OverloadResolution.InferMethodTypeArguments(MethodSymbol method, ImmutableArray`1 originalTypeParameters, AnalyzedArguments arguments, EffectiveParameters originalEffectiveParameters, Boolean& hasTypeArgumentsInferredFromFunctionType, MemberAnalysisResult& error, CompoundUseSiteInfo`1& useSiteInfo) in C:\code-lib\roslyn\src\Compilers\CSharp\Portable\Binder\Semantics\OverloadResolution\OverloadResolution.cs:line 4344
   at Microsoft.CodeAnalysis.CSharp.OverloadResolution.IsApplicable[TMember](TMember member, TMember leastOverriddenMember, ArrayBuilder`1 typeArgumentsBuilder, AnalyzedArguments arguments, Options options, EffectiveParameters constructedFromEffectiveParameters, TypeWithAnnotations definitionParamsElementTypeOpt, Boolean isExpanded, ImmutableArray`1 argsToParamsMap, Boolean hasAnyRefOmittedArgument, Boolean inferWithDynamic, Boolean completeResults, Boolean dynamicConvertsToAnything, Boolean isMethodGroupConversion, CompoundUseSiteInfo`1& useSiteInfo) in C:\code-lib\roslyn\src\Compilers\CSharp\Portable\Binder\Semantics\OverloadResolution\OverloadResolution.cs:line 4242
   at Microsoft.CodeAnalysis.CSharp.OverloadResolution.IsMemberApplicableInNormalForm[TMember](TMember member, TMember leastOverriddenMember, ArrayBuilder`1 typeArguments, AnalyzedArguments arguments, Options options, Boolean completeResults, CompoundUseSiteInfo`1& useSiteInfo) in C:\code-lib\roslyn\src\Compilers\CSharp\Portable\Binder\Semantics\OverloadResolution\OverloadResolution.cs:line 4055
   at Microsoft.CodeAnalysis.CSharp.OverloadResolution.AddMemberToCandidateSet[TMember](TMember member, ArrayBuilder`1 results, ArrayBuilder`1 members, ArrayBuilder`1 typeArguments, AnalyzedArguments arguments, Boolean completeResults, Dictionary`2 containingTypeMapOpt, CompoundUseSiteInfo`1& useSiteInfo, Options options, Boolean checkOverriddenOrHidden) in C:\code-lib\roslyn\src\Compilers\CSharp\Portable\Binder\Semantics\OverloadResolution\OverloadResolution.cs:line 1165
   at Microsoft.CodeAnalysis.CSharp.OverloadResolution.PerformMemberOverloadResolutionStart[TMember](ArrayBuilder`1 results, ArrayBuilder`1 members, ArrayBuilder`1 typeArguments, AnalyzedArguments arguments, Boolean completeResults, CompoundUseSiteInfo`1& useSiteInfo, Options options, Boolean checkOverriddenOrHidden) in C:\code-lib\roslyn\src\Compilers\CSharp\Portable\Binder\Semantics\OverloadResolution\OverloadResolution.cs:line 378
   at Microsoft.CodeAnalysis.CSharp.OverloadResolution.PerformMemberOverloadResolution[TMember](ArrayBuilder`1 results, ArrayBuilder`1 members, ArrayBuilder`1 typeArguments, BoundExpression receiver, AnalyzedArguments arguments, Boolean completeResults, RefKind returnRefKind, TypeSymbol returnType, CallingConventionInfo& callingConventionInfo, CompoundUseSiteInfo`1& useSiteInfo, Options options, Boolean checkOverriddenOrHidden) in C:\code-lib\roslyn\src\Compilers\CSharp\Portable\Binder\Semantics\OverloadResolution\OverloadResolution.cs:line 445
   at Microsoft.CodeAnalysis.CSharp.OverloadResolution.MethodOrPropertyOverloadResolution[TMember](ArrayBuilder`1 members, ArrayBuilder`1 typeArguments, BoundExpression receiver, AnalyzedArguments arguments, OverloadResolutionResult`1 result, CompoundUseSiteInfo`1& useSiteInfo, Options options, RefKind returnRefKind, TypeSymbol returnType, CallingConventionInfo& callingConventionInfo) in C:\code-lib\roslyn\src\Compilers\CSharp\Portable\Binder\Semantics\OverloadResolution\OverloadResolution.cs:line 206
   at Microsoft.CodeAnalysis.CSharp.OverloadResolution.MethodInvocationOverloadResolution(ArrayBuilder`1 methods, ArrayBuilder`1 typeArguments, BoundExpression receiver, AnalyzedArguments arguments, OverloadResolutionResult`1 result, CompoundUseSiteInfo`1& useSiteInfo, Options options, RefKind returnRefKind, TypeSymbol returnType, CallingConventionInfo& callingConventionInfo) in C:\code-lib\roslyn\src\Compilers\CSharp\Portable\Binder\Semantics\OverloadResolution\OverloadResolution.cs:line 154
   at Microsoft.CodeAnalysis.CSharp.Binder.ResolveDefaultMethodGroup(BoundMethodGroup node, AnalyzedArguments analyzedArguments, CompoundUseSiteInfo`1& useSiteInfo, Options options, RefKind returnRefKind, TypeSymbol returnType, CallingConventionInfo& callingConvention) in C:\code-lib\roslyn\src\Compilers\CSharp\Portable\Binder\Binder_Expressions.cs:line 10475
   at Microsoft.CodeAnalysis.CSharp.Binder.ResolveMethodGroupInternal(BoundMethodGroup methodGroup, SyntaxNode expression, String methodName, AnalyzedArguments analyzedArguments, CompoundUseSiteInfo`1& useSiteInfo, Options options, RefKind returnRefKind, TypeSymbol returnType, CallingConventionInfo& callingConvention) in C:\code-lib\roslyn\src\Compilers\CSharp\Portable\Binder\Binder_Expressions.cs:line 10347
   at Microsoft.CodeAnalysis.CSharp.Binder.ResolveMethodGroup(BoundMethodGroup node, SyntaxNode expression, String methodName, AnalyzedArguments analyzedArguments, CompoundUseSiteInfo`1& useSiteInfo, Options options, RefKind returnRefKind, TypeSymbol returnType, CallingConventionInfo& callingConventionInfo) in C:\code-lib\roslyn\src\Compilers\CSharp\Portable\Binder\Binder_Expressions.cs:line 10299
   at Microsoft.CodeAnalysis.CSharp.Binder.BindMethodGroupInvocation(SyntaxNode syntax, SyntaxNode expression, String methodName, BoundMethodGroup methodGroup, AnalyzedArguments analyzedArguments, BindingDiagnosticBag diagnostics, CSharpSyntaxNode queryClause, Boolean ignoreNormalFormIfHasValidParamsParameter, Boolean& anyApplicableCandidates, Boolean disallowExpandedNonArrayParams) in C:\code-lib\roslyn\src\Compilers\CSharp\Portable\Binder\Binder_Invocation.cs:line 711
   at Microsoft.CodeAnalysis.CSharp.Binder.BindInvocationExpression(SyntaxNode node, SyntaxNode expression, String methodName, BoundExpression boundExpression, AnalyzedArguments analyzedArguments, BindingDiagnosticBag diagnostics, CSharpSyntaxNode queryClause, Boolean ignoreNormalFormIfHasValidParamsParameter, Boolean disallowExpandedNonArrayParams) in C:\code-lib\roslyn\src\Compilers\CSharp\Portable\Binder\Binder_Invocation.cs:line 353
   at Microsoft.CodeAnalysis.CSharp.Binder.<BindInvocationExpression>g__bindArgumentsAndInvocation|605_0(InvocationExpressionSyntax node, BoundExpression boundExpression, AnalyzedArguments analyzedArguments, BindingDiagnosticBag diagnostics) in C:\code-lib\roslyn\src\Compilers\CSharp\Portable\Binder\Binder_Invocation.cs:line 248
   at Microsoft.CodeAnalysis.CSharp.Binder.BindInvocationExpression(InvocationExpressionSyntax node, BindingDiagnosticBag diagnostics) in C:\code-lib\roslyn\src\Compilers\CSharp\Portable\Binder\Binder_Invocation.cs:line 237
   at Microsoft.CodeAnalysis.CSharp.Binder.<BindExpressionInternal>g__bindExpressionInternal|344_0(ExpressionSyntax node, BindingDiagnosticBag diagnostics, Boolean invoked, Boolean indexed) in C:\code-lib\roslyn\src\Compilers\CSharp\Portable\Binder\Binder_Expressions.cs:line 604
   at Microsoft.CodeAnalysis.CSharp.Binder.BindExpressionInternal(ExpressionSyntax node, BindingDiagnosticBag diagnostics, Boolean invoked, Boolean indexed) in C:\code-lib\roslyn\src\Compilers\CSharp\Portable\Binder\Binder_Expressions.cs:line 579
   at Microsoft.CodeAnalysis.CSharp.Binder.BindExpression(ExpressionSyntax node, BindingDiagnosticBag diagnostics, Boolean invoked, Boolean indexed) in C:\code-lib\roslyn\src\Compilers\CSharp\Portable\Binder\Binder_Expressions.cs:line 536
   at Microsoft.CodeAnalysis.CSharp.Binder.BindValue(ExpressionSyntax node, BindingDiagnosticBag diagnostics, BindValueKind valueKind) in C:\code-lib\roslyn\src\Compilers\CSharp\Portable\Binder\Binder_Expressions.cs:line 238
   at Microsoft.CodeAnalysis.CSharp.Binder.BindRValueWithoutTargetType(ExpressionSyntax node, BindingDiagnosticBag diagnostics, Boolean reportNoTargetType) in C:\code-lib\roslyn\src\Compilers\CSharp\Portable\Binder\Binder_Expressions.cs:line 244
   at Microsoft.CodeAnalysis.CSharp.Binder.BindExpressionStatement(CSharpSyntaxNode node, ExpressionSyntax syntax, Boolean allowsAnyExpression, BindingDiagnosticBag diagnostics) in C:\code-lib\roslyn\src\Compilers\CSharp\Portable\Binder\Binder_Statements.cs:line 653
   at Microsoft.CodeAnalysis.CSharp.Binder.BindExpressionStatement(ExpressionStatementSyntax node, BindingDiagnosticBag diagnostics) in C:\code-lib\roslyn\src\Compilers\CSharp\Portable\Binder\Binder_Statements.cs:line 646
   at Microsoft.CodeAnalysis.CSharp.Binder.BindStatement(StatementSyntax node, BindingDiagnosticBag diagnostics) in C:\code-lib\roslyn\src\Compilers\CSharp\Portable\Binder\Binder_Statements.cs:line 73
   at Microsoft.CodeAnalysis.CSharp.Binder.BindSimpleProgramCompilationUnit(CompilationUnitSyntax compilationUnit, BindingDiagnosticBag diagnostics) in C:\code-lib\roslyn\src\Compilers\CSharp\Portable\Binder\Binder_Statements.cs:line 3685
   at Microsoft.CodeAnalysis.CSharp.Binder.BindSimpleProgram(CompilationUnitSyntax compilationUnit, BindingDiagnosticBag diagnostics) in C:\code-lib\roslyn\src\Compilers\CSharp\Portable\Binder\Binder_Statements.cs:line 3668
   at Microsoft.CodeAnalysis.CSharp.Binder.BindMethodBody(CSharpSyntaxNode syntax, BindingDiagnosticBag diagnostics) in C:\code-lib\roslyn\src\Compilers\CSharp\Portable\Binder\Binder_Statements.cs:line 3659
   at Microsoft.CodeAnalysis.CSharp.MethodBodySemanticModel.Bind(Binder binder, CSharpSyntaxNode node, BindingDiagnosticBag diagnostics) in C:\code-lib\roslyn\src\Compilers\CSharp\Portable\Compilation\MethodBodySemanticModel.cs:line 101
   at Microsoft.CodeAnalysis.CSharp.MemberSemanticModel.<EnsureNullabilityAnalysisPerformedIfNecessary>g__bind|132_0(CSharpSyntaxNode root, Binder& binder, <>c__DisplayClass132_0&) in C:\code-lib\roslyn\src\Compilers\CSharp\Portable\Compilation\MemberSemanticModel.cs:line 1988
   at Microsoft.CodeAnalysis.CSharp.MemberSemanticModel.EnsureNullabilityAnalysisPerformedIfNecessary() in C:\code-lib\roslyn\src\Compilers\CSharp\Portable\Compilation\MemberSemanticModel.cs:line 1963
   at Microsoft.CodeAnalysis.CSharp.MemberSemanticModel.GetBoundNodes(CSharpSyntaxNode node) in C:\code-lib\roslyn\src\Compilers\CSharp\Portable\Compilation\MemberSemanticModel.cs:line 2079
   at Microsoft.CodeAnalysis.CSharp.MemberSemanticModel.GetLowerBoundNode(CSharpSyntaxNode node) in C:\code-lib\roslyn\src\Compilers\CSharp\Portable\Compilation\MemberSemanticModel.cs:line 554
   at Microsoft.CodeAnalysis.CSharp.MemberSemanticModel.GetBoundNodes(CSharpSyntaxNode node, CSharpSyntaxNode& bindableNode, BoundNode& lowestBoundNode, BoundNode& highestBoundNode, BoundNode& boundParent) in C:\code-lib\roslyn\src\Compilers\CSharp\Portable\Compilation\MemberSemanticModel.cs:line 1337
   at Microsoft.CodeAnalysis.CSharp.MemberSemanticModel.GetSymbolInfoWorker(CSharpSyntaxNode node, SymbolInfoOptions options, CancellationToken cancellationToken) in C:\code-lib\roslyn\src\Compilers\CSharp\Portable\Compilation\MemberSemanticModel.cs:line 1215
   at Microsoft.CodeAnalysis.CSharp.SyntaxTreeSemanticModel.GetSymbolInfoWorker(CSharpSyntaxNode node, SymbolInfoOptions options, CancellationToken cancellationToken) in C:\code-lib\roslyn\src\Compilers\CSharp\Portable\Compilation\SyntaxTreeSemanticModel.cs:line 219
   at Microsoft.CodeAnalysis.CSharp.CSharpSemanticModel.GetSymbolInfo(ExpressionSyntax expression, CancellationToken cancellationToken) in C:\code-lib\roslyn\src\Compilers\CSharp\Portable\Compilation\CSharpSemanticModel.cs:line 572
   at Microsoft.CodeAnalysis.CSharp.CSharpExtensions.GetSymbolInfo(SemanticModel semanticModel, ExpressionSyntax expression, CancellationToken cancellationToken) in C:\code-lib\roslyn\src\Compilers\CSharp\Portable\CSharpExtensions.cs:line 501
   at Microsoft.CodeAnalysis.CSharp.Classification.Classifiers.NameSyntaxClassifier.ClassifyTypeSyntax(SimpleNameSyntax name, SemanticModel semanticModel, SegmentedList`1 result, CancellationToken cancellationToken) in C:\code-lib\roslyn\src\Workspaces\CSharp\Portable\Classification\SyntaxClassification\NameSyntaxClassifier.cs:line 51
   at Microsoft.CodeAnalysis.CSharp.Classification.Classifiers.NameSyntaxClassifier.AddClassifications(SyntaxNode syntax, TextSpan textSpan, SemanticModel semanticModel, ClassificationOptions options, SegmentedList`1 result, CancellationToken cancellationToken) in C:\code-lib\roslyn\src\Workspaces\CSharp\Portable\Classification\SyntaxClassification\NameSyntaxClassifier.cs:line 33
   at Microsoft.CodeAnalysis.Classification.AbstractSyntaxClassificationService.Worker.ClassifyNode(SyntaxNode syntax) in C:\code-lib\roslyn\src\Workspaces\Core\Portable\Classification\SyntaxClassification\AbstractSyntaxClassificationService.Worker.cs:line 133
   at Microsoft.CodeAnalysis.Classification.AbstractSyntaxClassificationService.Worker.ClassifyNodeOrToken(SyntaxNodeOrToken nodeOrToken) in C:\code-lib\roslyn\src\Workspaces\Core\Portable\Classification\SyntaxClassification\AbstractSyntaxClassificationService.Worker.cs:line 118
   at Microsoft.CodeAnalysis.Classification.AbstractSyntaxClassificationService.Worker.ProcessNodes() in C:\code-lib\roslyn\src\Workspaces\Core\Portable\Classification\SyntaxClassification\AbstractSyntaxClassificationService.Worker.cs:line 104
   at Microsoft.CodeAnalysis.Classification.AbstractSyntaxClassificationService.Worker.Classify(SemanticModel semanticModel, ImmutableArray`1 textSpans, SegmentedList`1 list, Func`2 getNodeClassifiers, Func`2 getTokenClassifiers, ClassificationOptions options, CancellationToken cancellationToken) in C:\code-lib\roslyn\src\Workspaces\Core\Portable\Classification\SyntaxClassification\AbstractSyntaxClassificationService.Worker.cs:line 71
   at Microsoft.CodeAnalysis.Classification.AbstractSyntaxClassificationService.AddSemanticClassifications(SemanticModel semanticModel, ImmutableArray`1 textSpans, Func`2 getNodeClassifiers, Func`2 getTokenClassifiers, SegmentedList`1 result, ClassificationOptions options, CancellationToken cancellationToken) in C:\code-lib\roslyn\src\Workspaces\Core\Portable\Classification\SyntaxClassification\AbstractSyntaxClassificationService.cs:line 57
   at Microsoft.CodeAnalysis.Classification.SyntaxClassificationServiceExtensions.AddSemanticClassifications(ISyntaxClassificationService classificationService, SemanticModel semanticModel, TextSpan textSpan, Func`2 getNodeClassifiers, Func`2 getTokenClassifiers, SegmentedList`1 result, ClassificationOptions options, CancellationToken cancellationToken) in C:\code-lib\roslyn\src\Workspaces\Core\Portable\Classification\SyntaxClassification\SyntaxClassificationExtensions.cs:line 57
   at Microsoft.CodeAnalysis.Classification.Classifier.GetClassifiedSpans(SolutionServices services, Project project, SemanticModel semanticModel, TextSpan textSpan, ClassificationOptions options, Boolean includedEmbeddedClassifications, CancellationToken cancellationToken) in C:\code-lib\roslyn\src\Workspaces\Core\Portable\Classification\Classifier.cs:line 93
   at CiStyling.<>c__DisplayClass22_1.<<_Work>b__4>d.MoveNext() in C:\code\au\Au.Editor\Edit\CiStyling.cs:line 209
   at System.Runtime.CompilerServices.AsyncMethodBuilderCore.Start[TStateMachine](TStateMachine& stateMachine)
   at System.Threading.Tasks.Task`1.InnerInvoke()
   at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state)
   at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread)
   at System.Threading.ThreadPoolWorkQueue.Dispatch()
   at System.Threading.PortableThreadPool.WorkerThread.WorkerThreadStart()
#2
Fixed in LA 1.9.1. Thank you.
#3
Wow, that was fast! Thanks a lot for getting this resolved so soon.


Forum Jump:


Users browsing this thread: 1 Guest(s)