{"action":"created","issue":{"url":"https://api.github.com/repos/JsonHunt/save-commands/issues/17","labels_url":"https://api.github.com/repos/JsonHunt/save-commands/issues/17/labels{/name}","comments_url":"https://api.github.com/repos/JsonHunt/save-commands/issues/17/comments","events_url":"https://api.github.com/repos/JsonHunt/save-commands/issues/17/events","html_url":"https://github.com/JsonHunt/save-commands/issues/17","id":86025184,"number":17,"title":"Uncaught TypeError: undefined is not a function","user":{"login":"QinMing","id":8622078,"avatar_url":"https://avatars.githubusercontent.com/u/8622078?v=3","gravatar_id":"","url":"https://api.github.com/users/QinMing","html_url":"https://github.com/QinMing","followers_url":"https://api.github.com/users/QinMing/followers","following_url":"https://api.github.com/users/QinMing/following{/other_user}","gists_url":"https://api.github.com/users/QinMing/gists{/gist_id}","starred_url":"https://api.github.com/users/QinMing/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/QinMing/subscriptions","organizations_url":"https://api.github.com/users/QinMing/orgs","repos_url":"https://api.github.com/users/QinMing/repos","events_url":"https://api.github.com/users/QinMing/events{/privacy}","received_events_url":"https://api.github.com/users/QinMing/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-06-08T04:51:32Z","updated_at":"2015-06-10T22:29:58Z","closed_at":null,"body":"I got this exception when I upgraded to the newest version, and pressed `cmd-s` to save a .go file.\r\nActually my command `goimports` has been executed very well. The exception pops up afterward.\r\n\r\nThanks!\r\n\r\n**Atom Version**: 0.207.0\r\n**System**: Mac OS X 10.10.3\r\n**Thrown From**: [save-commands](https://github.com/JsonHunt/save-commands) package, v0.6.2\r\n\r\n\r\n### Stack Trace\r\n\r\nUncaught TypeError: undefined is not a function\r\n\r\n```\r\nAt /Users/qinming/.atom/packages/save-commands/lib/atom-save-commands.coffee:107\r\n\r\nTypeError: undefined is not a function\r\n  at Object.module.exports.AtomSaveCommands.executeCommand (/Users/qinming/.atom/packages/save-commands/lib/atom-save-commands.coffee:107:44)\r\n  at iterate (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/request/node_modules/form-data/node_modules/async/lib/async.js:146:13)\r\n  at Object.async.eachSeries (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/request/node_modules/form-data/node_modules/async/lib/async.js:162:9)\r\n  at /Users/qinming/.atom/packages/save-commands/lib/atom-save-commands.coffee:259:12\r\n  at /Users/qinming/.atom/packages/save-commands/lib/atom-save-commands.coffee:276:5\r\n  at FSReqWrap.oncomplete (fs.js:77:15)\r\n\r\n```\r\n\r\n### Commands\r\n\r\n```\r\n 16x -7:02.1.0 core:select-left (atom-text-editor.editor.is-focused)\r\n     -6:59.7.0 core:save (atom-text-editor.editor.is-focused)\r\n     -6:59.1.0 editor:consolidate-selections (atom-text-editor.editor.is-focused)\r\n     -6:59.1.0 core:cancel (atom-text-editor.editor.is-focused)\r\n     -6:58.5.0 core:cut (atom-text-editor.editor.is-focused)\r\n 10x -6:58.2.0 core:move-down (atom-text-editor.editor.is-focused)\r\n  6x -6:56 core:select-left (atom-text-editor.editor.is-focused)\r\n     -6:54.8.0 core:backspace (atom-text-editor.editor.is-focused)\r\n  6x -6:54.5.0 core:move-down (atom-text-editor.editor.is-focused)\r\n     -6:53.5.0 editor:select-to-end-of-word (atom-text-editor.editor.is-focused)\r\n  2x -6:53.1.0 core:select-right (atom-text-editor.editor.is-focused)\r\n     -6:52.4.0 core:backspace (atom-text-editor.editor.is-focused)\r\n     -6:51.9.0 core:save (atom-text-editor.editor.is-focused)\r\n     -6:51.2.0 editor:consolidate-selections (atom-text-editor.editor.is-focused)\r\n     -6:51.2.0 core:cancel (atom-text-editor.editor.is-focused)\r\n     -0:01.4.0 core:save (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      \"seti-ui\",\r\n      \"seti-monokai-ming\"\r\n    ],\r\n    \"disabledPackages\": [\r\n      \"css-color-highlight\",\r\n      \"autocomplete\",\r\n      \"autocomplete-snippets\"\r\n    ]\r\n  },\r\n  \"save-commands\": {\r\n    \"commands\": [\r\n      \"**/*.go : /Users/qinming/gopath/bin/goimports -w {relFullPath}\"\r\n    ],\r\n    \"suppressPanel\": true\r\n  }\r\n}\r\n```\r\n\r\n### Installed Packages\r\n\r\n```coffee\r\n# User\r\ncolor-picker, v2.0.4\r\nfile-types, v0.4.0\r\nhighlight-line, v0.10.2\r\nhighlight-selected, v0.9.3\r\nminimap, v4.9.4\r\nminimap-bookmarks, v0.1.0\r\nminimap-find-and-replace, v4.2.0\r\nminimap-git-diff, v4.1.3\r\nminimap-highlight-selected, v4.3.0\r\nminimap-selection, v4.2.0\r\npigments, v0.4.5\r\nsave-commands, v0.6.2\r\nseti-monokai-ming, v0.3.1\r\nseti-ui, v0.7.1\r\n\r\n# Dev\r\nNo dev packages\r\n```\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/JsonHunt/save-commands/issues/comments/110936479","html_url":"https://github.com/JsonHunt/save-commands/issues/17#issuecomment-110936479","issue_url":"https://api.github.com/repos/JsonHunt/save-commands/issues/17","id":110936479,"user":{"login":"QinMing","id":8622078,"avatar_url":"https://avatars.githubusercontent.com/u/8622078?v=3","gravatar_id":"","url":"https://api.github.com/users/QinMing","html_url":"https://github.com/QinMing","followers_url":"https://api.github.com/users/QinMing/followers","following_url":"https://api.github.com/users/QinMing/following{/other_user}","gists_url":"https://api.github.com/users/QinMing/gists{/gist_id}","starred_url":"https://api.github.com/users/QinMing/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/QinMing/subscriptions","organizations_url":"https://api.github.com/users/QinMing/orgs","repos_url":"https://api.github.com/users/QinMing/repos","events_url":"https://api.github.com/users/QinMing/events{/privacy}","received_events_url":"https://api.github.com/users/QinMing/received_events","type":"User","site_admin":false},"created_at":"2015-06-10T22:29:58Z","updated_at":"2015-06-10T22:29:58Z","body":"I just command 3 lines in `lib/atom-save-commands.coffee` that contains `div`.\r\nIt magically works fine"}}