{"action":"created","issue":{"url":"https://api.github.com/repos/astrauka/TestRSpec/issues/4","repository_url":"https://api.github.com/repos/astrauka/TestRSpec","labels_url":"https://api.github.com/repos/astrauka/TestRSpec/issues/4/labels{/name}","comments_url":"https://api.github.com/repos/astrauka/TestRSpec/issues/4/comments","events_url":"https://api.github.com/repos/astrauka/TestRSpec/issues/4/events","html_url":"https://github.com/astrauka/TestRSpec/issues/4","id":151831340,"number":4,"title":"Plugin modules reload fails on plugin version update","user":{"login":"astrauka","id":1308928,"avatar_url":"https://avatars.githubusercontent.com/u/1308928?v=3","gravatar_id":"","url":"https://api.github.com/users/astrauka","html_url":"https://github.com/astrauka","followers_url":"https://api.github.com/users/astrauka/followers","following_url":"https://api.github.com/users/astrauka/following{/other_user}","gists_url":"https://api.github.com/users/astrauka/gists{/gist_id}","starred_url":"https://api.github.com/users/astrauka/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/astrauka/subscriptions","organizations_url":"https://api.github.com/users/astrauka/orgs","repos_url":"https://api.github.com/users/astrauka/repos","events_url":"https://api.github.com/users/astrauka/events{/privacy}","received_events_url":"https://api.github.com/users/astrauka/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-04-29T09:54:50Z","updated_at":"2016-05-02T07:44:44Z","closed_at":null,"body":"```\r\nreloading plugin TestRSpec.test_rspec\r\nTraceback (most recent call last):\r\n  File \"/Applications/Sublime Text.app/Contents/MacOS/sublime_plugin.py\", line 78, in reload_plugin\r\n    m = importlib.import_module(modulename)\r\n  File \"./importlib/__init__.py\", line 90, in import_module\r\n  File \"<frozen importlib._bootstrap>\", line 1584, in _gcd_import\r\n  File \"<frozen importlib._bootstrap>\", line 1565, in _find_and_load\r\n  File \"<frozen importlib._bootstrap>\", line 1532, in _find_and_load_unlocked\r\n  File \"/Applications/Sublime Text.app/Contents/MacOS/sublime_plugin.py\", line 696, in load_module\r\n    exec(compile(source, source_path, 'exec'), mod.__dict__)\r\n  File \"test_rspec in /Users/gediminasz/Library/Application Support/Sublime Text 3/Installed Packages/TestRSpec.sublime-package\", line 13, in <module>\r\n  File \"./imp.py\", line 276, in reload\r\nzipimport.ZipImportError: bad local file header in /Users/gediminasz/Library/Application Support/Sublime Text 3/Installed Packages/TestRSpec.sublime-package\r\n```\r\n\r\nAdd hooks to clean imp loaded modules"},"comment":{"url":"https://api.github.com/repos/astrauka/TestRSpec/issues/comments/216124875","html_url":"https://github.com/astrauka/TestRSpec/issues/4#issuecomment-216124875","issue_url":"https://api.github.com/repos/astrauka/TestRSpec/issues/4","id":216124875,"user":{"login":"astrauka","id":1308928,"avatar_url":"https://avatars.githubusercontent.com/u/1308928?v=3","gravatar_id":"","url":"https://api.github.com/users/astrauka","html_url":"https://github.com/astrauka","followers_url":"https://api.github.com/users/astrauka/followers","following_url":"https://api.github.com/users/astrauka/following{/other_user}","gists_url":"https://api.github.com/users/astrauka/gists{/gist_id}","starred_url":"https://api.github.com/users/astrauka/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/astrauka/subscriptions","organizations_url":"https://api.github.com/users/astrauka/orgs","repos_url":"https://api.github.com/users/astrauka/repos","events_url":"https://api.github.com/users/astrauka/events{/privacy}","received_events_url":"https://api.github.com/users/astrauka/received_events","type":"User","site_admin":false},"created_at":"2016-05-02T07:44:44Z","updated_at":"2016-05-02T07:44:44Z","body":"No proper fix as per https://forum.sublimetext.com/t/hot-update-without-restarting-sublime/14965/3\r\n\r\nWill add \"Please restart Sublime Text if plugin stopped working\" to avoid issues on upgrade"}}