{"action":"created","issue":{"url":"https://api.github.com/repos/oriolmirosa/open-files/issues/2","repository_url":"https://api.github.com/repos/oriolmirosa/open-files","labels_url":"https://api.github.com/repos/oriolmirosa/open-files/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/oriolmirosa/open-files/issues/2/comments","events_url":"https://api.github.com/repos/oriolmirosa/open-files/issues/2/events","html_url":"https://github.com/oriolmirosa/open-files/issues/2","id":182976189,"number":2,"title":"Plugin fails to load if \"Settings\" is open","user":{"login":"Goodwine","id":2022649,"avatar_url":"https://avatars.githubusercontent.com/u/2022649?v=3","gravatar_id":"","url":"https://api.github.com/users/Goodwine","html_url":"https://github.com/Goodwine","followers_url":"https://api.github.com/users/Goodwine/followers","following_url":"https://api.github.com/users/Goodwine/following{/other_user}","gists_url":"https://api.github.com/users/Goodwine/gists{/gist_id}","starred_url":"https://api.github.com/users/Goodwine/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Goodwine/subscriptions","organizations_url":"https://api.github.com/users/Goodwine/orgs","repos_url":"https://api.github.com/users/Goodwine/repos","events_url":"https://api.github.com/users/Goodwine/events{/privacy}","received_events_url":"https://api.github.com/users/Goodwine/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-10-14T06:52:12Z","updated_at":"2016-10-14T06:54:50Z","closed_at":null,"body":"I noticed that when you open your editor and the \"settings\" tab/page/whatever is open, the plugin won't load because it tries to get the \"path\" from the pane item, and \"settings\" doesn't have a path.\r\n\r\nThe exception thrown is:\r\n\r\n```\r\nUncaught (in promise) TypeError: item.getPath is not a function\r\n    at ~/.atom/packages/open-files/lib/open-files-pane-view.js:64:48\r\n    at Pane.module.exports.Pane.observeItems (/opt/atom/resources/app.asar/src/pane.js:211:9)\r\n    at OpenFilesPaneView.setPane (~/.atom/packages/open-files/lib/open-files-pane-view.js:50:25)\r\n    at OpenFilesView.addTabGroup (~/.atom/packages/open-files/lib/open-files-view.js:28:9)\r\n    at ~/.atom/packages/open-files/lib/open-files-view.js:17:9\r\n    at PaneContainer.module.exports.PaneContainer.observePanes (/opt/atom/resources/app.asar/src/pane-container.js:92:9)\r\n    at Workspace.module.exports.Workspace.observePanes (/opt/atom/resources/app.asar/src/workspace.js:374:33)\r\n    at new OpenFilesView (~/.atom/packages/open-files/lib/open-files-view.js:16:35)\r\n    at ~/.atom/packages/open-files/lib/open-files.js:19:25\r\n```"},"comment":{"url":"https://api.github.com/repos/oriolmirosa/open-files/issues/comments/253723650","html_url":"https://github.com/oriolmirosa/open-files/issues/2#issuecomment-253723650","issue_url":"https://api.github.com/repos/oriolmirosa/open-files/issues/2","id":253723650,"user":{"login":"Goodwine","id":2022649,"avatar_url":"https://avatars.githubusercontent.com/u/2022649?v=3","gravatar_id":"","url":"https://api.github.com/users/Goodwine","html_url":"https://github.com/Goodwine","followers_url":"https://api.github.com/users/Goodwine/followers","following_url":"https://api.github.com/users/Goodwine/following{/other_user}","gists_url":"https://api.github.com/users/Goodwine/gists{/gist_id}","starred_url":"https://api.github.com/users/Goodwine/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Goodwine/subscriptions","organizations_url":"https://api.github.com/users/Goodwine/orgs","repos_url":"https://api.github.com/users/Goodwine/repos","events_url":"https://api.github.com/users/Goodwine/events{/privacy}","received_events_url":"https://api.github.com/users/Goodwine/received_events","type":"User","site_admin":false},"created_at":"2016-10-14T06:54:50Z","updated_at":"2016-10-14T06:54:50Z","body":"BTW the current workaround is to close the \"Settings\" tab (or any other tab that could have no path) and restart/refresh the editor (Normally you can refresh with Ctrl+Alt+R)."}}
{"actor":{"display_login":"Goodwine"}}