You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I haven't nailed down exactly what caused this (updating Refit to 2.1.0, updating Xamarin Studio, putting more air in my car's tires for cold weather, who knows?), but somewhere along the line the API in my Xamarin.Android app stopped getting a stubbed out version in RefitStubs.cs when I built the project. The symptom was triggering the well-worded exception from v2.1.0 telling me my interface didn't "look like a Refit interface". After lots of digging/reverting/cursing, here's the resulting difference.
In case you missed it, the only difference is the space between the Get and the open parenthesis
([Get ( vs. [Get().
Two methods
Oddly, if there are two methods, one with a space and one without the space (order doesn't matter), it generates the stub just fine. If all the methods have the space (tested to three), nothing is generated.
Setup (since this could be outside Refit's control)
OS X 10.10.1
Xamarin Studio 5.5.3
Xamarin.Android 4.18.1
The text was updated successfully, but these errors were encountered:
Thanks for the great write-up @patridge - since we parse the C# at the syntax level (i.e. one of the earliest passes the compiler takes at your code, before references or project context), bugs like this are entirely possible
I haven't nailed down exactly what caused this (updating Refit to 2.1.0, updating Xamarin Studio, putting more air in my car's tires for cold weather, who knows?), but somewhere along the line the API in my Xamarin.Android app stopped getting a stubbed out version in RefitStubs.cs when I built the project. The symptom was triggering the well-worded exception from v2.1.0 telling me my interface didn't "look like a Refit interface". After lots of digging/reverting/cursing, here's the resulting difference.
Working
Not so much with the working
In case you missed it, the only difference is the space between the
Get
and the open parenthesis(
[Get (
vs.[Get(
).Two methods
Oddly, if there are two methods, one with a space and one without the space (order doesn't matter), it generates the stub just fine. If all the methods have the space (tested to three), nothing is generated.
Setup (since this could be outside Refit's control)
The text was updated successfully, but these errors were encountered: