-
-
Notifications
You must be signed in to change notification settings - Fork 747
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG] Interface inheritance only works in same project #650
Comments
Hi, I've uploaded the test project from my company here https://github.com/Cantaria/refitInheritanceTest The project can't be build, because the ReFit interfaces (IDerivedServiceA) in the test-project are in different namespaces. If you put the interfaces into the same namespace, everything will work.
|
I am having the same problem even though both the parent and the child interface belong to the same project under the same namespace. Had to redefine all the methods from parent interface as new in the child interface in order to get it to work. Right now I am using Refit 4.6.48; This issue is still open but I am going to upgrade my refit version and let y'all know if that makes a difference. |
Please try v6.0-preview.84 and file bugs as you come across them. |
Hi, I tried using refit with a generic interface, and got the same message, even with the most recent preview - 6.0.0-preview.128 Here is my case: Generic Interface:
Refit Interface:
and got the same error message:
Am I doing something wrong? |
Something is still using an older refit version as the .g.cs file doesn't exist anymore. |
If you can clean/rebuild/ restart VS, it'd be good to confirm this works for you in v6. |
Hi, I'm using MacOs, and already tried all the steps with Rider, VSCode and command line: same results :(
|
I created an issue here to track this #1061 |
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Describe the bug
The goal is to use interface inheritance from refit interfaces.
https://github.com/reactiveui/refit#interface-inheritance
This only works if all interfaces are in one project.
However, the following error occurs if the interfaces are not in the same project:
Project Base
Project Base.UnitTests
Generate Stubs:
GetVersion
is missing here, but will be generated if in the same project.Expected behavior
Stub should have all methods, even if inherited interfaces are located in different projects.
Sample Project
https://github.com/BenjaminAbt/RefitInheritance
The text was updated successfully, but these errors were encountered: