{"action":"closed","issue":{"url":"https://api.github.com/repos/victor-torres/atom-hg/issues/1","repository_url":"https://api.github.com/repos/victor-torres/atom-hg","labels_url":"https://api.github.com/repos/victor-torres/atom-hg/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/victor-torres/atom-hg/issues/1/comments","events_url":"https://api.github.com/repos/victor-torres/atom-hg/issues/1/events","html_url":"https://github.com/victor-torres/atom-hg/issues/1","id":142694197,"number":1,"title":"Uncaught Error: ENOENT: no such file or directory, open '/home/richard/dev/django/biebhelmond/bie...","user":{"login":"richarddewit","id":7933750,"avatar_url":"https://avatars.githubusercontent.com/u/7933750?v=3","gravatar_id":"","url":"https://api.github.com/users/richarddewit","html_url":"https://github.com/richarddewit","followers_url":"https://api.github.com/users/richarddewit/followers","following_url":"https://api.github.com/users/richarddewit/following{/other_user}","gists_url":"https://api.github.com/users/richarddewit/gists{/gist_id}","starred_url":"https://api.github.com/users/richarddewit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/richarddewit/subscriptions","organizations_url":"https://api.github.com/users/richarddewit/orgs","repos_url":"https://api.github.com/users/richarddewit/repos","events_url":"https://api.github.com/users/richarddewit/events{/privacy}","received_events_url":"https://api.github.com/users/richarddewit/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/victor-torres/atom-hg/labels/bug","name":"bug","color":"fc2929"}],"state":"closed","locked":false,"assignee":{"login":"victor-torres","id":3674112,"avatar_url":"https://avatars.githubusercontent.com/u/3674112?v=3","gravatar_id":"","url":"https://api.github.com/users/victor-torres","html_url":"https://github.com/victor-torres","followers_url":"https://api.github.com/users/victor-torres/followers","following_url":"https://api.github.com/users/victor-torres/following{/other_user}","gists_url":"https://api.github.com/users/victor-torres/gists{/gist_id}","starred_url":"https://api.github.com/users/victor-torres/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/victor-torres/subscriptions","organizations_url":"https://api.github.com/users/victor-torres/orgs","repos_url":"https://api.github.com/users/victor-torres/repos","events_url":"https://api.github.com/users/victor-torres/events{/privacy}","received_events_url":"https://api.github.com/users/victor-torres/received_events","type":"User","site_admin":false},"milestone":null,"comments":1,"created_at":"2016-03-22T15:55:07Z","updated_at":"2016-03-22T23:58:44Z","closed_at":"2016-03-22T23:58:44Z","body":"Thanks for creating this package! I really really needed a Mercurial package for Atom :)\r\n\r\n## Steps to reproduce\r\n\r\n1. Have tabs open\r\n2. Try to close all tabs\r\n3. On last tab close, error is thrown and tab is still opened\r\n\r\n## Info\r\n\r\n**Atom Version**: 1.6.0\r\n**System**: Linux Mint\r\n**Thrown From**: [atom-hg](https://github.com/victor-torres/atom-hg) package, v0.0.7\r\n\r\n\r\n## Stack Trace\r\n\r\nUncaught Error: ENOENT: no such file or directory, open '/home/richard/dev/django/biebhelmond/biebhelmond/.hg/branch'\r\n\r\n```\r\nAt fs.js:549\r\n\r\nError: ENOENT: no such file or directory, open '/home/richard/dev/django/biebhelmond/biebhelmond/.hg/branch'\r\n    at Error (native)\r\n    at Object.fs.openSync (fs.js:549:18)\r\n    at Object.module.(anonymous function) [as openSync] (ATOM_SHELL_ASAR.js:137:20)\r\n    at Object.fs.readFileSync (fs.js:397:15)\r\n    at Object.fs.readFileSync (ATOM_SHELL_ASAR.js:385:29)\r\n    at Repository.getShortHead (/home/richard/.atom/packages/atom-hg/lib/hg-utils.coffee:97:15)\r\n    at HgRepository.module.exports.HgRepository.getShortHead (/home/richard/.atom/packages/atom-hg/lib/hg-repository.coffee:169:42)\r\n    at status-bar-git.GitView.updateBranchText (/opt/atom/resources/app.asar/node_modules/status-bar/lib/git-view.js:179:37)\r\n    at status-bar-git.GitView.update (/opt/atom/resources/app.asar/node_modules/status-bar/lib/git-view.js:170:12)\r\n    at status-bar-git.GitView.subscribeToActiveItem (/opt/atom/resources/app.asar/node_modules/status-bar/lib/git-view.js:81:19)\r\n    at /opt/atom/resources/app.asar/node_modules/status-bar/lib/git-view.js:24:24\r\n    at Function.module.exports.Emitter.simpleDispatch (/opt/atom/resources/app.asar/node_modules/event-kit/lib/emitter.js:25:14)\r\n    at Emitter.module.exports.Emitter.emit (/opt/atom/resources/app.asar/node_modules/event-kit/lib/emitter.js:125:28)\r\n    at /opt/atom/resources/app.asar/src/pane-container.js:346:27\r\n    at Function.module.exports.Emitter.simpleDispatch (/opt/atom/resources/app.asar/node_modules/event-kit/lib/emitter.js:25:14)\r\n    at Emitter.module.exports.Emitter.emit (/opt/atom/resources/app.asar/node_modules/event-kit/lib/emitter.js:125:28)\r\n    at Pane.module.exports.Pane.setActiveItem (/opt/atom/resources/app.asar/src/pane.js:255:22)\r\n    at Pane.module.exports.Pane.removeItem (/opt/atom/resources/app.asar/src/pane.js:463:16)\r\n    at Pane.module.exports.Pane.destroyItem (/opt/atom/resources/app.asar/src/pane.js:532:16)\r\n    at atom-tabs.TabBarView.onMouseDown (/opt/atom/resources/app.asar/node_modules/tabs/lib/tab-bar-view.js:601:19)\r\n```"}}