{"action":"created","issue":{"url":"https://api.github.com/repos/lee-dohm/indentation-indicator/issues/9","labels_url":"https://api.github.com/repos/lee-dohm/indentation-indicator/issues/9/labels{/name}","comments_url":"https://api.github.com/repos/lee-dohm/indentation-indicator/issues/9/comments","events_url":"https://api.github.com/repos/lee-dohm/indentation-indicator/issues/9/events","html_url":"https://github.com/lee-dohm/indentation-indicator/issues/9","id":55375224,"number":9,"title":"Warning and failed language highlighting","user":{"login":"ricardograca","id":1457035,"avatar_url":"https://avatars.githubusercontent.com/u/1457035?v=3","gravatar_id":"","url":"https://api.github.com/users/ricardograca","html_url":"https://github.com/ricardograca","followers_url":"https://api.github.com/users/ricardograca/followers","following_url":"https://api.github.com/users/ricardograca/following{/other_user}","gists_url":"https://api.github.com/users/ricardograca/gists{/gist_id}","starred_url":"https://api.github.com/users/ricardograca/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ricardograca/subscriptions","organizations_url":"https://api.github.com/users/ricardograca/orgs","repos_url":"https://api.github.com/users/ricardograca/repos","events_url":"https://api.github.com/users/ricardograca/events{/privacy}","received_events_url":"https://api.github.com/users/ricardograca/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-01-24T15:52:44Z","updated_at":"2015-01-24T16:12:57Z","closed_at":null,"body":"With `indentation-indicator` enabled I get this on the console when starting up:\r\n\r\n```\r\nFailed to load grammar: /usr/share/atom/resources/app/node_modules/language-javascript/grammars/javascript.json TypeError: Cannot read property 'update' of null\r\n  at /home/ricardo/.atom/packages/indentation-indicator/lib/indentation-indicator.coffee:32:14\r\n  at Emitter.module.exports.Emitter.emit (/usr/share/atom/resources/app/node_modules/event-kit/lib/emitter.js:82:11)\r\n  at TextEditor.module.exports.TextEditor.handleGrammarChange (/usr/share/atom/resources/app/src/text-editor.js:2787:27)\r\n  at /usr/share/atom/resources/app/src/text-editor.js:196:24\r\n  at Emitter.module.exports.Emitter.emit (/usr/share/atom/resources/app/node_modules/event-kit/lib/emitter.js:82:11)\r\n  at TokenizedBuffer.module.exports.TokenizedBuffer.setGrammar (/usr/share/atom/resources/app/src/tokenized-buffer.js:168:27)\r\n  at TokenizedBuffer.module.exports.TokenizedBuffer.grammarAddedOrUpdated (/usr/share/atom/resources/app/src/tokenized-buffer.js:124:23)\r\n  at /usr/share/atom/resources/app/src/tokenized-buffer.js:3:61\r\n  at Emitter.module.exports.Emitter.emit (/usr/share/atom/resources/app/node_modules/event-kit/lib/emitter.js:82:11)\r\n  at GrammarRegistry.module.exports.GrammarRegistry.addGrammar (/usr/share/atom/resources/app/node_modules/first-mate/lib/grammar-registry.js:84:20)\r\n  at Grammar.module.exports.Grammar.activate (/usr/share/atom/resources/app/node_modules/first-mate/lib/grammar.js:176:48)\r\n  at /usr/share/atom/resources/app/src/package.js:469:25\r\n  at /usr/share/atom/resources/app/node_modules/first-mate/lib/grammar-registry.js:129:55\r\n  at parseContents (/usr/share/atom/resources/app/node_modules/season/lib/cson.js:80:47)\r\n  at /usr/share/atom/resources/app/node_modules/season/lib/cson.js:168:20\r\n  at fs.js:295:14\r\n  at Object.oncomplete (fs.js:93:15)\r\n```\r\n\r\nThis causes the affected files to not have any syntax highlighting since they are incorrectly detected as `Plain Text`.\r\n\r\nApparently this seems to be some kind of bad interaction with the package `open-last-project`, since the lack of syntax coloring only affects files that are already open when starting Atom. Newly opened files after that are not affected. I'll also open an issue over there to see if you guys can figure this out.\r\n\r\nAtom version is 0.175.0."},"comment":{"url":"https://api.github.com/repos/lee-dohm/indentation-indicator/issues/comments/71324598","html_url":"https://github.com/lee-dohm/indentation-indicator/issues/9#issuecomment-71324598","issue_url":"https://api.github.com/repos/lee-dohm/indentation-indicator/issues/9","id":71324598,"user":{"login":"lee-dohm","id":1038121,"avatar_url":"https://avatars.githubusercontent.com/u/1038121?v=3","gravatar_id":"","url":"https://api.github.com/users/lee-dohm","html_url":"https://github.com/lee-dohm","followers_url":"https://api.github.com/users/lee-dohm/followers","following_url":"https://api.github.com/users/lee-dohm/following{/other_user}","gists_url":"https://api.github.com/users/lee-dohm/gists{/gist_id}","starred_url":"https://api.github.com/users/lee-dohm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lee-dohm/subscriptions","organizations_url":"https://api.github.com/users/lee-dohm/orgs","repos_url":"https://api.github.com/users/lee-dohm/repos","events_url":"https://api.github.com/users/lee-dohm/events{/privacy}","received_events_url":"https://api.github.com/users/lee-dohm/received_events","type":"User","site_admin":false},"created_at":"2015-01-24T16:12:57Z","updated_at":"2015-01-24T16:12:57Z","body":"I'll have a new version up shortly. Let me know what happens."}}