Bug 50 - Error in C# code editor
Summary: Error in C# code editor
Status: RESOLVED FIXED
Alias: None
Product: Xamarin Studio
Classification: Desktop
Component: C# Binding ()
Version: Trunk
Hardware: PC Mac OS
: --- minor
Target Milestone: ---
Assignee: Mike Krüger
URL:
Depends on:
Blocks:
 
Reported: 2011-07-22 14:15 UTC by Mikayla Hutchinson [MSFT]
Modified: 2011-09-15 03:13 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] 2011-07-22 14:15:05 UTC
WARNING [2011-07-22 19:00:40Z]: AddUniqueReference called with invalid position line: 0 col: 0 name: System.String.
Invalid uniqe reference stack trace:
-----
   at System.Environment.get_StackTrace()
   at MonoDevelop.CSharp.Refactoring.FindMemberAstVisitor.AddUniqueReference(Int32 line, Int32 col, System.String name)
   at MonoDevelop.CSharp.Refactoring.FindMemberAstVisitor.VisitTypeReference(ICSharpCode.OldNRefactory.Ast.TypeReference typeReference, System.Object data)
   at ICSharpCode.OldNRefactory.Ast.TypeReference.AcceptVisitor(IAstVisitor visitor, System.Object data)
   at ICSharpCode.OldNRefactory.Visitors.AbstractAstVisitor.VisitTypeReferenceExpression(ICSharpCode.OldNRefactory.Ast.TypeReferenceExpression typeReferenceExpression, System.Object data)
   at ICSharpCode.OldNRefactory.Ast.TypeReferenceExpression.AcceptVisitor(IAstVisitor visitor, System.Object data)
   at ICSharpCode.OldNRefactory.Visitors.AbstractAstVisitor.VisitMemberReferenceExpression(ICSharpCode.OldNRefactory.Ast.MemberReferenceExpression memberReferenceExpression, System.Object data)
   at MonoDevelop.CSharp.Refactoring.FindMemberAstVisitor.VisitMemberReferenceExpression(ICSharpCode.OldNRefactory.Ast.MemberReferenceExpression fieldExp, System.Object data)
   at ICSharpCode.OldNRefactory.Ast.MemberReferenceExpression.AcceptVisitor(IAstVisitor visitor, System.Object data)
   at ICSharpCode.OldNRefactory.Visitors.AbstractAstVisitor.VisitInvocationExpression(ICSharpCode.OldNRefactory.Ast.InvocationExpression invocationExpression, System.Object data)
   at MonoDevelop.CSharp.Refactoring.FindMemberAstVisitor.VisitInvocationExpression(ICSharpCode.OldNRefactory.Ast.InvocationExpression invokeExp, System.Object data)
   at ICSharpCode.OldNRefactory.Ast.InvocationExpression.AcceptVisitor(IAstVisitor visitor, System.Object data)
   at ICSharpCode.OldNRefactory.Visitors.AbstractAstVisitor.VisitBinaryOperatorExpression(ICSharpCode.OldNRefactory.Ast.BinaryOperatorExpression binaryOperatorExpression, System.Object data)
   at ICSharpCode.OldNRefactory.Ast.BinaryOperatorExpression.AcceptVisitor(IAstVisitor visitor, System.Object data)
   at ICSharpCode.OldNRefactory.Visitors.AbstractAstVisitor.VisitIfElseStatement(ICSharpCode.OldNRefactory.Ast.IfElseStatement ifElseStatement, System.Object data)
   at ICSharpCode.OldNRefactory.Ast.IfElseStatement.AcceptVisitor(IAstVisitor visitor, System.Object data)
   at ICSharpCode.OldNRefactory.Ast.AbstractNode.AcceptChildren(IAstVisitor visitor, System.Object data)
   at ICSharpCode.OldNRefactory.Visitors.AbstractAstVisitor.VisitBlockStatement(ICSharpCode.OldNRefactory.Ast.BlockStatement blockStatement, System.Object data)
   at ICSharpCode.OldNRefactory.Ast.BlockStatement.AcceptVisitor(IAstVisitor visitor, System.Object data)
   at ICSharpCode.OldNRefactory.Visitors.AbstractAstVisitor.VisitForeachStatement(ICSharpCode.OldNRefactory.Ast.ForeachStatement foreachStatement, System.Object data)
   at MonoDevelop.CSharp.Refactoring.FindMemberAstVisitor.VisitForeachStatement(ICSharpCode.OldNRefactory.Ast.ForeachStatement foreachStatement, System.Object data)
   at ICSharpCode.OldNRefactory.Ast.ForeachStatement.AcceptVisitor(IAstVisitor visitor, System.Object data)
   at ICSharpCode.OldNRefactory.Ast.AbstractNode.AcceptChildren(IAstVisitor visitor, System.Object data)
   at ICSharpCode.OldNRefactory.Visitors.AbstractAstVisitor.VisitBlockStatement(ICSharpCode.OldNRefactory.Ast.BlockStatement blockStatement, System.Object data)
   at ICSharpCode.OldNRefactory.Ast.BlockStatement.AcceptVisitor(IAstVisitor visitor, System.Object data)
   at ICSharpCode.OldNRefactory.Visitors.AbstractAstVisitor.VisitMethodDeclaration(ICSharpCode.OldNRefactory.Ast.MethodDeclaration methodDeclaration, System.Object data)
   at MonoDevelop.CSharp.Refactoring.FindMemberAstVisitor.VisitMethodDeclaration(ICSharpCode.OldNRefactory.Ast.MethodDeclaration methodDeclaration, System.Object data)
   at ICSharpCode.OldNRefactory.Ast.MethodDeclaration.AcceptVisitor(IAstVisitor visitor, System.Object data)
   at ICSharpCode.OldNRefactory.Ast.AbstractNode.AcceptChildren(IAstVisitor visitor, System.Object data)
   at ICSharpCode.OldNRefactory.Visitors.AbstractAstVisitor.VisitTypeDeclaration(ICSharpCode.OldNRefactory.Ast.TypeDeclaration typeDeclaration, System.Object data)
   at MonoDevelop.CSharp.Refactoring.FindMemberAstVisitor.VisitTypeDeclaration(ICSharpCode.OldNRefactory.Ast.TypeDeclaration typeDeclaration, System.Object data)
   at ICSharpCode.OldNRefactory.Ast.TypeDeclaration.AcceptVisitor(IAstVisitor visitor, System.Object data)
   at ICSharpCode.OldNRefactory.Ast.AbstractNode.AcceptChildren(IAstVisitor visitor, System.Object data)
   at ICSharpCode.OldNRefactory.Visitors.AbstractAstVisitor.VisitNamespaceDeclaration(ICSharpCode.OldNRefactory.Ast.NamespaceDeclaration namespaceDeclaration, System.Object data)
   at MonoDevelop.CSharp.Refactoring.FindMemberAstVisitor.VisitNamespaceDeclaration(ICSharpCode.OldNRefactory.Ast.NamespaceDeclaration namespaceDeclaration, System.Object data)
   at ICSharpCode.OldNRefactory.Ast.NamespaceDeclaration.AcceptVisitor(IAstVisitor visitor, System.Object data)
   at ICSharpCode.OldNRefactory.Ast.AbstractNode.AcceptChildren(IAstVisitor visitor, System.Object data)
   at ICSharpCode.OldNRefactory.Visitors.AbstractAstVisitor.VisitCompilationUnit(ICSharpCode.OldNRefactory.Ast.CompilationUnit compilationUnit, System.Object data)
   at MonoDevelop.CSharp.Refactoring.FindMemberAstVisitor.RunVisitor(MonoDevelop.CSharp.Resolver.NRefactoryResolver resolver)
   at MonoDevelop.CSharp.Highlighting.HighlightUsagesExtension.GetReferences(MonoDevelop.Projects.Dom.ResolveResult resolveResult)
   at MonoDevelop.CSharp.Highlighting.HighlightUsagesExtension.DelayedTooltipShow()
   at GLib.Timeout+TimeoutProxy.Handler()
   at Gtk.Application.gtk_main()
   at Gtk.Application.Run()
   at MonoDevelop.Ide.IdeApp.Run()
   at MonoDevelop.Ide.IdeStartup.Run(System.String[] args)
   at MonoDevelop.Startup.MonoDevelopMain.Main(System.String[] args)
Comment 1 Mike Krüger 2011-09-15 03:13:18 UTC
I fixed the type reference locations - however without exact case I can't be 100% sure with that special bug. A repro case would've been nice.