{"action":"created","issue":{"url":"https://api.github.com/repos/tjakubo2/TTS_xwing/issues/12","repository_url":"https://api.github.com/repos/tjakubo2/TTS_xwing","labels_url":"https://api.github.com/repos/tjakubo2/TTS_xwing/issues/12/labels{/name}","comments_url":"https://api.github.com/repos/tjakubo2/TTS_xwing/issues/12/comments","events_url":"https://api.github.com/repos/tjakubo2/TTS_xwing/issues/12/events","html_url":"https://github.com/tjakubo2/TTS_xwing/issues/12","id":200768995,"number":12,"title":"OSX - Error calling Lua function toggleRulers: ","user":{"login":"enderSFTD","id":25112554,"avatar_url":"https://avatars.githubusercontent.com/u/25112554?v=3","gravatar_id":"","url":"https://api.github.com/users/enderSFTD","html_url":"https://github.com/enderSFTD","followers_url":"https://api.github.com/users/enderSFTD/followers","following_url":"https://api.github.com/users/enderSFTD/following{/other_user}","gists_url":"https://api.github.com/users/enderSFTD/gists{/gist_id}","starred_url":"https://api.github.com/users/enderSFTD/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/enderSFTD/subscriptions","organizations_url":"https://api.github.com/users/enderSFTD/orgs","repos_url":"https://api.github.com/users/enderSFTD/repos","events_url":"https://api.github.com/users/enderSFTD/events{/privacy}","received_events_url":"https://api.github.com/users/enderSFTD/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-01-14T01:14:07Z","updated_at":"2017-01-14T11:05:01Z","closed_at":null,"body":"OSX - Error calling Lua function toggleRulers: \r\n\r\nWhen pushing the button for the 3rd time to make them disaper you get this error and then the red rulers are stuck\r\n\r\nThanks :)"},"comment":{"url":"https://api.github.com/repos/tjakubo2/TTS_xwing/issues/comments/272617217","html_url":"https://github.com/tjakubo2/TTS_xwing/issues/12#issuecomment-272617217","issue_url":"https://api.github.com/repos/tjakubo2/TTS_xwing/issues/12","id":272617217,"user":{"login":"tjakubo2","id":12734857,"avatar_url":"https://avatars.githubusercontent.com/u/12734857?v=3","gravatar_id":"","url":"https://api.github.com/users/tjakubo2","html_url":"https://github.com/tjakubo2","followers_url":"https://api.github.com/users/tjakubo2/followers","following_url":"https://api.github.com/users/tjakubo2/following{/other_user}","gists_url":"https://api.github.com/users/tjakubo2/gists{/gist_id}","starred_url":"https://api.github.com/users/tjakubo2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tjakubo2/subscriptions","organizations_url":"https://api.github.com/users/tjakubo2/orgs","repos_url":"https://api.github.com/users/tjakubo2/repos","events_url":"https://api.github.com/users/tjakubo2/events{/privacy}","received_events_url":"https://api.github.com/users/tjakubo2/received_events","type":"User","site_admin":false},"created_at":"2017-01-14T11:05:01Z","updated_at":"2017-01-14T11:05:01Z","body":"Hey, thanks for the report!\r\nFigured it out, turns out TTS update changed *something* and table entries were not deleted properly. Apparently [one of the simple methods ](http://stackoverflow.com/questions/4880368/how-to-delete-all-elements-in-a-lua-table)for clearing a table is not working now.\r\nSo instead of\r\n\r\n    for key, entry in pairs(myTable) do\r\n      -- do stuff with entry\r\n      myTable[key] = nil \r\n    end\r\nyou have to do\r\n\r\n    for key, entry in pairs(myTable) do\r\n      -- do stuff with entry\r\n    end\r\n    myTable = {}\r\nto properly iterate over a table and clear it, first method will make next iteration go over old elements again. Not a Lua expert so no idea on how this differs but seems to work identically and well, it doesn't error out on the newest TTS.\r\n\r\nCommit and update will follow (hopefully) shortly, sadly I can't directly update the table :("}}
{"actor":{"display_login":"tjakubo2"}}