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: this.buffer.getLanguageMode(...).bufferRangeForScopeAtPosition is not a function #105

Open miklb opened 6 years ago

miklb commented 6 years ago

Using Atom 1.25.0 on a javascript file. I'm not sure what extension is using it. Automated issue creation in Atom.

  1. ...
  2. ...

Atom: 1.25.0 x64 Electron: 1.7.11 OS: Mac OS X 10.13.3 Thrown From: regex-railroad-diagram package 0.19.4

Stack Trace

Uncaught TypeError: this.buffer.getLanguageMode(...).bufferRangeForScopeAtPosition is not a function

At /Applications/Atom.app/Contents/Resources/app/src/text-editor.js:3684

TypeError: this.buffer.getLanguageMode(...).bufferRangeForScopeAtPosition is not a function
    at TextEditor.bufferRangeForScopeAtPosition (/Applications/Atom.app/Contents/Resources/app/src/text-editor.js:3684:48)
    at TextEditor.bufferRangeForScopeAtCursor (/Applications/Atom.app/Contents/Resources/app/src/text-editor.js:3680:23)
    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/autocomplete-paths/node_modules/underscore/underscore.js:724:25)

Commands

     -9:54.8.0 core:backspace (input.hidden-input)
     -9:53.9.0 core:paste (input.hidden-input)
     -9:42.8.0 core:save (input.hidden-input)
     -7:53.3.0 intentions:highlight (input.hidden-input)
     -7:51.5.0 datatip:toggle (input.hidden-input)
     -7:17.8.0 core:save (input.hidden-input)
     -7:17.1.0 intentions:highlight (input.hidden-input)
     -7:12.5.0 datatip:toggle (input.hidden-input)
     -6:27.6.0 intentions:highlight (input.hidden-input)
     -6:18.2.0 datatip:toggle (input.hidden-input)
  4x -1:00.5.0 core:copy (input.hidden-input)
     -0:22.5.0 core:backspace (input.hidden-input)
     -0:21.5.0 core:paste (input.hidden-input)
  8x -0:18.8.0 core:backspace (input.hidden-input)
     -0:10.3.0 core:copy (input.hidden-input)
     -0:09.9.0 core:backspace (input.hidden-input)

Non-Core Packages

aligner 1.2.4 
aligner-javascript 1.3.0 
aligner-php 1.2.0 
atom-beautify 0.32.2 
atom-bulma 0.7.1 
atom-css-clean 2.24.1 
atom-css-comb 3.3.1 
atom-ide-ui 0.9.4 
atom-liquid-snippets 0.3.0 
atom-open-marked 0.12.0 
atom-wrap-in-tag 0.6.0 
atomic-chrome 0.3.3 
autoclose-html 0.23.0 
autocomplete-paths 2.12.2 
autocomplete-semantic-web 0.0.9 
autocomplete-wordpress-hooks 0.2.3 
autoprefixer 3.7.1 
busy-signal 1.4.3 
chester-kh-syntax 0.4.2 
city-lights-syntax 1.1.8 
city-lights-ui 1.3.3 
civic-syntax 0.2.4 
CMB-Snippets 0.1.3 
docblockr 0.13.7 
edit-in-new-tab 0.10.1 
editorconfig 2.2.2 
expose 0.15.0 
file-icons 2.1.18 
gist 1.1.0 
git-blame 1.6.0 
hey-pane 1.1.0 
html-head-snippets 0.2.0 
html-to-css 0.2.2 
ide-css 0.3.0 
ide-css-less-scss 0.1.1 
ide-html 0.4.2 
ide-json 0.2.1 
ide-php 0.7.14 
ide-yaml 0.4.2 
imdone-atom 2.4.2 
intentions 1.1.5 
language-generic-config 1.4.0 
language-liquid 0.6.0 
language-log 1.10.1 
language-mediawiki 2.2.0 
language-nginx 0.8.0 
language-nunjucks 4.2.1 
language-postcss 1.3.1 
line-ending-converter 1.3.2 
linter 2.2.0 
linter-alex 4.0.0 
linter-csslint 2.0.0 
linter-eslint 8.4.1 
linter-js-standard 5.0.0 
linter-js-yaml 1.2.8 
linter-jshint 3.1.6 
linter-just-say-no 0.7.4 
linter-markdown 5.2.0 
linter-phpcs 1.6.8 
linter-proselint 3.3.0 
linter-sass-lint 1.8.3 
linter-shellcheck 1.4.6 
linter-stylelint 4.2.0 
linter-ui-default 1.7.1 
markdown-writer 2.7.3 
merge-conflicts 1.4.5 
oceanic-next 1.0.0 
pandoc-convert 1.1.1 
php-integrator-base 3.2.1 
php-integrator-refactoring 1.4.1 
pigments 0.40.2 
platformio-ide-terminal 2.8.1 
prettier-atom 0.52.0 
pretty-json 2.0.0 
project-manager 3.3.5 
quick-issues 0.9.3 
react 0.18.0 
regex-railroad-diagram 0.19.4 
remove-whitespace 0.2.1 
sort-lines 0.18.0 
split-diff 1.5.2 
ssh-config 0.13.0 
stylefmt 5.0.1 
svgo 3.1.0 
tabs-to-spaces 1.0.3 
tasks 2.10.1 
teletype 0.10.0 
toggl 0.6.0 
toggle-markdown-task 0.6.0 
tool-bar 1.1.7 
tool-bar-markdown-writer 0.3.1 
windows-carriage-return-remover 0.1.3 
wordpress-autocomplete 1.2.0 
wordpress-suite 1.2.1 
wp-dev 0.3.5 
Zen 0.18.0