Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Failure to activate vim-mode package #75

Closed
bjtitus opened this Issue · 10 comments

3 participants

@bjtitus

I'm getting an activation failure on one machine. I have successfully installed on another with no issues. Thought I'd post the error here.

Failed to activate package named 'vim-mode' TypeError: Cannot call method 'each' of undefined
  at VimState.module.exports.VimState.handleCommands (/Users/bjtitus/.atom/packages/vim-mode/lib/vim-state.coffee:121:7)
  at VimState.module.exports.VimState.setupCommandMode (/Users/bjtitus/.atom/packages/vim-mode/lib/vim-state.coffee:68:6)
  at new VimState (/Users/bjtitus/.atom/packages/vim-mode/lib/vim-state.coffee:24:6)
  at /Users/bjtitus/.atom/packages/vim-mode/lib/vim-mode.coffee:10:33
  at WorkspaceView.module.exports.WorkspaceView.eachEditorView (/Applications/Atom.app/Contents/Resources/app/src/workspace-view.js:455:9)
  at Object.module.exports.activate (/Users/bjtitus/.atom/packages/vim-mode/lib/vim-mode.coffee:6:24)
  at Package.module.exports.Package.activateNow (/Applications/Atom.app/Contents/Resources/app/src/package.js:161:27)
  at /Applications/Atom.app/Contents/Resources/app/src/package.js:147:28
  at Package.module.exports.Package.measure (/Applications/Atom.app/Contents/Resources/app/src/package.js:95:15)
  at Package.module.exports.Package.activate (/Applications/Atom.app/Contents/Resources/app/src/package.js:141:14)
  at PackageManager.module.exports.PackageManager.activatePackage (/Applications/Atom.app/Contents/Resources/app/src/package-manager.js:101:21)
  at PackageManager.module.exports.PackageManager.activatePackages (/Applications/Atom.app/Contents/Resources/app/src/package-manager.js:90:14)
  at PackageManager.module.exports.PackageManager.activate (/Applications/Atom.app/Contents/Resources/app/src/package-manager.js:77:19)
  at Atom.module.exports.Atom.startEditorWindow (/Applications/Atom.app/Contents/Resources/app/src/atom.js:312:21)
  at Object.<anonymous> (/Applications/Atom.app/Contents/Resources/app/src/window-bootstrap.js:14:8)
  at Object.<anonymous> (/Applications/Atom.app/Contents/Resources/app/src/window-bootstrap.js:20:4)
  at Module._compile (module.js:455:26)
  at Object.Module._extensions..js (module.js:473:10)
  at Module.load (/Applications/Atom.app/Contents/Resources/app/node_modules/coffee-script/lib/coffee-script/register.js:45:36)
  at Function.Module._load (module.js:311:12)
  at Module.require (module.js:363:17)
  at require (module.js:379:17)
  at window.onload (file:///Applications/Atom.app/Contents/Resources/app/static/index.html?load…C%22initialPath%22%3A%22%2FUsers%2Fbjtitus%2Ftest%22%7D:26:9)

I hope to look into this myself a little later today or tomorrow. If anyone else has time feel free to take a look.

@srir

i believe (from a cursory look) that underscore.js isn't loaded (and vim-mode depends on it)

@colevoss

Is there something that can be done to load underscore.js?

@srir

_ is supposed to be included in the atom object (returned from require atom). it's not there. we can get at it by using

_ = require 'underscore-plus'

so that'd be a temporary fix. but i'm hesitant to commit that (because i'm guessing the atom devs are not a huge fan of hacks)

@srir

i actually think this issue is related to (#70), and we just need to update our vim-mode to version 0.7

@colevoss

I've tried installing vim-mode 0.7 with apm install vim-mode@0.7.0 and it returned with a 400 error: "Unable to download https://www.atom.io/api/packages/vim-mode/versions/0.7.0/tarball: 400 Bad Request Repository inaccessible".

@bjtitus

I can confirm that updating to 0.7.0 worked for me. Quick steps just in case:
apm uninstall vim-mode
apm install vim-mode@0.7.0

This can be closed but I want to make sure @colevoss is up and running as well.

@srir

like @colevoss, that doesn't seem to work (i'm unable to actually install 0.7.0 because of a 400 bad request)

@colevoss

You nailed it, @bjtitus
Uninstalling through the command line with apm uninstall vim-mode and then intsalling v 0.7.0 worked for me. After restarting Atom I was able to use vim-mode. I look forward to working with this and hopefully contributing.

Thanks guys.

@bjtitus

There's definitely something weird going on with the package manager. The site shows 0.6.0 as the latest version and that it was updated very recently: http://atom.io/packages/vim-mode

Might help for someone to re-publish 0.7.0

It might be that atom.io is just having problems. I've noticed that I often can't login or pages will stop loading when navigating around the site.

@bjtitus bjtitus closed this
@bjtitus

This was also a duplicate of #69. My mistake

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.