Closed protoiyer closed 9 years ago
Hmm.. Do you have a trailing comma in the settings for the surround module, possibly?
Anyways, I've release 0.5.1 to cover for the possible issue that may be causing this. Let me know how it works for you!
I didn't make any changes to the settings, @gepoch. I will try uninstalling and reinstalling.
Did 0.5.1 fix things for you?
Yes, it did. I just uninstalled 0.5.0 and installed 0.5.1. I haven't tested the surround features yet. Will report back in case there are any issues. Thanks.
On Tue, Apr 14, 2015 at 8:44 PM, George Marchin notifications@github.com wrote:
Did 0.5.1 fix things for you?
— Reply to this email directly or view it on GitHub https://github.com/gepoch/vim-surround/issues/15#issuecomment-92899027.
Suresh Iyer
In the long run men hit only what they aim at - Henry David Thoreau
New problems with latest Atom
[Enter steps to reproduce below:]
Atom Version: 0.206.0 System: Mac OS X 10.10.3 Thrown From: vim-surround package, v0.6.0
Failed to activate the vim-surround package
At Cannot read property 'add' of undefined
TypeError: Cannot read property 'add' of undefined
at Surround.module.exports.Base.createPairBindings (/Users/zork/.atom/packages/vim-surround/lib/command/base.coffee:66:46)
at Surround.module.exports.Base.registerPair (/Users/zork/.atom/packages/vim-surround/lib/command/base.coffee:44:14)
at Surround.module.exports.Base.registerPairs (/Users/zork/.atom/packages/vim-surround/lib/command/base.coffee:31:16)
at Surround.Base (/Users/zork/.atom/packages/vim-surround/lib/command/base.coffee:11:12)
at new Surround (/Users/zork/.atom/packages/vim-surround/lib/command/surround.coffee:16:38)
at /Users/zork/.atom/packages/vim-surround/lib/vim-surround.coffee:36:23
at Config.module.exports.Config.observeKeyPath (/Applications/Atom.app/Contents/Resources/app.asar/src/config.js:555:7)
at Config.module.exports.Config.observe (/Applications/Atom.app/Contents/Resources/app.asar/src/config.js:135:21)
at Object.module.exports.activate (/Users/zork/.atom/packages/vim-surround/lib/vim-surround.coffee:24:44)
at Package.module.exports.Package.activateNow (/Applications/Atom.app/Contents/Resources/app.asar/src/package.js:238:19)
{
"core": {
"themes": [
"atom-dark-ui",
"tomorrow-night-eighties-syntax"
],
"disabledPackages": [
"atom-ctags",
"file-type-icons",
"tabs",
"tree-view"
]
},
"vim-surround": {}
}
# User
file-icons, v1.5.7
language-viml, v0.2.0
project-manager, v1.15.8
rspec-snippets, v0.4.0
tomorrow-night-eighties-syntax, v0.6.1
vim-mode, v0.51.0
vim-surround, v0.6.0
# Dev
No dev packages
Indeed. Seems to have broken at 206.
I'll try to get a fix out this morning. Thanks for the bug report.
This issue resurfaced for me today, after upgrade to atom 1.9.
Failed to activate the vim-surround package: Cannot find module 'undefined/lib/text-objects'
Error: Cannot find module 'undefined/lib/text-objects'
at Module._resolveFilename (module.js:339:15)
at Function.Module._resolveFilename (/Applications/Atom.app/Contents/Resources/app.asar/src/module-cache.js:383:52)
at Function.Module._load (module.js:290:25)
at Module.require (module.js:367:17)
at require (/Applications/Atom.app/Contents/Resources/app.asar/src/native-compile-cache.js:50:27)
at Object.<anonymous> (/Users/jattali/.atom/packages/vim-surround/lib/command/selector.coffee:4:46)
at Object.<anonymous> (/Users/jattali/.atom/packages/vim-surround/lib/command/selector.coffee:1:1)
at Module._compile (/Applications/Atom.app/Contents/Resources/app.asar/src/native-compile-cache.js:103:30)
at Object.defineProperty.value [as .coffee] (/Applications/Atom.app/Contents/Resources/app.asar/src/compile-cache.js:208:21)
at Module.load (module.js:357:32)
at Function.Module._load (module.js:314:12)
at Module.require (module.js:367:17)
at require (/Applications/Atom.app/Contents/Resources/app.asar/src/native-compile-cache.js:50:27)
at Object.<anonymous> (/Users/jattali/.atom/packages/vim-surround/lib/command/delete.coffee:4:12)
at Object.<anonymous> (/Users/jattali/.atom/packages/vim-surround/lib/command/delete.coffee:1:1)
at Module._compile (/Applications/Atom.app/Contents/Resources/app.asar/src/native-compile-cache.js:103:30)
at Object.defineProperty.value [as .coffee] (/Applications/Atom.app/Contents/Resources/app.asar/src/compile-cache.js:208:21)
at Module.load (module.js:357:32)
at Function.Module._load (module.js:314:12)
at Module.require (module.js:367:17)
disregard, i am silly
@jeffling You're using vim-mode-plus. vim-mode-plus implements its own surround commands, so vim-surround isn't necessary! There's a bit of up-front configuration, but it works great. See here for an example keymap setup: https://github.com/t9md/dotfiles/blob/master/atom/keymap.cson#L208
edit: And if it wasn't clear, this means you should uninstall vim-surround :)
Thank you, @gepoch.
[Enter steps to reproduce below:]
Atom Version: 0.190.0 System: Mac OS X 10.10.3 Thrown From: vim-surround package, v0.5.0
Stack Trace
Failed to activate the vim-surround package
Commands
Config
Installed Packages