Bug 59275 - [ios11] VSMac IDE Quick Fix > Implement Interface - contains attributes that don't compile [BlockProxy(typeof(NIDActionArity1V63))]
Summary: [ios11] VSMac IDE Quick Fix > Implement Interface - contains attributes that ...
Status: RESOLVED DUPLICATE of bug 39779
Alias: None
Product: iOS
Classification: Xamarin
Component: Xamarin.iOS.dll ()
Version: XI 10.99 (xcode9)
Hardware: Macintosh Mac OS
: --- normal
Target Milestone: Untriaged
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2017-09-06 23:48 UTC by CraigD
Modified: 2017-09-07 18:01 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 DUPLICATE of bug 39779

Description CraigD 2017-09-06 23:48:37 UTC
When using VSMac "Quick Fix > Implement Interface" on some interfaces, the generated code does not compile.

For example - implementing `IINRidesharingDomainHandling` generates:

```
public void HandleCancelRide(INCancelRideIntent intent, [BlockProxy(typeof(NIDActionArity1V63))] Action<INCancelRideIntentResponse> completion)
{
   throw new NotImplementedException();
}

public void HandleSendRideFeedback(INSendRideFeedbackIntent sendRideFeedbackintent, [BlockProxy(typeof(NIDActionArity1V113))] Action<INSendRideFeedbackIntentResponse> completion)
{
   throw new NotImplementedException();
}
```

Note the attributes `[BlockProxy(typeof(NIDActionArity1V63))]` which do not seem to be required, but also do not compile (the types `NIDActionArity1V63` and `NIDActionArity1V113` do not exist).

I see those attributes on the methods in `internal sealed class Intents.INRidesharingDomainHandlingWrapper`, eg `[BlockProxy (typeof(Trampolines.NIDActionArity1V80))]` I'm just not sure why the leak into user-code.
Comment 1 Manuel de la Peña [MSFT] 2017-09-07 14:03:53 UTC
This looks like a bug that should be filled under VS for mac rather than ios which only does the bindings.
Comment 2 Rolf Bjarne Kvinge [MSFT] 2017-09-07 18:01:07 UTC

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