Bug 21114 - Event Handler Partial Method Build Error
Summary: Event Handler Partial Method Build Error
Status: RESOLVED DUPLICATE of bug 21240
Alias: None
Product: Xamarin Studio
Classification: Desktop
Component: iOS Designer ()
Version: 5.1
Hardware: Macintosh Mac OS
: Normal normal
Target Milestone: master
Assignee: Bugzilla
Depends on:
Reported: 2014-07-03 16:14 UTC by Eric Maurer
Modified: 2014-07-10 18:20 UTC (History)
5 users (show)

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:

Description Eric Maurer 2014-07-03 16:14:27 UTC
I have a project that includes a storyboard that has been converted to the Xamarin Studio format.  After the conversion everything was working fine and building correctly.  At some point I started getting errors on my event handlers that "A partial method ... implementation is missing a partial member declaration".  If I remove all of the event handlers and re add them in the designer I can eventually get all of the errors to go away.  Then after testing for a while they always come back at some point.  On several occasions building twice made them go away, but on others no number of additional builds or cleans helped.

I have also noticed that if a button does not have a name given to it and I double click it to generate an event handler the name Xamarin Studio gives the handler by default contains dashes.  It then complains that the name contain invalid characters because of the dashes.
Comment 1 Tajinder Singh 2014-07-04 03:45:35 UTC
I have tried this issue but I am unable to reproduce this issue

Case1:  A partial method `ViewController.UIButton4_TouchUpInside(MonoTouch.UIKit.UIButton)' implementation is missing a partial method declaration:

Steps to reproduce:

1. Create an iPhone "Single View Application"
2. Open the main Storyboard file and place a button to the storyboard file.
3. Add an event handler to the button
4. Change the text of button to empty.
5. Add another Button and add that button handler.

This issue is intermittent but easy to reproduce.

Screencast: http://www.screencast.com/t/Lq2IzqmLo

Case 2: Button doesn't have button name XS complains invalid character.

Steps I have followed:

1. Create an iPhone "Single View Application"
2. Open the main Storyboard file and place a button to the storyboard file.
3. Change the 'Name' and 'Title' property of button to empty
4. Double click on button to add the event handler( )

I observed that when I add an event handler of a button, the button doesn't contains the dashes and I am able to successfully build the project.

Screencast: http://www.screencast.com/t/zIeTFHU3j5

If you have a chance, it might also be helpful to include build information. So that we can reproduce this "Case 2" at our end.

you can get build information from here:  Xamarin Studio=> About Xamarin Studio => Show details=> Copy Information.

Environment Info:

Mac OS X 10.9.3
Xamarin Studio:5.1 (build 479)
Xcode 5.1 (5084)
Xamarin.iOS : (Business Edition)

Build Information
Release ID: 501000479
Git revision: e5a428cec75d4cc7e6e3ccd8192a3660d013e7dc
Build date: 2014-06-26 09:28:17-04
Xamarin addins: 190d93e026e17280e75a3680ef38f2630b9228d3
Comment 2 Alan McGovern 2014-07-10 18:20:50 UTC
Just marking this as a duplicate...

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