Bug 3377 - Unexpected code completion exception.
Summary: Unexpected code completion exception.
Status: RESOLVED DUPLICATE of bug 3156
Alias: None
Product: Xamarin Studio
Classification: Desktop
Component: C# Binding ()
Version: Trunk
Hardware: PC Linux
: --- normal
Target Milestone: ---
Assignee: Mike Krüger
URL:
Depends on:
Blocks:
 
Reported: 2012-02-10 10:14 UTC by Marek Safar
Modified: 2012-02-10 10:26 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 DUPLICATE of bug 3156

Description Marek Safar 2012-02-10 10:14:16 UTC
Unexpected code completion exception.
FileName: /home/marek/Projects/g2/g2/Main.cs
Position: line=3 col=12
Line text: [Obsolete (A
System.InvalidOperationException: Could not find a resolver state for any parent of the specified node. Did you forget to call 'Scan(compilationUnit);'?
  at ICSharpCode.NRefactory.CSharp.Resolver.ResolveVisitor.GetPreviouslyScannedContext (ICSharpCode.NRefactory.CSharp.AstNode node, ICSharpCode.NRefactory.CSharp.AstNode& parent) [0x00042] in /home/marek/git/monodevelop/main/contrib/ICSharpCode.NRefactory.CSharp/Resolver/ResolveVisitor.cs:456 
  at ICSharpCode.NRefactory.CSharp.Resolver.ResolveVisitor.GetResolverStateBefore (ICSharpCode.NRefactory.CSharp.AstNode node) [0x0003a] in /home/marek/git/monodevelop/main/contrib/ICSharpCode.NRefactory.CSharp/Resolver/ResolveVisitor.cs:471 
  at ICSharpCode.NRefactory.CSharp.Completion.CSharpCompletionEngineBase.ResolveExpression (ICSharpCode.NRefactory.CSharp.TypeSystem.CSharpParsedFile file, ICSharpCode.NRefactory.CSharp.AstNode expr, ICSharpCode.NRefactory.CSharp.CompilationUnit unit) [0x00082] in /home/marek/git/monodevelop/main/contrib/ICSharpCode.NRefactory.CSharp/Completion/CSharpCompletionEngineBase.cs:481 
  at ICSharpCode.NRefactory.CSharp.Completion.CSharpCompletionEngine.AddContextCompletion (ICSharpCode.NRefactory.CSharp.Completion.CompletionDataWrapper wrapper, ICSharpCode.NRefactory.CSharp.Resolver.CSharpResolver state, ICSharpCode.NRefactory.CSharp.AstNode node) [0x002fe] in /home/marek/git/monodevelop/main/contrib/ICSharpCode.NRefactory.CSharp/Completion/CSharpCompletionEngine.cs:887 
  at ICSharpCode.NRefactory.CSharp.Completion.CSharpCompletionEngine.MagicKeyCompletion (Char completionChar, Boolean controlSpace) [0x0155b] in /home/marek/git/monodevelop/main/contrib/ICSharpCode.NRefactory.CSharp/Completion/CSharpCompletionEngine.cs:621 
  at ICSharpCode.NRefactory.CSharp.Completion.CSharpCompletionEngine.GetCompletionData (Int32 offset, Boolean controlSpace) [0x00034] in /home/marek/git/monodevelop/main/contrib/ICSharpCode.NRefactory.CSharp/Completion/CSharpCompletionEngine.cs:78 
  at MonoDevelop.CSharp.Completion.CSharpCompletionTextEditorExtension.InternalHandleCodeCompletion (MonoDevelop.Ide.CodeCompletion.CodeCompletionContext completionContext, Char completionChar, Boolean ctrlSpace, System.Int32& triggerWordLength) [0x0011b] in /home/marek/git/monodevelop/main/src/addins/CSharpBinding/MonoDevelop.CSharp.Completion/CSharpCompletionTextEditorExtension.cs:234 
  at MonoDevelop.CSharp.Completion.CSharpCompletionTextEditorExtension.HandleCodeCompletion (MonoDevelop.Ide.CodeCompletion.CodeCompletionContext completionContext, Char completionChar, System.Int32& triggerWordLength) [0x00074] in /home/marek/git/monodevelop/main/src/addins/CSharpBinding/MonoDevelop.CSharp.Completion/CSharpCompletionTextEditorExtension.cs:196
Comment 1 Mike Krüger 2012-02-10 10:26:15 UTC
Atm attributes are missing, marking it as dup.

This text is only printed on console and doesn't "crash" monodevelop - right ?

*** This bug has been marked as a duplicate of bug 3156 ***