{"action":"opened","issue":{"url":"https://api.github.com/repos/roadhump/SublimeLinter-eslint/issues/55","labels_url":"https://api.github.com/repos/roadhump/SublimeLinter-eslint/issues/55/labels{/name}","comments_url":"https://api.github.com/repos/roadhump/SublimeLinter-eslint/issues/55/comments","events_url":"https://api.github.com/repos/roadhump/SublimeLinter-eslint/issues/55/events","html_url":"https://github.com/roadhump/SublimeLinter-eslint/issues/55","id":76780195,"number":55,"title":"Linter crashes if no folder is open","user":{"login":"akloeber","id":968308,"avatar_url":"https://avatars.githubusercontent.com/u/968308?v=3","gravatar_id":"","url":"https://api.github.com/users/akloeber","html_url":"https://github.com/akloeber","followers_url":"https://api.github.com/users/akloeber/followers","following_url":"https://api.github.com/users/akloeber/following{/other_user}","gists_url":"https://api.github.com/users/akloeber/gists{/gist_id}","starred_url":"https://api.github.com/users/akloeber/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/akloeber/subscriptions","organizations_url":"https://api.github.com/users/akloeber/orgs","repos_url":"https://api.github.com/users/akloeber/repos","events_url":"https://api.github.com/users/akloeber/events{/privacy}","received_events_url":"https://api.github.com/users/akloeber/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-05-15T16:30:10Z","updated_at":"2015-05-15T16:30:10Z","closed_at":null,"body":"If a single JavaScript file is opened (no folder in the sidebar), the linter crashes with the following output in the console:\r\n````\r\n  File \"/Users/aske/Library/Application Support/Sublime Text 3/Packages/SublimeLinter/lint/linter.py\", line 1784, in run\r\n    return self.communicate(cmd, code)\r\n  File \"/Users/aske/Library/Application Support/Sublime Text 3/Packages/SublimeLinter-contrib-eslint/linter.py\", line 84, in communicate\r\n    relfilename = os.path.relpath(self.filename, vars['folder'])\r\nKeyError: 'folder'\r\n````\r\nIt works if an entire folder is open.\r\n\r\n__Environment:__\r\nST3 Build 8083\r\neslint 0.22.0"}}