launchscout / atom-cucumber-step

Cucumber jump to step for Atom.IO
MIT License
8 stars 22 forks source link

Uncaught TypeError: Cannot read property '0' of undefined #27

Open waynema opened 7 years ago

waynema commented 7 years ago

[Enter steps to reproduce:]

  1. goto a cucumber step on a feature file
  2. hit ctrl+option+J on Mac

cannot go to the defined step definition

Atom: 1.18.0 x64 Electron: 1.3.15 OS: Mac OS X 10.12.6 Thrown From: cucumber-step package 0.2.0

Stack Trace

Uncaught TypeError: Cannot read property '0' of undefined

At /Users/.../.atom/packages/cucumber-step/lib/step-jumper.coffee:23

TypeError: Cannot read property '0' of undefined
    at StepJumper.module.exports.StepJumper.checkMatch (/packages/cucumber-step/lib/step-jumper.coffee:23:44)
    at /packages/cucumber-step/lib/cucumber-step.coffee:20:34
    at Workspace.scan (/Applications/Atom.app/Contents/Resources/app/src/workspace.js:2152:19)
    at Object.jump (/packages/cucumber-step/lib/cucumber-step.coffee:19:20)
    at /packages/cucumber-step/lib/cucumber-step.coffee:10:41)
    at CommandRegistry.module.exports.CommandRegistry.handleCommandEvent (/Applications/Atom.app/Contents/Resources/app/src/command-registry.js:265:35)
    at /Applications/Atom.app/Contents/Resources/app/src/command-registry.js:3:65
    at KeymapManager.module.exports.KeymapManager.dispatchCommandEvent (/Applications/Atom.app/Contents/Resources/app/node_modules/atom-keymap/lib/keymap-manager.js:610:22)
    at KeymapManager.module.exports.KeymapManager.handleKeyboardEvent (/Applications/Atom.app/Contents/Resources/app/node_modules/atom-keymap/lib/keymap-manager.js:401:28)
    at WindowEventHandler.module.exports.WindowEventHandler.handleDocumentKeyEvent (/Applications/Atom.app/Contents/Resources/app/src/window-event-handler.js:100:42)
    at HTMLDocument.<anonymous> (/Applications/Atom.app/Contents/Resources/app/src/window-event-handler.js:3:65)

Commands

  3x -0:38.8.0 cucumber-step:jump-to-step (input.hidden-input)

Non-Core Packages

atom-ctags 5.1.0 
autocomplete-ruby 0.2.8 
cucumber 0.6.0 
cucumber-autocomplete 0.7.2 
cucumber-step 0.2.0 
git-blame 1.1.1 
git-control 0.9.0 
language-rspec 0.6.2 
open-on-bitbucket 0.4.0 
platformio-ide-terminal 2.5.1 
ruby-block 0.3.6 
ruby-test 1.0.2 
ruby-test-switcher 1.2.3