Bug 1880 - Code completion fails when a brace is missing
Summary: Code completion fails when a brace is missing
Status: RESOLVED FIXED
Alias: None
Product: Xamarin Studio
Classification: Desktop
Component: C# Binding ()
Version: 2.8 beta 3
Hardware: PC Linux
: High normal
Target Milestone: master
Assignee: Mike Krüger
URL:
Depends on:
Blocks:
 
Reported: 2011-11-04 10:43 UTC by Matt
Modified: 2015-08-20 03:24 UTC (History)
3 users (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 Matt 2011-11-04 10:43:39 UTC
I am using MD 2.7.22, and see this behaviour with code completion.
If a method does not have its closing "}", code completion does not
work. So, in this code:

namespace TestMain
{
   public class Foo
   {
       public string Bar()
       {
           Regex rgx = new Regex("\\s*([^\\s]*)");

           // Typing rgx. at this point does *not* do code completion


Whereas, this:

namespace TestMain
{
   public class Foo
   {
       public string Bar()
       {
           Regex rgx = new Regex("\\s*([^\\s]*)");

           // Typing rgx. at this point does do code completion
       }

The "}" seems to make the difference.

Matt
Comment 1 Mike Krüger 2011-12-07 05:54:37 UTC
Works in new resolver branch.
Comment 2 Saurabh 2011-12-29 06:01:25 UTC
We have verified the issue with MonoDevelop 2.8.5 and MonoTouch 5.0.4 for the given code.Issue is still exist.

Kindly reopen this bug.
Comment 3 Mike Krüger 2012-01-04 02:22:11 UTC
2.8.5 != new resolver branch