hax / js-refactor

Refactoring support for JavaScript in Atom.
https://atom.io/packages/js-refactor
MIT License
17 stars 3 forks source link

Uncaught TypeError: Cannot read property '640' of undefined #5

Closed diegognt closed 9 years ago

diegognt commented 9 years ago

[Enter steps to reproduce below:]

  1. Open a JS file
  2. Resize the split file at right

Atom Version: 1.0.11 System: Mac OS X 10.10.5 Thrown From: js-refactor package, v0.4.2

Stack Trace

Uncaught TypeError: Cannot read property '640' of undefined

At /Users/diegonavarro/.atom/packages/js-refactor/lib/ripper.coffee:78

TypeError: Cannot read property '640' of undefined
  at Ripper.module.exports.Ripper.find (/Users/diegonavarro/.atom/packages/js-refactor/lib/ripper.coffee:49:21)
  at Watcher.module.exports.Watcher.createReferences (/Users/diegonavarro/.atom/packages/refactor/lib/watcher.coffee:135:22)
  at Watcher.module.exports.Watcher.onParseEnd (/Users/diegonavarro/.atom/packages/refactor/lib/watcher.coffee:108:8)
  at Watcher.onParseEnd (/Users/diegonavarro/.atom/packages/refactor/lib/watcher.coffee:1:1)
  at Watcher.module.exports.Watcher.parse (/Users/diegonavarro/.atom/packages/refactor/lib/watcher.coffee:102:8)
  at /Users/diegonavarro/.atom/packages/refactor/lib/watcher.coffee:1:1

Commands

Config

{
  "core": {
    "themes": [
      "nucleus-dark-ui",
      "chester-atom-syntax"
    ],
    "disabledPackages": [
      "minimap-autohide",
      "language-SCSS",
      "jade-autocompile"
    ]
  }
}

Installed Packages

# User
angularjs, v0.3.0
angularjs-styleguide-snippets, v0.7.2
atom-jade, v0.3.0
chester-atom-syntax, v0.1.1
color-picker, v2.0.11
docblockr, v0.7.3
emmet, v2.3.12
file-icons, v1.6.9
js-refactor, v0.4.2
linter, v1.5.0
linter-csslint, v1.0.5
linter-htmlhint, v0.1.1
linter-jshint, v1.1.5
linter-jsonlint, v1.0.0
linter-php, v1.0.3
linter-scss-lint, v2.0.0
minimap, v4.13.2
minimap-git-diff, v4.1.8
minimap-pigments, v0.1.6
minimap-selection, v4.3.0
nucleus-dark-ui, v0.2.12
pigments, v0.13.2
refactor, v0.5.1

# Dev
No dev packages
hax commented 9 years ago

I just released a new version which include many fixes. Please update to latest version and see if the issue is solved. Thank you!

diegognt commented 9 years ago

nice, thanks