Bug 4283 - Newresolver: completing constructor parameters
Summary: Newresolver: completing constructor parameters
Status: RESOLVED FIXED
Alias: None
Product: Xamarin Studio
Classification: Desktop
Component: Text Editor ()
Version: unspecified
Hardware: PC Mac OS
: Normal major
Target Milestone: ---
Assignee: Mike Krüger
URL:
Depends on:
Blocks:
 
Reported: 2012-04-05 22:03 UTC by Miguel de Icaza [MSFT]
Modified: 2012-04-12 13:10 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 Miguel de Icaza [MSFT] 2012-04-05 22:03:53 UTC
When building a MonoTouch app, when I try to get completion in a constructor for the word "frame", the "Frame" property is offered instead, which is illegal in C# in the "base" declaration, this should (a) not be shown and (b) the proper parameter should be offered:

class Foo : UIView {
    public Foo (RectangleF frame) : base (****
}

The problem happens where the *** is: instead of offering me to complete "frame", it offers "Frame" and even completes it for me, producing invalid code that fails to compile ("An instance reference is needed for...")
Comment 1 Mike Krüger 2012-04-08 05:05:44 UTC
It's a difficult to reproduce problem. 

That's what I get:
http://screencast.com/t/kUfXIA5WDnHJ

I think it's not an mcs issue, things like that happen when the 'context' is lost. This means that the caret is not in the constructor member.

That can have various reasons, that's why I need more info about it. The breadcrumb bar at the top tells you if you're in the constructor or not.

Generally when code completion fails look at the breadcrumb, if it shows if you're in the correct member or not. I think that's more or less the only way to break the current completion. (However it may be weak in some contexts, can never be sure of it).
Comment 2 Mike Krüger 2012-04-10 13:48:09 UTC
Any news on that ? I need a use case or screen cast for that.
Comment 3 Mike Krüger 2012-04-12 13:10:49 UTC
fixed

btw. if you use ctrl+space and something is not working that's an important information for me.