{"action":"created","issue":{"url":"https://api.github.com/repos/atom-haskell/ide-haskell-repl/issues/18","repository_url":"https://api.github.com/repos/atom-haskell/ide-haskell-repl","labels_url":"https://api.github.com/repos/atom-haskell/ide-haskell-repl/issues/18/labels{/name}","comments_url":"https://api.github.com/repos/atom-haskell/ide-haskell-repl/issues/18/comments","events_url":"https://api.github.com/repos/atom-haskell/ide-haskell-repl/issues/18/events","html_url":"https://github.com/atom-haskell/ide-haskell-repl/issues/18","id":137598115,"number":18,"title":"Uncaught TypeError: Cannot read property 'startsWith' of undefined","user":{"login":"matthieubulte","id":6624306,"avatar_url":"https://avatars.githubusercontent.com/u/6624306?v=3","gravatar_id":"","url":"https://api.github.com/users/matthieubulte","html_url":"https://github.com/matthieubulte","followers_url":"https://api.github.com/users/matthieubulte/followers","following_url":"https://api.github.com/users/matthieubulte/following{/other_user}","gists_url":"https://api.github.com/users/matthieubulte/gists{/gist_id}","starred_url":"https://api.github.com/users/matthieubulte/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/matthieubulte/subscriptions","organizations_url":"https://api.github.com/users/matthieubulte/orgs","repos_url":"https://api.github.com/users/matthieubulte/repos","events_url":"https://api.github.com/users/matthieubulte/events{/privacy}","received_events_url":"https://api.github.com/users/matthieubulte/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-03-01T15:06:09Z","updated_at":"2016-03-01T15:46:11Z","closed_at":null,"body":"Got an exception when I tried to open my REPL after upgrading to the last version\r\n\r\nI tried to follow the stack trace, it is caused by `comp` being undefined, this variable is defined in the same file at line 67:\r\n`[comp] = Util.getComponentFromFileSync cabalContents, @cwd.relativize(@uri)`\r\nThe problem is that the array returned is empty. The relative url seems to be fine. Then comes the GHCJS runtime and I couldn't debut anything anymore.\r\n\r\nThanks!\r\n\r\n**Atom Version**: 1.5.3\r\n**System**: Mac OS X 10.10.5\r\n**Thrown From**: [ide-haskell-repl](https://github.com/atom-haskell/ide-haskell-repl) package, v0.0.18\r\n\r\n\r\n### Stack Trace\r\n\r\nUncaught TypeError: Cannot read property 'startsWith' of undefined\r\n\r\n```\r\nAt /Users/mbulte/.atom/packages/ide-haskell-repl/lib/ide-haskell-repl-view.coffee:73\r\n\r\nTypeError: Cannot read property 'startsWith' of undefined\r\n    at new IdeHaskellReplView (/Users/mbulte/.atom/packages/ide-haskell-repl/lib/ide-haskell-repl-view.coffee:73:14)\r\n    at /Users/mbulte/.atom/packages/ide-haskell-repl/lib/ide-haskell-repl.coffee:34:18\r\n    at Workspace.module.exports.Workspace.openURIInPane (/Applications/Atom.app/Contents/Resources/app.asar/src/workspace.js:465:22)\r\n    at Workspace.module.exports.Workspace.open (/Applications/Atom.app/Contents/Resources/app.asar/src/workspace.js:404:19)\r\n    at Object.module.exports.IdeHaskellRepl.open (/Users/mbulte/.atom/packages/ide-haskell-repl/lib/ide-haskell-repl.coffee:64:20)\r\n    at atom-text-editor.disposables.add.atom.commands.add.ide-haskell-repl:toggle (/Users/mbulte/.atom/packages/ide-haskell-repl/lib/ide-haskell-repl.coffee:40:10)\r\n    at CommandRegistry.module.exports.CommandRegistry.handleCommandEvent (/Applications/Atom.app/Contents/Resources/app.asar/src/command-registry.js:260: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:160:19)\r\n    at AtomEnvironment.module.exports.AtomEnvironment.dispatchApplicationMenuCommand (/Applications/Atom.app/Contents/Resources/app.asar/src/atom-environment.js:1013:28)\r\n    at emitOne (events.js:77:13)\r\n    at EventEmitter.emit (events.js:169:7)\r\n```\r\n\r\n### Commands\r\n\r\n```\r\n     -0:04.5.0 core:save (atom-text-editor.editor.is-focused)\r\n     -0:04.5.0 ide-haskell:prettify-file (atom-text-editor.editor.is-focused)\r\n     -0:01.5.0 ide-haskell-repl:toggle (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    \"disabledPackages\": [\r\n      \"atom-typescript\"\r\n    ],\r\n    \"themes\": [\r\n      \"seti-ui\",\r\n      \"seti-syntax\"\r\n    ]\r\n  },\r\n  \"ide-haskell-repl\": {\r\n    \"commandArgs\": [\r\n      \"ghci\"\r\n    ],\r\n    \"commandPath\": \"stack\"\r\n  }\r\n}\r\n```\r\n\r\n### Installed Packages\r\n\r\n```coffee\r\n# User\r\nautocomplete-haskell, v0.6.2\r\nhaskell-ghc-mod, v1.9.6\r\nide-haskell, v1.5.2\r\nide-haskell-repl, v0.0.18\r\nlanguage-haskell, v1.7.1\r\nlanguage-ocaml, v1.1.2\r\nlanguage-purescript, v0.6.1\r\nlinter, v1.11.3\r\nlocal-history, v3.2.3\r\nseti-syntax, v0.4.1\r\nseti-ui, v0.9.1\r\nwordcount, v2.6.0\r\n\r\n# Dev\r\nNo dev packages\r\n```\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/atom-haskell/ide-haskell-repl/issues/comments/190777892","html_url":"https://github.com/atom-haskell/ide-haskell-repl/issues/18#issuecomment-190777892","issue_url":"https://api.github.com/repos/atom-haskell/ide-haskell-repl/issues/18","id":190777892,"user":{"login":"matthieubulte","id":6624306,"avatar_url":"https://avatars.githubusercontent.com/u/6624306?v=3","gravatar_id":"","url":"https://api.github.com/users/matthieubulte","html_url":"https://github.com/matthieubulte","followers_url":"https://api.github.com/users/matthieubulte/followers","following_url":"https://api.github.com/users/matthieubulte/following{/other_user}","gists_url":"https://api.github.com/users/matthieubulte/gists{/gist_id}","starred_url":"https://api.github.com/users/matthieubulte/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/matthieubulte/subscriptions","organizations_url":"https://api.github.com/users/matthieubulte/orgs","repos_url":"https://api.github.com/users/matthieubulte/repos","events_url":"https://api.github.com/users/matthieubulte/events{/privacy}","received_events_url":"https://api.github.com/users/matthieubulte/received_events","type":"User","site_admin":false},"created_at":"2016-03-01T15:46:11Z","updated_at":"2016-03-01T15:46:11Z","body":"Thanks for answering so fast! It's a stack project that worked just fine before installing the last upgrades that came today."}}