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 removed from generated code #37

Open
itsmontoya opened this issue May 15, 2017 · 3 comments
Open

Reflect removed from generated code #37

itsmontoya opened this issue May 15, 2017 · 3 comments
Labels
Milestone

Comments

@itsmontoya
Copy link
Contributor

When generating a file which utilizes reflect, I noticed that reflect gets strips out of my import list.
Generated file
Source file

@itsmontoya
Copy link
Contributor Author

So it looks as though the imports library (stdlib) is not inserting reflect during it's fixImport func. That's very strange..

@itsmontoya
Copy link
Contributor Author

I got around this by creating a separate utilities library where code generation wasn't touching. It's a lame work-around, but it looks like it's out of our control right now.

I'm going to leave this open because I'd like to get your thoughts on this situation.

@pdrum
Copy link
Collaborator

pdrum commented Sep 3, 2018

@itsmontoya One of the links are broken and I'm not sure whether the other one is still the same as the time you wrote the post. So I can not check what exactly has gone wrong. Do you mean you had imported reflect in your source and genny has not included it in the generated code?

@pdrum pdrum added the bug label Sep 3, 2018
@pdrum pdrum added this to the 1.0.1 milestone Sep 3, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants