{"action":"created","issue":{"url":"https://api.github.com/repos/atom-haskell/ide-haskell/issues/67","labels_url":"https://api.github.com/repos/atom-haskell/ide-haskell/issues/67/labels{/name}","comments_url":"https://api.github.com/repos/atom-haskell/ide-haskell/issues/67/comments","events_url":"https://api.github.com/repos/atom-haskell/ide-haskell/issues/67/events","html_url":"https://github.com/atom-haskell/ide-haskell/issues/67","id":85878300,"number":67,"title":"Uncaught TypeError: Cannot read property 'length' of undefined","user":{"login":"Qinka","id":9249996,"avatar_url":"https://avatars.githubusercontent.com/u/9249996?v=3","gravatar_id":"","url":"https://api.github.com/users/Qinka","html_url":"https://github.com/Qinka","followers_url":"https://api.github.com/users/Qinka/followers","following_url":"https://api.github.com/users/Qinka/following{/other_user}","gists_url":"https://api.github.com/users/Qinka/gists{/gist_id}","starred_url":"https://api.github.com/users/Qinka/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Qinka/subscriptions","organizations_url":"https://api.github.com/users/Qinka/orgs","repos_url":"https://api.github.com/users/Qinka/repos","events_url":"https://api.github.com/users/Qinka/events{/privacy}","received_events_url":"https://api.github.com/users/Qinka/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/atom-haskell/ide-haskell/labels/more%20info%20needed","name":"more info needed","color":"bfdadc"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-06-07T09:02:21Z","updated_at":"2015-06-09T14:08:23Z","closed_at":null,"body":"[Enter steps to reproduce below:]\r\n\r\n1. ...\r\n2. ...\r\n\r\n**Atom Version**: 0.207.0\r\n**System**: Unknown Windows Version\r\n**Thrown From**: [ide-haskell](https://github.com/atom-haskell/ide-haskell) package, v0.5.10\r\n\r\n\r\n### Stack Trace\r\n\r\nUncaught TypeError: Cannot read property 'length' of undefined\r\n\r\n```\r\nAt C:\\Users\\Qinka\\AppData\\Local\\atom\\app-0.207.0\\resources\\app.asar\\node_modules\\text-buffer\\lib\\text-buffer.js:409\r\n\r\nTypeError: Cannot read property 'length' of undefined\r\n  at TextBuffer.module.exports.TextBuffer.lineLengthForRow (C:\\Users\\Qinka\\AppData\\Local\\atom\\app-0.207.0\\resources\\app.asar\\node_modules\\text-buffer\\lib\\text-buffer.js:409:29)\r\n  at TextBuffer.module.exports.TextBuffer.rangeForRow (C:\\Users\\Qinka\\AppData\\Local\\atom\\app-0.207.0\\resources\\app.asar\\node_modules\\text-buffer\\lib\\text-buffer.js:936:65)\r\n  at TextEditor.module.exports.TextEditor.bufferRangeForBufferRow (C:\\Users\\Qinka\\AppData\\Local\\atom\\app-0.207.0\\resources\\app.asar\\src\\text-editor.js:677:26)\r\n  at EditorControl.showExpressionType (C:\\Users\\Qinka\\.atom\\packages\\ide-haskell\\lib\\editor-control.coffee:151:33)\r\n  at C:\\Users\\Qinka\\.atom\\packages\\ide-haskell\\lib\\editor-control.coffee:60:10\r\n\r\n```\r\n\r\n### Commands\r\n\r\n```\r\n     -0:10.3.0 core:backspace (atom-text-editor.editor.is-focused)\r\n     -0:09.1.0 atom-save-all:saveAll (atom-text-editor.editor.is-focused)\r\n     -0:09.1.0 ide-haskell:prettify-file (atom-text-editor.editor.is-focused)\r\n     -0:09.1.0 ide-haskell:check-file (atom-text-editor.editor.is-focused)\r\n     -0:09.1.0 ide-haskell:lint-file (atom-text-editor.editor.is-focused)\r\n     -0:07.8.0 core:undo (atom-text-editor.editor.is-focused)\r\n     -0:04.1.0 atom-save-all:saveAll (atom-text-editor.editor.is-focused)\r\n     -0:03.9.0 core:undo (atom-text-editor.editor.is-focused)\r\n     -0:02.0 atom-save-all:saveAll (atom-text-editor.editor.is-focused)\r\n     -0:02.0 ide-haskell:prettify-file (atom-text-editor.editor.is-focused)\r\n     -0:01.9.0 ide-haskell:check-file (atom-text-editor.editor.is-focused)\r\n     -0:01.9.0 ide-haskell:lint-file (atom-text-editor.editor.is-focused)\r\n  4x -0:00.5.0 core:undo (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    \"destroyEmptyPanes\": false,\r\n    \"themes\": [\r\n      \"one-dark-ui\",\r\n      \"atom-dark-syntax\"\r\n    ],\r\n    \"disabledPackages\": [\r\n      \"autosave\",\r\n      \"translator\",\r\n      \"translator\",\r\n      \"transformer\",\r\n      \"transform\"\r\n    ]\r\n  },\r\n  \"ide-haskell\": {\r\n    \"onMouseHoverShow\": \"Info\",\r\n    \"onSavePrettify\": true,\r\n    \"useBackend\": \"haskell-ghc-mod\",\r\n    \"activateStandalone\": false\r\n  }\r\n}\r\n```\r\n\r\n### Installed Packages\r\n\r\n```coffee\r\n# User\r\natom-save-all, v0.2.0\r\natom-text-transformer, v0.7.0\r\nautocomplete-haskell, v0.4.3\r\ncabal, v0.0.15\r\nhaskell-ghc-mod, v0.7.4\r\nhaskell-grammar, v0.3.0\r\nhaskell-pointfree, v0.1.2\r\nide-haskell, v0.5.10\r\nlanguage-haskell, v1.0.0\r\nlanguage-powershell, v2.0.1\r\nlinter-hlint, v0.3.6\r\nminimap, v4.9.4\r\nsave-commands, v0.6.2\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/issues/comments/110366674","html_url":"https://github.com/atom-haskell/ide-haskell/issues/67#issuecomment-110366674","issue_url":"https://api.github.com/repos/atom-haskell/ide-haskell/issues/67","id":110366674,"user":{"login":"simegeorge","id":1773793,"avatar_url":"https://avatars.githubusercontent.com/u/1773793?v=3","gravatar_id":"","url":"https://api.github.com/users/simegeorge","html_url":"https://github.com/simegeorge","followers_url":"https://api.github.com/users/simegeorge/followers","following_url":"https://api.github.com/users/simegeorge/following{/other_user}","gists_url":"https://api.github.com/users/simegeorge/gists{/gist_id}","starred_url":"https://api.github.com/users/simegeorge/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/simegeorge/subscriptions","organizations_url":"https://api.github.com/users/simegeorge/orgs","repos_url":"https://api.github.com/users/simegeorge/repos","events_url":"https://api.github.com/users/simegeorge/events{/privacy}","received_events_url":"https://api.github.com/users/simegeorge/received_events","type":"User","site_admin":false},"created_at":"2015-06-09T14:08:23Z","updated_at":"2015-06-09T14:08:23Z","body":"Just got this error when trying to prettify and Atom sent me here.  Although my error is the same, the trace is different so it may help diagnose...\r\n\r\n---\r\n\r\n[Enter steps to reproduce below:]\r\n\r\n1. ...\r\n2. ...\r\n\r\n**Atom Version**: 0.207.0\r\n**System**: Microsoft Windows 8.1 Pro\r\n**Thrown From**: [ide-haskell](https://github.com/atom-haskell/ide-haskell) package, v0.5.10\r\n\r\n\r\n### Stack Trace\r\n\r\nUncaught TypeError: Cannot read property 'length' of undefined\r\n\r\n```\r\nAt C:\\Users\\simon\\AppData\\Local\\atom\\app-0.207.0\\resources\\app.asar\\node_modules\\text-buffer\\lib\\text-buffer.js:409\r\n\r\nTypeError: Cannot read property 'length' of undefined\r\n    at TextBuffer.module.exports.TextBuffer.lineLengthForRow (C:\\Users\\simon\\AppData\\Local\\atom\\app-0.207.0\\resources\\app.asar\\node_modules\\text-buffer\\lib\\text-buffer.js:409:29)\r\n    at TextBuffer.module.exports.TextBuffer.rangeForRow (C:\\Users\\simon\\AppData\\Local\\atom\\app-0.207.0\\resources\\app.asar\\node_modules\\text-buffer\\lib\\text-buffer.js:936:65)\r\n    at TextEditor.module.exports.TextEditor.bufferRangeForBufferRow (C:\\Users\\simon\\AppData\\Local\\atom\\app-0.207.0\\resources\\app.asar\\src\\text-editor.js:677:26)\r\n    at EditorControl.showExpressionType (C:\\Users\\simon\\.atom\\packages\\ide-haskell\\lib\\editor-control.coffee:251:40)\r\n    at C:\\Users\\simon\\.atom\\packages\\ide-haskell\\lib\\editor-control.coffee:77:26\r\n```\r\n\r\n### Commands\r\n\r\n```\r\n     -1:50 core:save (atom-text-editor.editor.is-focused)\r\n     -1:50 ide-haskell:check-file (atom-text-editor.editor.is-focused)\r\n     -1:50 ide-haskell:lint-file (atom-text-editor.editor.is-focused)\r\n     -1:45 editor:move-to-end-of-screen-line (atom-text-editor.editor.is-focused)\r\n     -1:44.6.0 editor:newline (atom-text-editor.editor.is-focused)\r\n     -1:41.3.0 core:save (atom-text-editor.editor.is-focused)\r\n     -1:41.3.0 ide-haskell:check-file (atom-text-editor.editor.is-focused)\r\n     -1:41.3.0 ide-haskell:lint-file (atom-text-editor.editor.is-focused)\r\n  2x -1:18.8.0 core:move-up (atom-text-editor.editor.is-focused)\r\n  2x -1:18.2.0 editor:move-to-first-character-of-line (atom-text-editor.editor.is-focused)\r\n     -1:17.5.0 core:select-down (atom-text-editor.editor.is-focused)\r\n     -1:17.2.0 core:delete (atom-text-editor.editor.is-focused)\r\n     -1:16.2.0 core:save (atom-text-editor.editor.is-focused)\r\n     -1:16.2.0 ide-haskell:check-file (atom-text-editor.editor.is-focused)\r\n     -1:16.1.0 ide-haskell:lint-file (atom-text-editor.editor.is-focused)\r\n     -0:03.8.0 ide-haskell:prettify-file (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    \"themes\": [\r\n      \"atom-dark-ui\",\r\n      \"atom-dark-syntax\"\r\n    ]\r\n  }\r\n}\r\n```\r\n\r\n### Installed Packages\r\n\r\n```coffee\r\n# User\r\nhaskell-ghc-mod, v0.7.5\r\nide-haskell, v0.5.10\r\nlanguage-haskell, v1.0.2\r\n\r\n# Dev\r\nNo dev packages\r\n```\r\n\r\n"}}