{"action":"created","issue":{"url":"https://api.github.com/repos/SublimeTextIssues/Core/issues/1498","repository_url":"https://api.github.com/repos/SublimeTextIssues/Core","labels_url":"https://api.github.com/repos/SublimeTextIssues/Core/issues/1498/labels{/name}","comments_url":"https://api.github.com/repos/SublimeTextIssues/Core/issues/1498/comments","events_url":"https://api.github.com/repos/SublimeTextIssues/Core/issues/1498/events","html_url":"https://github.com/SublimeTextIssues/Core/issues/1498","id":189720913,"number":1498,"title":"The on_activated_async() is not called after plugins are loaded","user":{"login":"deathaxe","id":16542113,"avatar_url":"https://avatars0.githubusercontent.com/u/16542113?v=4","gravatar_id":"","url":"https://api.github.com/users/deathaxe","html_url":"https://github.com/deathaxe","followers_url":"https://api.github.com/users/deathaxe/followers","following_url":"https://api.github.com/users/deathaxe/following{/other_user}","gists_url":"https://api.github.com/users/deathaxe/gists{/gist_id}","starred_url":"https://api.github.com/users/deathaxe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/deathaxe/subscriptions","organizations_url":"https://api.github.com/users/deathaxe/orgs","repos_url":"https://api.github.com/users/deathaxe/repos","events_url":"https://api.github.com/users/deathaxe/events{/privacy}","received_events_url":"https://api.github.com/users/deathaxe/received_events","type":"User","site_admin":false},"labels":[{"id":36959096,"url":"https://api.github.com/repos/SublimeTextIssues/Core/labels/C:%20API","name":"C: API","color":"669933","default":false},{"id":103674806,"url":"https://api.github.com/repos/SublimeTextIssues/Core/labels/C:%20Events","name":"C: Events","color":"669933","default":false},{"id":37255942,"url":"https://api.github.com/repos/SublimeTextIssues/Core/labels/S:%20minor","name":"S: minor","color":"F2A984","default":false},{"id":36869000,"url":"https://api.github.com/repos/SublimeTextIssues/Core/labels/T:%20bug","name":"T: bug","color":"e11d21","default":false},{"id":86982573,"url":"https://api.github.com/repos/SublimeTextIssues/Core/labels/with%20patch","name":"with patch","color":"bfe5bf","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/SublimeTextIssues/Core/milestones/68","html_url":"https://github.com/SublimeTextIssues/Core/milestone/68","labels_url":"https://api.github.com/repos/SublimeTextIssues/Core/milestones/68/labels","id":3149245,"number":68,"title":"Build 3158","description":null,"creator":{"login":"wbond","id":41734,"avatar_url":"https://avatars0.githubusercontent.com/u/41734?v=4","gravatar_id":"","url":"https://api.github.com/users/wbond","html_url":"https://github.com/wbond","followers_url":"https://api.github.com/users/wbond/followers","following_url":"https://api.github.com/users/wbond/following{/other_user}","gists_url":"https://api.github.com/users/wbond/gists{/gist_id}","starred_url":"https://api.github.com/users/wbond/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wbond/subscriptions","organizations_url":"https://api.github.com/users/wbond/orgs","repos_url":"https://api.github.com/users/wbond/repos","events_url":"https://api.github.com/users/wbond/events{/privacy}","received_events_url":"https://api.github.com/users/wbond/received_events","type":"User","site_admin":false},"open_issues":20,"closed_issues":4,"state":"open","created_at":"2018-02-28T02:01:41Z","updated_at":"2018-03-29T11:11:13Z","due_on":null,"closed_at":null},"comments":2,"created_at":"2016-11-16T14:30:55Z","updated_at":"2018-03-29T11:11:13Z","closed_at":"2018-03-29T11:11:13Z","author_association":"NONE","body":"### Summary\r\n\r\nPlugins relying on the `on_activated_async()` event do not get informed about a view being activated directly after Sublime Text started and finished loading all plugins, if only one view exists.\r\n\r\nThis issue could be resolved with the information from Issue #5\r\n\r\n### Expected behavior\r\n\r\nA call of `on_activated_async()` function should be added to `sublime_plugin.py` by the following patch: [call_on_activated_async.patch.txt](https://github.com/SublimeTextIssues/Core/files/594848/call_on_activated_async.patch.txt)\r\n\r\n### Actual behavior\r\n\r\nThe `on_activated_async()` event is not called if Sublime Text is opened with only one view and file.\r\n\r\n### Steps to reproduce\r\n\r\n1. Write and install a little plugin with an `EventListener` which prints some text if the `on_activated_async()` is called.\r\n2. Close all remaining files, if hot_exit:true\r\n3. Close Sublime Text\r\n4. Call sublime_text.exe \"somefile.py\" to open only one view with one file.\r\n\r\n### Environment\r\n\r\n* Operating system and version:\r\n  * [X] Windows ...\r\n  * [X] Mac OS ...\r\n  * [X] Linux ...\r\n* Sublime Text:\r\n  * Build 3126\r\n"},"comment":{"url":"https://api.github.com/repos/SublimeTextIssues/Core/issues/comments/377202475","html_url":"https://github.com/SublimeTextIssues/Core/issues/1498#issuecomment-377202475","issue_url":"https://api.github.com/repos/SublimeTextIssues/Core/issues/1498","id":377202475,"user":{"login":"wbond","id":41734,"avatar_url":"https://avatars0.githubusercontent.com/u/41734?v=4","gravatar_id":"","url":"https://api.github.com/users/wbond","html_url":"https://github.com/wbond","followers_url":"https://api.github.com/users/wbond/followers","following_url":"https://api.github.com/users/wbond/following{/other_user}","gists_url":"https://api.github.com/users/wbond/gists{/gist_id}","starred_url":"https://api.github.com/users/wbond/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wbond/subscriptions","organizations_url":"https://api.github.com/users/wbond/orgs","repos_url":"https://api.github.com/users/wbond/repos","events_url":"https://api.github.com/users/wbond/events{/privacy}","received_events_url":"https://api.github.com/users/wbond/received_events","type":"User","site_admin":false},"created_at":"2018-03-29T11:11:13Z","updated_at":"2018-03-29T11:11:13Z","author_association":"OWNER","body":"This was fixed in build 3158. Also, `on_activated()` and `on_activated_async()` are now properly synthesized for `ViewEventListener` classes also."}}
{"actor":{"display_login":"wbond"}}