-
Notifications
You must be signed in to change notification settings - Fork 35
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
Methods are not discovered and not registered from controller struct properly #248
Comments
@adrianlop Found the root issue why it was unable discover the method from controller struct. I have reviewed you code and also aah AST flow. When Package files gets processed by aah AST code. There are no guaranteed order in the file processing for Lines 90 to 104 in 8c41d00
So as per your code, controller defined
So solution to address this issue is to process all types for the package first and then go for processing methods. |
I have made a release of aah |
just updated the framework and the cli. it's working :) |
What version of aah are you using (
aah --version
)?aah v0.12.2
cli v0.13.3
go v1.11.5
Does this issue reproduce with the latest release?
yes
What operating system are you using (such as macOS, Linux and Windows)?
MacOS X
What did you do?
aah build
What did you expect to see?
successful build + being able to implement several methods for the same controller struct on several files.
What did you see instead?
Additional context
If I create an additional struct like I showed you @jeevatkm then the build doesn't throw any error.
The text was updated successfully, but these errors were encountered: