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

Bug in hs.inspect when dealing with tables with complex __init metatable event functions. #1909

Open
randomeizer opened this issue Jul 19, 2018 · 1 comment

Comments

@randomeizer
Copy link
Contributor

In the case where a table has a metatable with an __init function that will always return a new table instance for a key value, hs.inspect will throw an error upon encountering the new table instance because it wasn't encountered in the first pass. Essentially, it just needs to handle the case where it has not logged it in tableAppearances before.

I've put a test case in the pull request which will accompany this issue shortly.

@randomeizer randomeizer changed the title Bug in hs.inspect when dealing with tables with complex __init event functions. Bug in hs.inspect when dealing with tables with complex __init metatable event functions. Jul 19, 2018
randomeizer added a commit to randomeizer/hammerspoon that referenced this issue Jul 19, 2018
* Fixed bug with inspecting complex tables.
randomeizer added a commit to randomeizer/hammerspoon that referenced this issue Jul 19, 2018
* Fixed stickler issue
cmsj pushed a commit that referenced this issue Dec 8, 2018
@latenitefilms
Copy link
Contributor

@cmsj - I believe this is now good to close?

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