Bug 21240 - Action Outlets Becoming Disconnected
Summary: Action Outlets Becoming Disconnected
Status: VERIFIED FIXED
Alias: None
Product: Xamarin Studio
Classification: Desktop
Component: iOS Designer ()
Version: 5.1
Hardware: PC Mac OS
: High blocker
Target Milestone: 5.1.3
Assignee: Bugzilla
URL:
: 21114 21137 ()
Depends on:
Blocks:
 
Reported: 2014-07-10 13:55 UTC by Kevin Mullins
Modified: 2014-07-11 11:49 UTC (History)
9 users (show)

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


Attachments
Outlets (454.99 KB, image/png)
2014-07-10 13:57 UTC, Kevin Mullins
Details
Fails to build (429.65 KB, image/png)
2014-07-10 13:58 UTC, Kevin Mullins
Details


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:
VERIFIED FIXED

Description Kevin Mullins 2014-07-10 13:55:45 UTC
Working with a Universal iOS application and storyboards in the iOS Designer, Action Outlets (created by double clicking a button on the design surface) are becoming disconnected with the compiler complaining out the partial class not being created. The seem to randomly build/not build with no rhyme or reason.

In some cases, the outlet does exist in the designer files, Example:
[Action ("FormSheetButton_TouchUpInside:")]
[GeneratedCode ("iOS Designer", "1.0")]
partial void FormSheetButton_TouchUpInside (MonoTouch.UIKit.UIButton sender);

Yet the compiler is still complaining the partial class does not exist (for example FormSheetButton above). In other areas the outlet is not created, or is randomly created, not created during compile. Example: doing a clean build might work once, yet doing a build or clean build will fail a second time, even if nothing has changed.

Once this starts happening, a normal build will fail 100% of the time, a clean build fails 50% at random.

Here is a sample application experiencing this behavior:
https://www.dropbox.com/s/pw81m91e5fqphqs/ViewControllers.zip

It was working perfectly until the latest Xamarin update, now it fails constantly.
Comment 1 Kevin Mullins 2014-07-10 13:57:34 UTC
Created attachment 7327 [details]
Outlets

The Action outlets exist, yet compile fails
Comment 2 Kevin Mullins 2014-07-10 13:58:24 UTC
Created attachment 7328 [details]
Fails to build

The outlets exist yet the app fails to build
Comment 3 Alan McGovern 2014-07-10 16:42:06 UTC
I can reproduce the issue. It was introduced in 5.1 with http://github.com/xamarin/md-addins/commit/8a3cdb5ebde604f9e645724cd05498813bbcb4a0
Comment 4 Alan McGovern 2014-07-10 18:19:05 UTC
*** Bug 21137 has been marked as a duplicate of this bug. ***
Comment 5 Alan McGovern 2014-07-10 18:20:50 UTC
*** Bug 21114 has been marked as a duplicate of this bug. ***
Comment 6 Alan McGovern 2014-07-10 18:21:22 UTC
This should be fixed now and we will get it into a release as soon as we can.
Comment 7 Alan McGovern 2014-07-10 18:30:11 UTC
*** Bug 21032 has been marked as a duplicate of this bug. ***
Comment 8 Udham Singh 2014-07-11 09:53:27 UTC
As per comment 7, this issue is duplicate of Bug 21032 and Bug 21032 is Reopened.

Hence, I am marking this issue also as Reopened.
Comment 9 PJ 2014-07-11 10:51:01 UTC
Fixed in 5.1.3.0
Comment 10 Udham Singh 2014-07-11 11:49:53 UTC
As per comment 7, this issue is duplicate of bug 21032, and bug 21032 is verified fixed.

Hence, I am closing this issue also by marking it as verified.