{"action":"created","comment":{"url":"https://api.github.com/repos/SublimeLinter/SublimeLinter/pulls/comments/197557189","pull_request_review_id":131332677,"id":197557189,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDE5NzU1NzE4OQ==","diff_hunk":"@@ -312,11 +313,22 @@ def get_linters_for_view(view):\n     bid = view.buffer_id()\n     current_linters = persist.view_linters.get(bid, [])\n \n-    wanted_linters = []\n-    for linter_class in persist.linter_classes.values():\n-        settings = linter_module.get_linter_settings(linter_class, view)\n-        if linter_class.can_lint_view(view, settings):\n-            wanted_linters.append(linter_class(view, settings))\n+    filename = view.file_name()\n+    # Unassign all linters from orphaned views\n+    if filename and not os.path.exists(filename):\n+        logger.info(\n+            \"Skipping buffer {}; '{}' is unreachable\".format(bid, filename))\n+        flash_once(\n+            none_for_none(lambda: view.window().id()),\n+            \"'{}' has become unreachable.\".format(filename)","path":"sublime_linter.py","position":null,"original_position":27,"commit_id":"f811f3a60f001e053c90c01a459178aadd362bf9","original_commit_id":"cbf7dbf176b1c45af44af49c3a563ccbbdd1a279","user":{"login":"braver","id":2543659,"node_id":"MDQ6VXNlcjI1NDM2NTk=","avatar_url":"https://avatars1.githubusercontent.com/u/2543659?v=4","gravatar_id":"","url":"https://api.github.com/users/braver","html_url":"https://github.com/braver","followers_url":"https://api.github.com/users/braver/followers","following_url":"https://api.github.com/users/braver/following{/other_user}","gists_url":"https://api.github.com/users/braver/gists{/gist_id}","starred_url":"https://api.github.com/users/braver/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/braver/subscriptions","organizations_url":"https://api.github.com/users/braver/orgs","repos_url":"https://api.github.com/users/braver/repos","events_url":"https://api.github.com/users/braver/events{/privacy}","received_events_url":"https://api.github.com/users/braver/received_events","type":"User","site_admin":false},"body":"Gotta feel like I contribute something 😀 ","created_at":"2018-06-22T20:12:37Z","updated_at":"2018-06-22T20:12:37Z","html_url":"https://github.com/SublimeLinter/SublimeLinter/pull/1457#discussion_r197557189","pull_request_url":"https://api.github.com/repos/SublimeLinter/SublimeLinter/pulls/1457","author_association":"MEMBER","_links":{"self":{"href":"https://api.github.com/repos/SublimeLinter/SublimeLinter/pulls/comments/197557189"},"html":{"href":"https://github.com/SublimeLinter/SublimeLinter/pull/1457#discussion_r197557189"},"pull_request":{"href":"https://api.github.com/repos/SublimeLinter/SublimeLinter/pulls/1457"}},"in_reply_to_id":197551615},"pull_request":{"url":"https://api.github.com/repos/SublimeLinter/SublimeLinter/pulls/1457","id":195615200,"node_id":"MDExOlB1bGxSZXF1ZXN0MTk1NjE1MjAw","html_url":"https://github.com/SublimeLinter/SublimeLinter/pull/1457","diff_url":"https://github.com/SublimeLinter/SublimeLinter/pull/1457.diff","patch_url":"https://github.com/SublimeLinter/SublimeLinter/pull/1457.patch","issue_url":"https://api.github.com/repos/SublimeLinter/SublimeLinter/issues/1457","number":1457,"state":"open","locked":false,"title":"Ignore orphaned files","user":{"login":"kaste","id":8558,"node_id":"MDQ6VXNlcjg1NTg=","avatar_url":"https://avatars1.githubusercontent.com/u/8558?v=4","gravatar_id":"","url":"https://api.github.com/users/kaste","html_url":"https://github.com/kaste","followers_url":"https://api.github.com/users/kaste/followers","following_url":"https://api.github.com/users/kaste/following{/other_user}","gists_url":"https://api.github.com/users/kaste/gists{/gist_id}","starred_url":"https://api.github.com/users/kaste/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kaste/subscriptions","organizations_url":"https://api.github.com/users/kaste/orgs","repos_url":"https://api.github.com/users/kaste/repos","events_url":"https://api.github.com/users/kaste/events{/privacy}","received_events_url":"https://api.github.com/users/kaste/received_events","type":"User","site_admin":false},"body":"Closes #1454","created_at":"2018-06-18T18:49:58Z","updated_at":"2018-06-22T20:12:37Z","closed_at":null,"merged_at":null,"merge_commit_sha":"8f0f8a0acea6029227632517629d48f23d612313","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/SublimeLinter/SublimeLinter/pulls/1457/commits","review_comments_url":"https://api.github.com/repos/SublimeLinter/SublimeLinter/pulls/1457/comments","review_comment_url":"https://api.github.com/repos/SublimeLinter/SublimeLinter/pulls/comments{/number}","comments_url":"https://api.github.com/repos/SublimeLinter/SublimeLinter/issues/1457/comments","statuses_url":"https://api.github.com/repos/SublimeLinter/SublimeLinter/statuses/f811f3a60f001e053c90c01a459178aadd362bf9","head":{"label":"SublimeLinter:ignore-orphaned-files","ref":"ignore-orphaned-files","sha":"f811f3a60f001e053c90c01a459178aadd362bf9","user":{"login":"SublimeLinter","id":1755200,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE3NTUyMDA=","avatar_url":"https://avatars0.githubusercontent.com/u/1755200?v=4","gravatar_id":"","url":"https://api.github.com/users/SublimeLinter","html_url":"https://github.com/SublimeLinter","followers_url":"https://api.github.com/users/SublimeLinter/followers","following_url":"https://api.github.com/users/SublimeLinter/following{/other_user}","gists_url":"https://api.github.com/users/SublimeLinter/gists{/gist_id}","starred_url":"https://api.github.com/users/SublimeLinter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SublimeLinter/subscriptions","organizations_url":"https://api.github.com/users/SublimeLinter/orgs","repos_url":"https://api.github.com/users/SublimeLinter/repos","events_url":"https://api.github.com/users/SublimeLinter/events{/privacy}","received_events_url":"https://api.github.com/users/SublimeLinter/received_events","type":"Organization","site_admin":false},"repo":{"id":13782029,"node_id":"MDEwOlJlcG9zaXRvcnkxMzc4MjAyOQ==","name":"SublimeLinter","full_name":"SublimeLinter/SublimeLinter","owner":{"login":"SublimeLinter","id":1755200,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE3NTUyMDA=","avatar_url":"https://avatars0.githubusercontent.com/u/1755200?v=4","gravatar_id":"","url":"https://api.github.com/users/SublimeLinter","html_url":"https://github.com/SublimeLinter","followers_url":"https://api.github.com/users/SublimeLinter/followers","following_url":"https://api.github.com/users/SublimeLinter/following{/other_user}","gists_url":"https://api.github.com/users/SublimeLinter/gists{/gist_id}","starred_url":"https://api.github.com/users/SublimeLinter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SublimeLinter/subscriptions","organizations_url":"https://api.github.com/users/SublimeLinter/orgs","repos_url":"https://api.github.com/users/SublimeLinter/repos","events_url":"https://api.github.com/users/SublimeLinter/events{/privacy}","received_events_url":"https://api.github.com/users/SublimeLinter/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/SublimeLinter/SublimeLinter","description":"The code linting framework for Sublime Text 3","fork":false,"url":"https://api.github.com/repos/SublimeLinter/SublimeLinter","forks_url":"https://api.github.com/repos/SublimeLinter/SublimeLinter/forks","keys_url":"https://api.github.com/repos/SublimeLinter/SublimeLinter/keys{/key_id}","collaborators_url":"https://api.github.com/repos/SublimeLinter/SublimeLinter/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/SublimeLinter/SublimeLinter/teams","hooks_url":"https://api.github.com/repos/SublimeLinter/SublimeLinter/hooks","issue_events_url":"https://api.github.com/repos/SublimeLinter/SublimeLinter/issues/events{/number}","events_url":"https://api.github.com/repos/SublimeLinter/SublimeLinter/events","assignees_url":"https://api.github.com/repos/SublimeLinter/SublimeLinter/assignees{/user}","branches_url":"https://api.github.com/repos/SublimeLinter/SublimeLinter/branches{/branch}","tags_url":"https://api.github.com/repos/SublimeLinter/SublimeLinter/tags","blobs_url":"https://api.github.com/repos/SublimeLinter/SublimeLinter/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/SublimeLinter/SublimeLinter/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/SublimeLinter/SublimeLinter/git/refs{/sha}","trees_url":"https://api.github.com/repos/SublimeLinter/SublimeLinter/git/trees{/sha}","statuses_url":"https://api.github.com/repos/SublimeLinter/SublimeLinter/statuses/{sha}","languages_url":"https://api.github.com/repos/SublimeLinter/SublimeLinter/languages","stargazers_url":"https://api.github.com/repos/SublimeLinter/SublimeLinter/stargazers","contributors_url":"https://api.github.com/repos/SublimeLinter/SublimeLinter/contributors","subscribers_url":"https://api.github.com/repos/SublimeLinter/SublimeLinter/subscribers","subscription_url":"https://api.github.com/repos/SublimeLinter/SublimeLinter/subscription","commits_url":"https://api.github.com/repos/SublimeLinter/SublimeLinter/commits{/sha}","git_commits_url":"https://api.github.com/repos/SublimeLinter/SublimeLinter/git/commits{/sha}","comments_url":"https://api.github.com/repos/SublimeLinter/SublimeLinter/comments{/number}","issue_comment_url":"https://api.github.com/repos/SublimeLinter/SublimeLinter/issues/comments{/number}","contents_url":"https://api.github.com/repos/SublimeLinter/SublimeLinter/contents/{+path}","compare_url":"https://api.github.com/repos/SublimeLinter/SublimeLinter/compare/{base}...{head}","merges_url":"https://api.github.com/repos/SublimeLinter/SublimeLinter/merges","archive_url":"https://api.github.com/repos/SublimeLinter/SublimeLinter/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/SublimeLinter/SublimeLinter/downloads","issues_url":"https://api.github.com/repos/SublimeLinter/SublimeLinter/issues{/number}","pulls_url":"https://api.github.com/repos/SublimeLinter/SublimeLinter/pulls{/number}","milestones_url":"https://api.github.com/repos/SublimeLinter/SublimeLinter/milestones{/number}","notifications_url":"https://api.github.com/repos/SublimeLinter/SublimeLinter/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/SublimeLinter/SublimeLinter/labels{/name}","releases_url":"https://api.github.com/repos/SublimeLinter/SublimeLinter/releases{/id}","deployments_url":"https://api.github.com/repos/SublimeLinter/SublimeLinter/deployments","created_at":"2013-10-22T18:27:36Z","updated_at":"2018-06-22T19:39:53Z","pushed_at":"2018-06-22T20:11:15Z","git_url":"git://github.com/SublimeLinter/SublimeLinter.git","ssh_url":"git@github.com:SublimeLinter/SublimeLinter.git","clone_url":"https://github.com/SublimeLinter/SublimeLinter.git","svn_url":"https://github.com/SublimeLinter/SublimeLinter","homepage":"http://sublimelinter.com","size":3893,"stargazers_count":1605,"watchers_count":1605,"language":"Python","has_issues":true,"has_projects":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":234,"mirror_url":null,"archived":false,"open_issues_count":30,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":234,"open_issues":30,"watchers":1605,"default_branch":"master"}},"base":{"label":"SublimeLinter:master","ref":"master","sha":"c7987992bf88faf296116c8238d384158357a58d","user":{"login":"SublimeLinter","id":1755200,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE3NTUyMDA=","avatar_url":"https://avatars0.githubusercontent.com/u/1755200?v=4","gravatar_id":"","url":"https://api.github.com/users/SublimeLinter","html_url":"https://github.com/SublimeLinter","followers_url":"https://api.github.com/users/SublimeLinter/followers","following_url":"https://api.github.com/users/SublimeLinter/following{/other_user}","gists_url":"https://api.github.com/users/SublimeLinter/gists{/gist_id}","starred_url":"https://api.github.com/users/SublimeLinter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SublimeLinter/subscriptions","organizations_url":"https://api.github.com/users/SublimeLinter/orgs","repos_url":"https://api.github.com/users/SublimeLinter/repos","events_url":"https://api.github.com/users/SublimeLinter/events{/privacy}","received_events_url":"https://api.github.com/users/SublimeLinter/received_events","type":"Organization","site_admin":false},"repo":{"id":13782029,"node_id":"MDEwOlJlcG9zaXRvcnkxMzc4MjAyOQ==","name":"SublimeLinter","full_name":"SublimeLinter/SublimeLinter","owner":{"login":"SublimeLinter","id":1755200,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE3NTUyMDA=","avatar_url":"https://avatars0.githubusercontent.com/u/1755200?v=4","gravatar_id":"","url":"https://api.github.com/users/SublimeLinter","html_url":"https://github.com/SublimeLinter","followers_url":"https://api.github.com/users/SublimeLinter/followers","following_url":"https://api.github.com/users/SublimeLinter/following{/other_user}","gists_url":"https://api.github.com/users/SublimeLinter/gists{/gist_id}","starred_url":"https://api.github.com/users/SublimeLinter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SublimeLinter/subscriptions","organizations_url":"https://api.github.com/users/SublimeLinter/orgs","repos_url":"https://api.github.com/users/SublimeLinter/repos","events_url":"https://api.github.com/users/SublimeLinter/events{/privacy}","received_events_url":"https://api.github.com/users/SublimeLinter/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/SublimeLinter/SublimeLinter","description":"The code linting framework for Sublime Text 3","fork":false,"url":"https://api.github.com/repos/SublimeLinter/SublimeLinter","forks_url":"https://api.github.com/repos/SublimeLinter/SublimeLinter/forks","keys_url":"https://api.github.com/repos/SublimeLinter/SublimeLinter/keys{/key_id}","collaborators_url":"https://api.github.com/repos/SublimeLinter/SublimeLinter/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/SublimeLinter/SublimeLinter/teams","hooks_url":"https://api.github.com/repos/SublimeLinter/SublimeLinter/hooks","issue_events_url":"https://api.github.com/repos/SublimeLinter/SublimeLinter/issues/events{/number}","events_url":"https://api.github.com/repos/SublimeLinter/SublimeLinter/events","assignees_url":"https://api.github.com/repos/SublimeLinter/SublimeLinter/assignees{/user}","branches_url":"https://api.github.com/repos/SublimeLinter/SublimeLinter/branches{/branch}","tags_url":"https://api.github.com/repos/SublimeLinter/SublimeLinter/tags","blobs_url":"https://api.github.com/repos/SublimeLinter/SublimeLinter/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/SublimeLinter/SublimeLinter/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/SublimeLinter/SublimeLinter/git/refs{/sha}","trees_url":"https://api.github.com/repos/SublimeLinter/SublimeLinter/git/trees{/sha}","statuses_url":"https://api.github.com/repos/SublimeLinter/SublimeLinter/statuses/{sha}","languages_url":"https://api.github.com/repos/SublimeLinter/SublimeLinter/languages","stargazers_url":"https://api.github.com/repos/SublimeLinter/SublimeLinter/stargazers","contributors_url":"https://api.github.com/repos/SublimeLinter/SublimeLinter/contributors","subscribers_url":"https://api.github.com/repos/SublimeLinter/SublimeLinter/subscribers","subscription_url":"https://api.github.com/repos/SublimeLinter/SublimeLinter/subscription","commits_url":"https://api.github.com/repos/SublimeLinter/SublimeLinter/commits{/sha}","git_commits_url":"https://api.github.com/repos/SublimeLinter/SublimeLinter/git/commits{/sha}","comments_url":"https://api.github.com/repos/SublimeLinter/SublimeLinter/comments{/number}","issue_comment_url":"https://api.github.com/repos/SublimeLinter/SublimeLinter/issues/comments{/number}","contents_url":"https://api.github.com/repos/SublimeLinter/SublimeLinter/contents/{+path}","compare_url":"https://api.github.com/repos/SublimeLinter/SublimeLinter/compare/{base}...{head}","merges_url":"https://api.github.com/repos/SublimeLinter/SublimeLinter/merges","archive_url":"https://api.github.com/repos/SublimeLinter/SublimeLinter/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/SublimeLinter/SublimeLinter/downloads","issues_url":"https://api.github.com/repos/SublimeLinter/SublimeLinter/issues{/number}","pulls_url":"https://api.github.com/repos/SublimeLinter/SublimeLinter/pulls{/number}","milestones_url":"https://api.github.com/repos/SublimeLinter/SublimeLinter/milestones{/number}","notifications_url":"https://api.github.com/repos/SublimeLinter/SublimeLinter/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/SublimeLinter/SublimeLinter/labels{/name}","releases_url":"https://api.github.com/repos/SublimeLinter/SublimeLinter/releases{/id}","deployments_url":"https://api.github.com/repos/SublimeLinter/SublimeLinter/deployments","created_at":"2013-10-22T18:27:36Z","updated_at":"2018-06-22T19:39:53Z","pushed_at":"2018-06-22T20:11:15Z","git_url":"git://github.com/SublimeLinter/SublimeLinter.git","ssh_url":"git@github.com:SublimeLinter/SublimeLinter.git","clone_url":"https://github.com/SublimeLinter/SublimeLinter.git","svn_url":"https://github.com/SublimeLinter/SublimeLinter","homepage":"http://sublimelinter.com","size":3893,"stargazers_count":1605,"watchers_count":1605,"language":"Python","has_issues":true,"has_projects":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":234,"mirror_url":null,"archived":false,"open_issues_count":30,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":234,"open_issues":30,"watchers":1605,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/SublimeLinter/SublimeLinter/pulls/1457"},"html":{"href":"https://github.com/SublimeLinter/SublimeLinter/pull/1457"},"issue":{"href":"https://api.github.com/repos/SublimeLinter/SublimeLinter/issues/1457"},"comments":{"href":"https://api.github.com/repos/SublimeLinter/SublimeLinter/issues/1457/comments"},"review_comments":{"href":"https://api.github.com/repos/SublimeLinter/SublimeLinter/pulls/1457/comments"},"review_comment":{"href":"https://api.github.com/repos/SublimeLinter/SublimeLinter/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/SublimeLinter/SublimeLinter/pulls/1457/commits"},"statuses":{"href":"https://api.github.com/repos/SublimeLinter/SublimeLinter/statuses/f811f3a60f001e053c90c01a459178aadd362bf9"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"braver"}}