{"action":"opened","issue":{"url":"https://api.github.com/repos/Glavin001/atom-beautify/issues/979","repository_url":"https://api.github.com/repos/Glavin001/atom-beautify","labels_url":"https://api.github.com/repos/Glavin001/atom-beautify/issues/979/labels{/name}","comments_url":"https://api.github.com/repos/Glavin001/atom-beautify/issues/979/comments","events_url":"https://api.github.com/repos/Glavin001/atom-beautify/issues/979/events","html_url":"https://github.com/Glavin001/atom-beautify/issues/979","id":155352902,"number":979,"title":"Cannot read property 'getView' of undefined","user":{"login":"alice-em","id":14299528,"avatar_url":"https://avatars.githubusercontent.com/u/14299528?v=3","gravatar_id":"","url":"https://api.github.com/users/alice-em","html_url":"https://github.com/alice-em","followers_url":"https://api.github.com/users/alice-em/followers","following_url":"https://api.github.com/users/alice-em/following{/other_user}","gists_url":"https://api.github.com/users/alice-em/gists{/gist_id}","starred_url":"https://api.github.com/users/alice-em/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alice-em/subscriptions","organizations_url":"https://api.github.com/users/alice-em/orgs","repos_url":"https://api.github.com/users/alice-em/repos","events_url":"https://api.github.com/users/alice-em/events{/privacy}","received_events_url":"https://api.github.com/users/alice-em/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-05-17T20:24:04Z","updated_at":"2016-05-17T20:24:04Z","closed_at":null,"body":"### Description\r\n\r\nI get an error with the title and description listed below, on an html file.  There might be a possible missing closing tag somewhere, which was why I wanted to run beautify to help find out where.\r\n\r\nOSX 10.11.15 w/ Atom 1.9.0-dev-38ff433\r\n\r\n### Expected Results\r\n\r\nI expected pretty code, perhaps even beautiful code (well, at least on how it is visually structured).\r\n\r\n```\r\nTypeError: Cannot read property 'getView' of undefined\r\n    at getScrollTop (/Users/alice_em/.atom/packages/atom-beautify/src/beautify.coffee:31:29)\r\n    at beautifyCompleted (/Users/alice_em/.atom/packages/atom-beautify/src/beautify.coffee:108:27)\r\n    at tryCatcher (/Users/alice_em/.atom/packages/atom-beautify/node_modules/bluebird/js/release/util.js:16:23)\r\n    at Promise._settlePromiseFromHandler (/Users/alice_em/.atom/packages/atom-beautify/node_modules/bluebird/js/release/promise.js:502:31)\r\n    at Promise._settlePromise (/Users/alice_em/.atom/packages/atom-beautify/node_modules/bluebird/js/release/promise.js:559:18)\r\n    at Promise._settlePromise0 (/Users/alice_em/.atom/packages/atom-beautify/node_modules/bluebird/js/release/promise.js:604:10)\r\n    at Promise._settlePromises (/Users/alice_em/.atom/packages/atom-beautify/node_modules/bluebird/js/release/promise.js:683:18)\r\n    at Async._drainQueue (/Users/alice_em/.atom/packages/atom-beautify/node_modules/bluebird/js/release/async.js:138:16)\r\n    at Async._drainQueues (/Users/alice_em/.atom/packages/atom-beautify/node_modules/bluebird/js/release/async.js:148:10)\r\n    at Async.drainQueues (/Users/alice_em/.atom/packages/atom-beautify/node_modules/bluebird/js/release/async.js:17:14)\r\n```\r\n\r\n### Steps to Reproduce\r\n\r\n1. Add code to Atom editor\r\n2. Run command `Atom Beautify: Beautify Editor`\r\n3. This beautified code does not look right!\r\n\r\n### Debug\r\n\r\nHere is a link to the `debug.md` Gist: https://gist.github.com/...\r\n\r\n#### How to create `debug.md` Gist\r\n\r\nNote that this will include a copy of your code.\r\nIf your code is private, please create a different sample of code that reproduces the problem.\r\n\r\n1. In the Atom [command-palette](https://atom.io/packages/command-palette), \r\nsearch for and run the command `Atom Beautify: Help Debug Editor`. \r\n\r\nThe debugging results will be copied to your clipboard.  \r\n2. Create a new Gist at https://gist.github.com/  \r\n3. Create a file in your new Gist called `debug.md`.  \r\n4. Paste your debugging results from Atom beautify into `debug.md` file in your Gist.  \r\n5. Add a link to your Gist in your new Issue.\r\n\r\nhttps://gist.github.com/alice-em/b27b1e4b59c969e935e0d1c01fae370d\r\n\r\n# Checklist\r\n\r\n- [x] I have tried uninstalling and reinstalling Atom Beautify to ensure it installed properly\r\n- [x] I have reloaded (or restarted) Atom to ensure it is not a caching issue\r\n- [x] Searched for existing Atom Beautify Issues at https://github.com/Glavin001/atom-beautify/issues \r\nso I know this is not a duplicate issue\r\n- [x] Generated debugging information and added link for `debug.md` Gist to this issue\r\n"}}