klorenz / atom-regex-railroad-diagrams

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

Uncaught TypeError: Cannot match against 'undefined' or 'null'. #99

Open fia5000 opened 6 years ago

fia5000 commented 6 years ago

[Enter steps to reproduce:]

  1. ...
  2. ...

Atom: 1.22.0 x64 Electron: 1.6.15 OS: Mac OS X 10.13 Thrown From: regex-railroad-diagram package 0.19.4

Stack Trace

Uncaught TypeError: Cannot match against 'undefined' or 'null'.

At /Applications/Atom.app/Contents/Resources/app/src/tokenized-buffer.js:671

TypeError: Cannot match against 'undefined' or 'null'.
    at TokenizedBuffer.bufferRangeForScopeAtPosition (/Applications/Atom.app/Contents/Resources/app/src/tokenized-buffer.js:671:43)
    at TextEditor.module.exports.TextEditor.bufferRangeForScopeAtPosition (/Applications/Atom.app/Contents/Resources/app/src/text-editor.js:2986:41)
    at TextEditor.module.exports.TextEditor.bufferRangeForScopeAtCursor (/Applications/Atom.app/Contents/Resources/app/src/text-editor.js:2982:25)
    at Object.bufferRangeForScope (/packages/regex-railroad-diagram/lib/regex-railroad-diagram.coffee:87:25)
    at Object.getRegexpBufferRange (/packages/regex-railroad-diagram/lib/regex-railroad-diagram.coffee:133:14)
    at Object.checkForRegExp (/packages/regex-railroad-diagram/lib/regex-railroad-diagram.coffee:193:25)
    at /packages/regex-railroad-diagram/lib/regex-railroad-diagram.coffee:29:73
    at later (/packages/markdown-assistant/node_modules/underscore/underscore.js:724:25)

Commands

     -0:19.1.0 tree-view:show (atom-workspace.workspace.scrollbars-visible-when-scrolling)

Non-Core Packages

advanced-open-file 0.16.7 
ansible-galaxy 0.2.1 
ansible-snippets 0.2.0 
ansible-vault 0.6.8 
apex-syntax 0.2.0 
apex-ui 1.0.2 
ariake-dark-syntax 0.1.3 
ask-stack 2.2.0 
atom-beautify 0.30.6 
atom-ide-ui 0.5.4 
atom-jinja2 0.6.0 
atom-material-syntax 1.0.7 
atom-material-ui 2.0.6 
atom-monokai 0.10.9 
atom-terminal-panel 4.4.4 
atom-vagrant-manager 1.0.4 
autocomplete-ansible 0.1.15 
autocomplete-json 5.5.0 
autocomplete-modules 1.8.0 
autocomplete-paths 2.12.1 
autocomplete-python 1.10.3 
brogrammer-syntax 1.0.0 
brogrammer-ui 1.0.0 
busy-signal 1.4.3 
cake-syntax 1.0.2 
dash 1.7.1 
dash-ui 0.4.4 
docker 0.8.0 
expose 0.15.0 
file-icons 2.1.13 
firewatch-syntax 1.1.1 
git-control 0.9.0 
glowing-cursor 0.1.2 
go-plus 5.6.0 
go-signature-statusbar 1.2.3 
highlight-line 0.12.0 
highlight-selected 0.13.1 
hyperclick 0.0.0 
icecream-nord-syntax 0.1.4 
ide-go 0.4.0 
ide-java 0.6.7 
ide-python 0.3.0 
indent-guide-improved 1.4.13 
intentions 1.1.5 
json-colorer 1.0.0 
jumpy 4.1.1 
language-ansible 0.2.1 
language-docker 1.1.8 
language-hcl 0.4.0 
language-terraform 0.8.1 
linter 2.2.0 
linter-ansible-linting 1.3.1 
linter-ansible-syntax 1.2.0 
linter-python 3.1.2 
linter-terraform-syntax 1.2.1 
linter-ui-default 1.6.10 
MagicPython 1.0.12 
markdown-assistant 0.2.0 
markdown-preview-plus 2.4.16 
minimap 4.29.7 
minimap-find-and-replace 4.5.2 
minimap-highlight-selected 4.6.1 
multi-cursor 2.1.5 
no-title-bar 1.11.3 
nord-atom-syntax 0.9.1 
nord-atom-ui 0.11.0 
open-project-in-tower 1.4.0 
permanent-delete 0.1.6 
pretty-json 1.6.4 
pristine-ui 1.1.10 
project-manager 3.3.5 
project-viewer 1.2.5 
pure-syntax 0.3.0 
python-debugger 0.2.0 
python-indent 1.1.4 
python-jedi 0.3.8 
refactor 0.11.5 
regex-railroad-diagram 0.19.4 
script 3.17.3 
styri-syntax 0.1.1 
sync-settings 0.8.3 
tabs-to-spaces 1.0.3 
tree-view-autoresize 2.2.0 
tree-view-copy-relative-path 1.2.0 
tree-view-git-status 1.4.0 
yeti-syntax 0.1.2 
yeti-ui 0.1.6