{"action":"created","issue":{"url":"https://api.github.com/repos/tomv564/LSP/issues/132","repository_url":"https://api.github.com/repos/tomv564/LSP","labels_url":"https://api.github.com/repos/tomv564/LSP/issues/132/labels{/name}","comments_url":"https://api.github.com/repos/tomv564/LSP/issues/132/comments","events_url":"https://api.github.com/repos/tomv564/LSP/issues/132/events","html_url":"https://github.com/tomv564/LSP/issues/132","id":261756893,"number":132,"title":"Disabling or Reloading LSP package causes heavy CPU usage of plugin_host ","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":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2017-09-29T20:08:22Z","updated_at":"2017-09-30T07:31:58Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"While working on the PR to expand the environment variables, I have to reload the LSP/main.py several times. After doing so, ST starts to lack heavily. Task Manager shows the plugin_host.ext with 30% of CPU usage without dropping some times. \r\n\r\nI checked it with current master and 0.2.1 and 0.2.2 with ST3 3144 x64 portable vanilla install, too. Just Package Control, LSP and its dependencies. As soon as the package is disabled or reloaded, something seems to trigger an endless loop.\r\n\r\nSteps to Reproduce\r\n\r\n1. Start Sublime Text\r\n2. Open a python file with pyls enabled\r\n3. Run _Package Control: Disable Package_ or save the open main.py\r\n4. Have a look at the Task Manager\r\n\r\nWas not yet able to get an idea of what might cause it."},"comment":{"url":"https://api.github.com/repos/tomv564/LSP/issues/comments/333290565","html_url":"https://github.com/tomv564/LSP/issues/132#issuecomment-333290565","issue_url":"https://api.github.com/repos/tomv564/LSP/issues/132","id":333290565,"user":{"login":"tomv564","id":4395832,"avatar_url":"https://avatars0.githubusercontent.com/u/4395832?v=4","gravatar_id":"","url":"https://api.github.com/users/tomv564","html_url":"https://github.com/tomv564","followers_url":"https://api.github.com/users/tomv564/followers","following_url":"https://api.github.com/users/tomv564/following{/other_user}","gists_url":"https://api.github.com/users/tomv564/gists{/gist_id}","starred_url":"https://api.github.com/users/tomv564/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tomv564/subscriptions","organizations_url":"https://api.github.com/users/tomv564/orgs","repos_url":"https://api.github.com/users/tomv564/repos","events_url":"https://api.github.com/users/tomv564/events{/privacy}","received_events_url":"https://api.github.com/users/tomv564/received_events","type":"User","site_admin":false},"created_at":"2017-09-30T07:31:58Z","updated_at":"2017-09-30T07:31:58Z","author_association":"OWNER","body":"@deathaxe You mention you checked with 0.2.1 and 0.2.2 but didn't clarify if the issue occurs with those versions too? There is only 1 major change since 0.2.2, so it would be helpful to know if that is the culprit!"}}
{"actor":{"display_login":"tomv564"}}