Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Uncaught TypeError: Cannot read property '1' of undefined #3

Open
1 task
mrl893 opened this issue Mar 24, 2022 · 1 comment
Open
1 task

Uncaught TypeError: Cannot read property '1' of undefined #3

mrl893 opened this issue Mar 24, 2022 · 1 comment

Comments

@mrl893
Copy link

mrl893 commented Mar 24, 2022

Prerequisites

Description

Steps to Reproduce

Expected behavior:

Actual behavior:

Versions

Atom: 1.60.0 x64
Electron: 9.4.4
OS: macOS 12.3
Thrown From: ror-refactor package 0.3.1

Stack Trace

Uncaught TypeError: Cannot read property '1' of undefined

At /Users/rm/.atom/packages/ror-refactor/lib/tools/extract-code.js:114

TypeError: Cannot read property '1' of undefined
    at ExtractCode.extractMethodOrLine (/packages/ror-refactor/lib/tools/extract-code.js:114:19)
    at ExtractCode.refactor (/packages/ror-refactor/lib/tools/extract-code.js:49:14)
    at HTMLElement.rorRefactorExtractCode (/packages/ror-refactor/lib/ror-refactor.js:18:59)
    at CommandRegistry.handleCommandEvent (/private/var/folders/9s/y8_06b491lzbzbg0b5knwf2c0000gn/T/AppTranslocation/45A6782E-F268-4A4D-8F74-35FF2AA36226/d/Atom.app/Contents/Resources/app/static/<embedded>:11:352694)
    at CommandRegistry.dispatch (/private/var/folders/9s/y8_06b491lzbzbg0b5knwf2c0000gn/T/AppTranslocation/45A6782E-F268-4A4D-8F74-35FF2AA36226/d/Atom.app/Contents/Resources/app/static/<embedded>:11:351169)
    at AtomEnvironment.dispatchContextMenuCommand (/private/var/folders/9s/y8_06b491lzbzbg0b5knwf2c0000gn/T/AppTranslocation/45A6782E-F268-4A4D-8F74-35FF2AA36226/d/Atom.app/Contents/Resources/app/static/<embedded>:1:786983)
    at EventEmitter.t (/private/var/folders/9s/y8_06b491lzbzbg0b5knwf2c0000gn/T/AppTranslocation/45A6782E-F268-4A4D-8F74-35FF2AA36226/d/Atom.app/Contents/Resources/app/static/<embedded>:1:795037)
    at EventEmitter.emit (events.js:223:5)
    at Object.onMessage (electron/js2c/renderer_init.js:115:818)

Commands

  7x -3:20.2.0 core:move-left (input.hidden-input)
  3x -3:16.8.0 core:move-right (input.hidden-input)
     -3:16.1.0 core:backspace (input.hidden-input)
  2x -3:15.6.0 core:move-left (input.hidden-input)
  2x -3:11.1.0 core:move-right (input.hidden-input)
     -3:10.2.0 core:backspace (input.hidden-input)
  5x -3:07.5.0 core:move-right (input.hidden-input)
  6x -3:05.8.0 core:backspace (input.hidden-input)
  6x -3:01.6.0 core:move-left (input.hidden-input)
     -2:56.3.0 autocomplete-plus:confirm (input.hidden-input)
  2x -2:53.7.0 core:save (input.hidden-input)
     -0:46.9.0 editor:newline (input.hidden-input)
  6x -0:40.4.0 core:move-left (input.hidden-input)
     -0:37.1.0 autocomplete-plus:confirm (input.hidden-input)
     -0:36.2.0 core:save (input.hidden-input)
     -0:04.1.0 ror-refactor:extract-code (span.syntax--keyword.syntax--operator.syntax--js)

Non-Core Packages

atom-live-server 2.3.0 
atom-material-syntax 1.0.8 
atom-material-ui 2.1.3 
Hydrogen 2.16.3 
js-refactor 0.8.1 
platformio-ide-terminal 2.10.1 
react 0.18.0 
react-autocomplete 1.2.0 
react-redux-react-native-snippets 0.2.4 
react-snippets 2.0.0 
ror-refactor 0.3.1 
teletype 0.13.4 

Additional Information

@zedtux
Copy link
Owner

zedtux commented Apr 8, 2022

No step to reproduce ... and I'm not using it in those days, not sure I can work on that one. Feel free to submit a PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants