{"action":"opened","issue":{"url":"https://api.github.com/repos/tststs/atom-ternjs/issues/86","labels_url":"https://api.github.com/repos/tststs/atom-ternjs/issues/86/labels{/name}","comments_url":"https://api.github.com/repos/tststs/atom-ternjs/issues/86/comments","events_url":"https://api.github.com/repos/tststs/atom-ternjs/issues/86/events","html_url":"https://github.com/tststs/atom-ternjs/issues/86","id":85745019,"number":86,"title":"Uncaught TypeError: undefined is not a function","user":{"login":"despairblue","id":927609,"avatar_url":"https://avatars.githubusercontent.com/u/927609?v=3","gravatar_id":"","url":"https://api.github.com/users/despairblue","html_url":"https://github.com/despairblue","followers_url":"https://api.github.com/users/despairblue/followers","following_url":"https://api.github.com/users/despairblue/following{/other_user}","gists_url":"https://api.github.com/users/despairblue/gists{/gist_id}","starred_url":"https://api.github.com/users/despairblue/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/despairblue/subscriptions","organizations_url":"https://api.github.com/users/despairblue/orgs","repos_url":"https://api.github.com/users/despairblue/repos","events_url":"https://api.github.com/users/despairblue/events{/privacy}","received_events_url":"https://api.github.com/users/despairblue/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-06-06T12:19:20Z","updated_at":"2015-06-06T12:19:20Z","closed_at":null,"body":"[Enter steps to reproduce below:]\r\n\r\n1. Open a js, coffee, json or cson file outside of the current project folder (actuall I just tried the cson files like the config file for `sync packages` or `project manager`)\r\n2. save the file\r\n\r\nHappens under linux as well.\r\n\r\n**Atom Version**: 0.206.0\r\n**System**: Mac OS X 10.10.3\r\n**Thrown From**: [atom-ternjs](https://github.com/tststs/atom-ternjs) package, v0.6.4\r\n\r\n\r\n### Stack Trace\r\n\r\nUncaught TypeError: undefined is not a function\r\n\r\n```\r\nAt /Applications/Atom.app/Contents/Resources/app.asar/src/pane.js:759\r\n\r\nTypeError: undefined is not a function\r\n  at /Users/kietsy/.atom/packages/atom-ternjs/lib/atom-ternjs-manager.coffee:173:49\r\n  at Emitter.module.exports.Emitter.emit (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/event-kit/lib/emitter.js:82:11)\r\n  at TextBuffer.module.exports.TextBuffer.saveAs (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/text-buffer/lib/text-buffer.js:1020:20)\r\n  at TextBuffer.module.exports.TextBuffer.save (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/text-buffer/lib/text-buffer.js:1002:19)\r\n  at TextEditor.module.exports.TextEditor.save (/Applications/Atom.app/Contents/Resources/app.asar/src/text-editor.js:578:26)\r\n  at Pane.module.exports.Pane.saveItem (/Applications/Atom.app/Contents/Resources/app.asar/src/pane.js:523:18)\r\n  at Pane.module.exports.Pane.saveActiveItem (/Applications/Atom.app/Contents/Resources/app.asar/src/pane.js:506:19)\r\n  at Workspace.module.exports.Workspace.saveActivePaneItem (/Applications/Atom.app/Contents/Resources/app.asar/src/workspace.js:585:35)\r\n  at atom-workspace.atom.commands.add.core:save (/Applications/Atom.app/Contents/Resources/app.asar/src/workspace-element.js:317:30)\r\n  at CommandRegistry.module.exports.CommandRegistry.handleCommandEvent (/Applications/Atom.app/Contents/Resources/app.asar/src/command-registry.js:238: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:520:16)\r\n  at KeymapManager.module.exports.KeymapManager.handleKeyboardEvent (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/atom-keymap/lib/keymap-manager.js:355:22)\r\n  at HTMLDocument.module.exports.WindowEventHandler.onKeydown (/Applications/Atom.app/Contents/Resources/app.asar/src/window-event-handler.js:177:20)\r\n\r\n```\r\n\r\n### Commands\r\n\r\n```\r\n  2x -3:37 core:move-down (atom-text-editor.editor.is-focused)\r\n  3x -3:36.5.0 core:move-up (atom-text-editor.editor.is-focused)\r\n     -3:35.8.0 core:move-down (atom-text-editor.editor.is-focused)\r\n     -3:35.2.0 docblockr:parse-enter (atom-text-editor.editor.is-focused)\r\n     -3:35.2.0 editor:newline (atom-text-editor.editor.is-focused)\r\n     -3:33.6.0 core:paste (atom-text-editor.editor.is-focused)\r\n     -3:29.9.0 find-and-replace:show (atom-text-editor.editor.is-focused)\r\n     -3:22.8.0 core:confirm (atom-text-editor.editor.mini.is-focused)\r\n     -3:15.4.0 editor:delete-line (atom-text-editor.editor.is-focused)\r\n     -3:12.6.0 core:save (atom-text-editor.editor.is-focused)\r\n     -0:44.4.0 window:toggle-dev-tools (a.stack-toggle)\r\n     -0:29.8.0 core:save (atom-text-editor.editor.is-focused)\r\n     -0:28.2.0 editor:consolidate-selections (atom-text-editor.editor.is-focused)\r\n     -0:28.2.0 core:cancel (atom-text-editor.editor.is-focused)\r\n  2x -0:21.8.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    \"excludeVcsIgnoredPaths\": false,\r\n    \"disabledPackages\": [\r\n      \"welcome\",\r\n      \"metrics\",\r\n      \"autocomplete\",\r\n      \"incremental-search\",\r\n      \"Tern\",\r\n      \"grunt-runner\",\r\n      \"tree-view-open-files\",\r\n      \"tree-view-breadcrumb\",\r\n      \"atomatigit\",\r\n      \"themed-settings\",\r\n      \"linter-scspell\",\r\n      \"filetype-color\",\r\n      \"atom-pair\",\r\n      \"linter-eslint\",\r\n      \"es-navigation\",\r\n      \"autocomplete\",\r\n      \"tab-smart-sort\",\r\n      \"starred-package-installer\",\r\n      \"zentabs\",\r\n      \"linter-jshint\",\r\n      \"block-cursor\",\r\n      \"test-status\",\r\n      \"minimap\",\r\n      \"minimap-color-highlight\",\r\n      \"minimap-find-and-replace\",\r\n      \"minimap-git-diff\",\r\n      \"minimap-highlight-selected\",\r\n      \"travis-ci-status\",\r\n      \"pane-layout-plus\",\r\n      \"symbols-tree-view\",\r\n      \"package-cop\",\r\n      \"navigate\",\r\n      \"atom-zeal\",\r\n      \"compare-files\",\r\n      \"regex-railroad-diagram\",\r\n      \"atom-color-highlight\"\r\n    ],\r\n    \"projectHome\": \"/home/despairblue/vcs/git/\",\r\n    \"destroyEmptyPanes\": false,\r\n    \"autoHideMenuBar\": true,\r\n    \"ignoredNames\": [\r\n      \"SCENE\"\r\n    ],\r\n    \"themes\": [\r\n      \"one-light-ui\",\r\n      \"one-light-syntax\"\r\n    ]\r\n  },\r\n  \"atom-ternjs\": {\r\n    \"coffeeScript\": true\r\n  }\r\n}\r\n```\r\n\r\n### Installed Packages\r\n\r\n```coffee\r\n# User\r\nangularjs, v0.3.0\r\natom-alignment, v0.12.1\r\natom-beautify, v0.27.10\r\natom-fuzzy-grep, v0.2.0\r\natom-ternjs, v0.6.4\r\nautocomplete-emojis, v2.2.2\r\nautocomplete-paths, v1.0.2\r\nblock-travel, v1.0.2\r\nbug-report, v0.7.0\r\ncolor-picker, v2.0.4\r\ndocblockr, v0.7.2\r\neditorconfig, v1.0.0\r\nfile-icons, v1.5.7\r\ngit-log, v0.4.1\r\ngo-plus, v3.3.11\r\ngrammar-token-limit, v0.1.1\r\nhighlight-selected, v0.9.3\r\nindentation-indicator, v0.5.1\r\njavascript-snippets, v1.0.0\r\nkeybinding-cheatsheet, v0.0.9\r\nlanguage-dot, v1.6.0\r\nlanguage-fish-shell, v1.0.2\r\nlanguage-haskell, v1.0.0\r\nlanguage-latex, v0.6.1\r\nlanguage-nimrod, v0.1.0\r\nlanguage-puppet, v0.12.0\r\nlanguage-tss, v0.4.0\r\nlatex, v0.24.1\r\nlinter, v0.12.6\r\nlinter-coffeelint, v0.3.2\r\nlinter-htmlhint, v0.0.16\r\nlinter-js-standard, v0.2.5\r\nlinter-js-yaml, v1.0.1\r\nlinter-puppet-lint, v0.2.9\r\nlinter-shellcheck, v0.0.8\r\nmarkdown-scroll-sync, v0.4.0\r\npackage-sync, v0.2.0\r\npdf-view, v0.22.0\r\nproject-manager, v1.15.10\r\nreact, v0.12.0\r\ntabs-to-spaces, v0.11.0\r\n\r\n# Dev\r\nNo dev packages\r\n```\r\n"}}