{"action":"created","issue":{"url":"https://api.github.com/repos/indiejames/atom-iex/issues/22","labels_url":"https://api.github.com/repos/indiejames/atom-iex/issues/22/labels{/name}","comments_url":"https://api.github.com/repos/indiejames/atom-iex/issues/22/comments","events_url":"https://api.github.com/repos/indiejames/atom-iex/issues/22/events","html_url":"https://github.com/indiejames/atom-iex/issues/22","id":79755172,"number":22,"title":"Uncaught TypeError: Cannot read property 'path' of null","user":{"login":"stocks29","id":188319,"avatar_url":"https://avatars.githubusercontent.com/u/188319?v=3","gravatar_id":"","url":"https://api.github.com/users/stocks29","html_url":"https://github.com/stocks29","followers_url":"https://api.github.com/users/stocks29/followers","following_url":"https://api.github.com/users/stocks29/following{/other_user}","gists_url":"https://api.github.com/users/stocks29/gists{/gist_id}","starred_url":"https://api.github.com/users/stocks29/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stocks29/subscriptions","organizations_url":"https://api.github.com/users/stocks29/orgs","repos_url":"https://api.github.com/users/stocks29/repos","events_url":"https://api.github.com/users/stocks29/events{/privacy}","received_events_url":"https://api.github.com/users/stocks29/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-05-23T06:44:36Z","updated_at":"2015-05-23T14:19:08Z","closed_at":"2015-05-23T14:13:51Z","body":"steps to reproduce below:\r\n\r\n1. Try to \"run all tests in pane\"\r\n\r\n**Atom Version**: 0.201.0\r\n**System**: Mac OS X 10.10.3\r\n**Thrown From**: [iex](https://github.com/indiejames/atom-iex) package, v0.9.6\r\n\r\n\r\n### Stack Trace\r\n\r\nUncaught TypeError: Cannot read property 'path' of null\r\n\r\n```\r\nAt /Users/myusername/.atom/packages/iex/lib/iex.coffee:149\r\n\r\nTypeError: Cannot read property 'path' of null\r\n  at Object.module.exports.Iex.runTests (/Users/myusername/.atom/packages/iex/lib/iex.coffee:149:35)\r\n  at atom-workspace.subscriptions.add.atom.commands.add.iex:run-tests (/Users/myusername/.atom/packages/iex/lib/iex.coffee:87:81)\r\n  at CommandRegistry.module.exports.CommandRegistry.handleCommandEvent (/Applications/Atom.app/Contents/Resources/app.asar/src/command-registry.js:238:29)\r\n  at CommandRegistry.handleCommandEvent (/Applications/Atom.app/Contents/Resources/app.asar/src/command-registry.js:3:61)\r\n  at CommandRegistry.module.exports.CommandRegistry.dispatch (/Applications/Atom.app/Contents/Resources/app.asar/src/command-registry.js:153:19)\r\n  at EventEmitter.<anonymous> (/Applications/Atom.app/Contents/Resources/app.asar/src/window-event-handler.js:71:30)\r\n  at emitOne (events.js:77:13)\r\n  at EventEmitter.emit (events.js:166:7)\r\n\r\n```\r\n\r\n### Commands\r\n\r\n```\r\n     -0:45.2.0 iex:run-all-tests (ol.tree-view.full-menu.list-tree.has-collapsable-children.focusable-panel)\r\n     -0:38.2.0 iex:open (atom-text-editor.editor.is-focused)\r\n     -0:20.8.0 iex:open-split-down (atom-workspace.workspace.scrollbars-visible-when-scrolling.theme-one-dark-syntax.theme-one-dark-ui)\r\n     -0:05.7.0 elixir-cmd:build (atom-text-editor.editor.is-focused)\r\n     -0:00.6.0 iex:run-tests (atom-text-editor.editor.is-focused)\r\n```\r\n\r\n### Config\r\n\r\n```json\r\n{\r\n  \"core\": {\r\n    \"projectHome\": \"/Users/myusername/projects\"\r\n  }\r\n}\r\n```\r\n\r\n### Installed Packages\r\n\r\n```coffee\r\n# User\r\nautocomplete-elixir, v1.2.6\r\nelixir-cmd, v0.2.6\r\nide-haskell, v0.4.2\r\niex, v0.9.6\r\nlanguage-elixir, v0.4.0\r\nlanguage-haskell, v1.0.0\r\nlinter, v0.12.6\r\nlinter-elixirc, v0.2.1\r\nvim-mode, vundefined\r\n\r\n# Dev\r\nNo dev packages\r\n```\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/indiejames/atom-iex/issues/comments/104901608","html_url":"https://github.com/indiejames/atom-iex/issues/22#issuecomment-104901608","issue_url":"https://api.github.com/repos/indiejames/atom-iex/issues/22","id":104901608,"user":{"login":"indiejames","id":308058,"avatar_url":"https://avatars.githubusercontent.com/u/308058?v=3","gravatar_id":"","url":"https://api.github.com/users/indiejames","html_url":"https://github.com/indiejames","followers_url":"https://api.github.com/users/indiejames/followers","following_url":"https://api.github.com/users/indiejames/following{/other_user}","gists_url":"https://api.github.com/users/indiejames/gists{/gist_id}","starred_url":"https://api.github.com/users/indiejames/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/indiejames/subscriptions","organizations_url":"https://api.github.com/users/indiejames/orgs","repos_url":"https://api.github.com/users/indiejames/repos","events_url":"https://api.github.com/users/indiejames/events{/privacy}","received_events_url":"https://api.github.com/users/indiejames/received_events","type":"User","site_admin":false},"created_at":"2015-05-23T14:19:08Z","updated_at":"2015-05-23T14:19:08Z","body":"@stocks29 thanks for the detailed bug report. This makes it much easier to reproduce and fix problems. This one was caused by me not checking to see if the active editor was null when attempting to run the tests. I have added the check so now 'run all tests in pane' does nothing if the active pane is not an file editor."}}