JsonHunt / save-commands

Assign parametrized shell commands to file globs to be automatically run whenever the file is saved
MIT License
20 stars 11 forks source link

Uncaught TypeError: atom.views.getView(...).find is not a function #25

Closed ewoutp closed 9 years ago

ewoutp commented 9 years ago

[Enter steps to reproduce below:]

  1. Edit a file
  2. Hit Save

Atom Version: 1.0.19 System: Mac OS X 10.11 Thrown From: save-commands package, v0.6.2

Stack Trace

Uncaught TypeError: atom.views.getView(...).find is not a function

At /Users/ewout/.atom/packages/save-commands/lib/atom-save-commands.coffee:107

TypeError: atom.views.getView(...).find is not a function
  at Object.module.exports.AtomSaveCommands.executeCommand (/Users/ewout/.atom/packages/save-commands/lib/atom-save-commands.coffee:107:44)
  at iterate (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/request/node_modules/form-data/node_modules/async/lib/async.js:146:13)
  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)
  at /Users/ewout/.atom/packages/save-commands/lib/atom-save-commands.coffee:259:12
  at /Users/ewout/.atom/packages/save-commands/lib/atom-save-commands.coffee:276:5
  at FSReqWrap.oncomplete (fs.js:82:15)

Commands

     -1:33.7.0 core:move-up (atom-text-editor.editor.is-focused)
     -1:33.3.0 editor:newline (atom-text-editor.editor.is-focused)
     -1:32.3.0 core:save (atom-text-editor.editor.is-focused)
  3x -0:57.7.0 core:move-right (atom-text-editor.editor.is-focused)
     -0:46.3.0 core:backspace (atom-text-editor.editor.is-focused)
     -0:45 editor:move-to-end-of-screen-line (atom-text-editor.editor.is-focused)
     -0:44.8.0 core:move-left (atom-text-editor.editor.is-focused)
     -0:43.7.0 core:move-down (atom-text-editor.editor.is-focused)
     -0:43.4.0 editor:move-to-first-character-of-line (atom-text-editor.editor.is-focused)
     -0:42.6.0 editor:move-to-end-of-screen-line (atom-text-editor.editor.is-focused)
  3x -0:40.8.0 core:move-down (atom-text-editor.editor.is-focused)
     -0:39.9.0 core:save (atom-text-editor.editor.is-focused)
     -0:33.9.0 core:backspace (atom-text-editor.editor.is-focused)
     -0:32.8.0 core:save (atom-text-editor.editor.is-focused)
     -0:02.6.0 editor:newline (atom-text-editor.editor.is-focused)
     -0:01.2.0 core:save (atom-text-editor.editor.is-focused)

Config

{
  "core": {
    "themes": [
      "one-light-ui",
      "one-light-syntax"
    ],
    "packagesWithKeymapsDisabled": [
      "highlight-line"
    ],
    "openEmptyEditorOnStart": false,
    "disabledPackages": [
      "tree-view-git-projects"
    ]
  }
}

Installed Packages

# User
atom-beautify, v0.28.14
atom-import-sort, v0.5.0
file-icons, v1.6.11
git-log, v0.4.1
go-plus, v3.5.1
highlight-line, v0.11.0
highlight-selected, v0.10.1
language-hcl, v0.1.2
minimap, v4.13.4
minimap-highlight-selected, v4.3.1
open-recent, v2.3.0
project-manager, v2.6.5
save-commands, v0.6.2
tree-view-git-status, v0.2.2

# Dev
No dev packages
avh4 commented 8 years ago

Can you release a new version with this fix?

alexindigo commented 8 years ago

+1

tjbenneche commented 8 years ago

+1

ghost commented 8 years ago

+1

vinicius73 commented 8 years ago

+1

spikewilliams commented 8 years ago

+1

smileart commented 8 years ago

:+1:

thekevinbrown commented 8 years ago

+1