Skip to content
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

Reflect.go Error #209

Closed
bamzi opened this issue Jul 6, 2013 · 2 comments
Closed

Reflect.go Error #209

bamzi opened this issue Jul 6, 2013 · 2 comments

Comments

@bamzi
Copy link

bamzi commented Jul 6, 2013

When starting up my revel app

revel run myapp

i get the following log message in the console

TRACE 2013/07/06 14:47:19 harness.go:111: Rebuild
2013/07/06 14:47:19 reflect.go:707: Failed to generate name for field.
     0  *ast.MapType {
     1  .  Map: 3192
     2  .  Key: *ast.Ident {
     3  .  .  NamePos: 3196
     4  .  .  Name: "string"
     5  .  }
     6  .  Value: *ast.InterfaceType {
     7  .  .  Interface: 3203
     8  .  .  Methods: *ast.FieldList {
     9  .  .  .  Opening: 3212
    10  .  .  .  Closing: 3213
    11  .  .  }
    12  .  .  Incomplete: false
    13  .  }
    14  }

i don't get a proper reference as to wether the cause of the error is from my code (which part) or something to do with reflect.go itself.

however, the app itself functions properly, all routes and functions work.

@robfig
Copy link
Contributor

robfig commented Jul 9, 2013

That just means that you have an action parameter or a validation parameter for which Revel couldn't determine a key name. Its type is map[string]interface{}

Does that give you enough information to track it down? It is at character position 3192 of one of your files

@bamzi
Copy link
Author

bamzi commented Jul 11, 2013

yes the issue was my code. thanks for helping me find the source.

@bamzi bamzi closed this as completed Jul 11, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants