Bug 13988 - Error in context action provider Invert a logical expression
Summary: Error in context action provider Invert a logical expression
Status: RESOLVED FIXED
Alias: None
Product: Xamarin Studio
Classification: Desktop
Component: C# Binding ()
Version: Trunk
Hardware: PC Mac OS
: Normal normal
Target Milestone: master
Assignee: Mike Krüger
URL:
Depends on:
Blocks:
 
Reported: 2013-08-14 19:36 UTC by Mikayla Hutchinson [MSFT]
Modified: 2013-08-19 03:43 UTC (History)
1 user (show)

Tags:
Is this bug a regression?: ---
Last known good build:

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.


Please create a new report on Developer Community or GitHub with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:
Status:
RESOLVED FIXED

Description Mikayla Hutchinson [MSFT] 2013-08-14 19:36:58 UTC
ERROR [2013-08-14 19:24:17Z]: Error in context action provider Invert a logical expression
System.ArgumentException: Node is already used in another tree.
Parameter name: child
  at ICSharpCode.NRefactory.CSharp.AstNode.AddChild[Expression] (ICSharpCode.NRefactory.CSharp.Expression child, ICSharpCode.NRefactory.Role`1 role) [0x00089] in /Users/michael/Mono/monodevelop/main/external/nrefactory/ICSharpCode.NRefactory.CSharp/Ast/AstNode.cs:414 
  at ICSharpCode.NRefactory.CSharp.AstNode.SetChildByRole[Expression] (ICSharpCode.NRefactory.Role`1 role, ICSharpCode.NRefactory.CSharp.Expression newChild) [0x0001c] in /Users/michael/Mono/monodevelop/main/external/nrefactory/ICSharpCode.NRefactory.CSharp/Ast/AstNode.cs:397 
  at ICSharpCode.NRefactory.CSharp.BinaryOperatorExpression.set_Left (ICSharpCode.NRefactory.CSharp.Expression value) [0x00008] in /Users/michael/Mono/monodevelop/main/external/nrefactory/ICSharpCode.NRefactory.CSharp/Ast/Expressions/BinaryOperatorExpression.cs:79 
  at ICSharpCode.NRefactory.CSharp.BinaryOperatorExpression..ctor (ICSharpCode.NRefactory.CSharp.Expression left, BinaryOperatorType op, ICSharpCode.NRefactory.CSharp.Expression right) [0x00007] in /Users/michael/Mono/monodevelop/main/external/nrefactory/ICSharpCode.NRefactory.CSharp/Ast/Expressions/BinaryOperatorExpression.cs:67 
  at ICSharpCode.NRefactory.CSharp.CSharpUtil.InvertConditionInternal (ICSharpCode.NRefactory.CSharp.Expression condition) [0x000b4] in /Users/michael/Mono/monodevelop/main/external/nrefactory/ICSharpCode.NRefactory.CSharp/Ast/CSharpUtil.cs:60 
  at ICSharpCode.NRefactory.CSharp.CSharpUtil.InvertCondition (ICSharpCode.NRefactory.CSharp.Expression condition) [0x00007] in /Users/michael/Mono/monodevelop/main/external/nrefactory/ICSharpCode.NRefactory.CSharp/Ast/CSharpUtil.cs:39 
  at ICSharpCode.NRefactory.CSharp.Refactoring.InvertLogicalExpressionAction.GetAction (ICSharpCode.NRefactory.CSharp.Refactoring.RefactoringContext context, ICSharpCode.NRefactory.CSharp.BinaryOperatorExpression node) [0x00044] in /Users/michael/Mono/monodevelop/main/external/nrefactory/ICSharpCode.NRefactory.CSharp/Refactoring/CodeActions/InvertLogicalExpressionAction.cs:38 
  at ICSharpCode.NRefactory.CSharp.Refactoring.SpecializedCodeAction`1+<GetActions>c__Iterator9[ICSharpCode.NRefactory.CSharp.BinaryOperatorExpression].MoveNext () [0x0005b] in /Users/michael/Mono/monodevelop/main/external/nrefactory/ICSharpCode.NRefactory.CSharp/Refactoring/CodeActions/SpecializedCodeAction.cs:30 
  at MonoDevelop.CSharp.Refactoring.CodeActions.NRefactoryCodeActionProvider+<GetActions>c__Iterator17.MoveNext () [0x001da] in /Users/michael/Mono/monodevelop/main/src/addins/CSharpBinding/MonoDevelop.CSharp.Refactoring.CodeActions/NRefactoryCodeActionProvider.cs:71 
  at System.Collections.Generic.List`1[MonoDevelop.CodeActions.CodeAction].AddEnumerable (IEnumerable`1 enumerable) [0x00013] in /Users/michael/Mono/bockbuild/profiles/monodevelop-mac-dev/build-root/mono-None/mcs/class/corlib/System.Collections.Generic/List.cs:134 
  at System.Collections.Generic.List`1[MonoDevelop.CodeActions.CodeAction].AddRange (IEnumerable`1 collection) [0x0002a] in /Users/michael/Mono/bockbuild/profiles/monodevelop-mac-dev/build-root/mono-None/mcs/class/corlib/System.Collections.Generic/List.cs:147 
  at MonoDevelop.Refactoring.RefactoringService+<GetValidActions>c__AnonStorey12.<>m__16 () [0x000e2] in /Users/michael/Mono/monodevelop/main/src/addins/MonoDevelop.Refactoring/MonoDevelop.Refactoring/RefactoringService.cs:212
Comment 1 Mike Krüger 2013-08-15 14:56:30 UTC
Should be fixed