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

Fix "Cannot look up attributes in a type object" in generated scripts #398

Closed
wants to merge 1 commit into from
Closed

Conversation

niner
Copy link
Collaborator

@niner niner commented Mar 31, 2015

The panda script failed with "Cannot look up attributes in a type object
in method files at src/gen/m-CORE.setting:26732". Seems like files()
expects to be called on an object. CompUnitRepo objects are to be found
in @*INC.

@niner
Copy link
Collaborator Author

niner commented Mar 31, 2015

@*INC contains CompUnitRepo::Local::File and CompUnitRepo::Local::Installation objects. No idea if that is a problem?

@FROGGS
Copy link
Member

FROGGS commented Mar 31, 2015

That approach would break what was fixed in: a56d8b0

@FROGGS
Copy link
Member

FROGGS commented Mar 31, 2015

Can you provide information to reproduce the issue?

The panda script failed with "Cannot look up attributes in a type object
in method files at src/gen/m-CORE.setting:26732". Seems like files()
expects to be called on an object. CompUnitRepo objects are to be found
in @*INC.
@FROGGS
Copy link
Member

FROGGS commented Mar 31, 2015

Instead of @*INC».files we should probably call @*INC.grep(CompUnitRepo::Local::Installation)».files

@niner niner closed this Mar 31, 2015
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

Successfully merging this pull request may close these issues.

None yet

2 participants