{"action":"opened","issue":{"url":"https://api.github.com/repos/Glavin001/atom-beautify/issues/1288","repository_url":"https://api.github.com/repos/Glavin001/atom-beautify","labels_url":"https://api.github.com/repos/Glavin001/atom-beautify/issues/1288/labels{/name}","comments_url":"https://api.github.com/repos/Glavin001/atom-beautify/issues/1288/comments","events_url":"https://api.github.com/repos/Glavin001/atom-beautify/issues/1288/events","html_url":"https://github.com/Glavin001/atom-beautify/issues/1288","id":184303350,"number":1288,"title":"EJS will not beautify","user":{"login":"clayzermk1","id":1075015,"avatar_url":"https://avatars.githubusercontent.com/u/1075015?v=3","gravatar_id":"","url":"https://api.github.com/users/clayzermk1","html_url":"https://github.com/clayzermk1","followers_url":"https://api.github.com/users/clayzermk1/followers","following_url":"https://api.github.com/users/clayzermk1/following{/other_user}","gists_url":"https://api.github.com/users/clayzermk1/gists{/gist_id}","starred_url":"https://api.github.com/users/clayzermk1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/clayzermk1/subscriptions","organizations_url":"https://api.github.com/users/clayzermk1/orgs","repos_url":"https://api.github.com/users/clayzermk1/repos","events_url":"https://api.github.com/users/clayzermk1/events{/privacy}","received_events_url":"https://api.github.com/users/clayzermk1/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-10-20T18:19:55Z","updated_at":"2016-10-20T18:19:55Z","closed_at":null,"body":"# Description\r\n\r\nDuplicate of #1278 but with a bit more info.\r\nIn an EJS file, atom-beautify fails to beautify the editor with the following error:\r\n\r\n```\r\nAtom Beautify could not find a supported beautifier for this file\r\n\r\nAtom Beautify could not determine a supported beautifier to handle this file with grammar \"EJS\" and extension \"ejs\". If you would like to request support for this file and its language, please create an issue for Atom Beautify at https://github.com/Glavin001/atom-beautify/issues\r\n```\r\n\r\n# Input Before Beautification\r\n\r\nThis is what the code looked like before:\r\n\r\n```\r\n<!DOCTYPE html>\r\n<html>\r\n<head>\r\n<meta charset=\"utf-8\">\r\n<title></title>\r\n</head>\r\n<body>\r\n<%= foo %>\r\n</body>\r\n</html>\r\n```\r\n\r\n# Expected Output\r\n\r\nThe beautified code should have looked like this:\r\n\r\n```\r\n<!DOCTYPE html>\r\n<html>\r\n  <head>\r\n    <meta charset=\"utf-8\">\r\n    <title></title>\r\n  </head>\r\n  <body>\r\n    <%= foo %>\r\n  </body>\r\n</html>\r\n```\r\n\r\n# Actual Output\r\n\r\nThe beautified code actually looked like this:\r\n\r\n```\r\n<!DOCTYPE html>\r\n<html>\r\n<head>\r\n<meta charset=\"utf-8\">\r\n<title></title>\r\n</head>\r\n<body>\r\n<%= foo %>\r\n</body>\r\n</html>\r\n```\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. Observe error notification.\r\n4. This beautified code does not look right!\r\n\r\n# Debug\r\n\r\nAttempting to create a debug file as instructed by the contribution guidelines generates a critical error. (Sorry, I tried.)\r\n\r\n```\r\nCannot read property 'name' of null\r\n\r\nTypeError: Cannot read property 'name' of null\r\n    at atom-workspace.debug (/Users/<redacted system username>/.atom/packages/atom-beautify/src/beautify.coffee:364:53)\r\n    at CommandRegistry.module.exports.CommandRegistry.handleCommandEvent (/Applications/Atom.app/Contents/Resources/app.asar/src/command-registry.js:260:29)\r\n    at /Applications/Atom.app/Contents/Resources/app.asar/src/command-registry.js:3:61\r\n    at CommandPaletteView.module.exports.CommandPaletteView.confirmed (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/command-palette/lib/command-palette-view.js:183:32)\r\n    at CommandPaletteView.module.exports.SelectListView.confirmSelection (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/atom-space-pen-views/lib/select-list-view.js:338:21)\r\n    at space-pen-div.atom.commands.add.core:confirm (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/atom-space-pen-views/lib/select-list-view.js:109:19)\r\n    at CommandRegistry.module.exports.CommandRegistry.handleCommandEvent (/Applications/Atom.app/Contents/Resources/app.asar/src/command-registry.js:260:29)\r\n    at /Applications/Atom.app/Contents/Resources/app.asar/src/command-registry.js:3:61\r\n    at KeymapManager.module.exports.KeymapManager.dispatchCommandEvent (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/atom-keymap/lib/keymap-manager.js:580:16)\r\n    at KeymapManager.module.exports.KeymapManager.handleKeyboardEvent (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/atom-keymap/lib/keymap-manager.js:388:22)\r\n    at WindowEventHandler.module.exports.WindowEventHandler.handleDocumentKeyEvent (/Applications/Atom.app/Contents/Resources/app.asar/src/window-event-handler.js:114:36)\r\n    at HTMLDocument.<anonymous> (/Applications/Atom.app/Contents/Resources/app.asar/src/window-event-handler.js:3:61)\r\n```\r\n\r\n# Checklist\r\n\r\nI have:\r\n- [x] Tried uninstalling and reinstalling Atom Beautify to ensure it installed properly\r\n- [x] Reloaded (or restarted) Atom to ensure it is not a caching issue\r\n- [x] Searched through existing Atom Beautify Issues at https://github.com/Glavin001/atom-beautify/issues\r\nso I know this is not a duplicate issue (it is a duplicate of #1278 but with more info)\r\n- [x] Filled out the Input, Expected, and Actual sections above or have edited/removed them in a way that fully describes the issue.\r\n- [x] Generated debugging information and added link for `debug.md` Gist to this issue (I gave it a shot but got a critical error, see above)\r\n\r\n# Environment\r\nOS X 10.11.6 (15G1004)\r\nAtom 1.11.2\r\natom-beautify 0.29.13\r\n\r\n# Misc\r\nThank you for your time and atom-beautify!"}}
{"actor":{"display_login":"clayzermk1"}}