klorenz / atom-regex-railroad-diagrams

display regex as railroad diagram, if cursor moves to it
MIT License
250 stars 31 forks source link

Uncaught ReferenceError: expecctedClose is not defined #60

Open slobo opened 9 years ago

slobo commented 9 years ago

[Enter steps to reproduce below:]

  1. ...
  2. ...

Atom Version: 1.0.16 System: Mac OS X 10.10.5 Thrown From: regex-railroad-diagram package, v0.10.3

Stack Trace

Uncaught ReferenceError: expecctedClose is not defined

At /Users/slobo/.atom/packages/regex-railroad-diagram/lib/regex-railroad-diagram.coffee:124

ReferenceError: expecctedClose is not defined
  at Object.module.exports.cleanRegex (/Users/slobo/.atom/packages/regex-railroad-diagram/lib/regex-railroad-diagram.coffee:124:17)
  at Object.module.exports.checkForRegExp (/Users/slobo/.atom/packages/regex-railroad-diagram/lib/regex-railroad-diagram.coffee:150:27)
  at /Users/slobo/.atom/packages/regex-railroad-diagram/lib/regex-railroad-diagram.coffee:18:73
  at later (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/underscore-plus/node_modules/underscore/underscore.js:724:25)

Commands

     -2:48.8.0 core:backspace (atom-text-editor.editor.is-focused)
  6x -2:48.5.0 core:move-right (atom-text-editor.editor.is-focused)
  6x -2:47.4.0 core:backspace (atom-text-editor.editor.is-focused)
     -2:44.9.0 core:save (atom-text-editor.editor.is-focused.autocomplete-active)
  3x -2:44.6.0 core:move-up (atom-text-editor.editor.is-focused.autocomplete-active)
     -2:43.6.0 autocomplete-plus:cancel (atom-text-editor.editor.is-focused.autocomplete-active)
  2x -2:43.3.0 core:move-up (atom-text-editor.editor.is-focused)
     -2:42.7.0 core:move-right (atom-text-editor.editor.is-focused)
     -2:41.8.0 core:move-down (atom-text-editor.editor.is-focused)
  2x -2:41.5.0 core:move-left (atom-text-editor.editor.is-focused)
     -2:41 core:move-right (atom-text-editor.editor.is-focused)
     -2:40.7.0 core:backspace (atom-text-editor.editor.is-focused)
     -2:39.5.0 core:save (atom-text-editor.editor.is-focused)
     -2:38.2.0 core:move-right (atom-text-editor.editor.is-focused)
  3x -2:38 core:select-down (atom-text-editor.editor.is-focused)
     -2:37.3.0 core:copy (atom-text-editor.editor.is-focused)

Config

{
  "core": {
    "disabledPackages": [
      "vim-mode",
      "terminal-status",
      "file-icon-supplement",
      ".bin",
      "perltidy",
      "linter-perl"
    ],
    "themes": [
      "atom-dark-ui",
      "monokai"
    ]
  }
}

Installed Packages

# User
aligner, v0.16.1
atom-typescript, v6.0.14
autoclose-html, v0.19.0
autocomplete-paths, v1.0.2
docblockr, v0.7.3
file-icons, v1.6.9
hex, v0.6.2
jshint, v1.8.0
last-cursor-position, v0.9.0
linter, v1.6.0
monokai, v0.18.0
pretty-json, v0.4.1
project-manager, v2.5.2
react, v0.12.10
regex-railroad-diagram, v0.10.3
save-session, v0.15.7

# Dev
No dev packages
wskb commented 9 years ago

I got this error with the following expression in a Perl file (replace all quotes with escaped quotes): s/"/\\"/g