gandm / language-babel

ES2017, flow, React JSX and GraphQL grammar and transpilation for ATOM
https://atom.io/packages/language-babel
MIT License
476 stars 83 forks source link

Uncaught TypeError: Cannot read property 'tokenIndentation' of undefined #520

Closed cj4luv closed 1 year ago

cj4luv commented 6 years ago

[Enter steps to reproduce:]

  1. ...
  2. ...

Atom: 1.32.2 x64 Electron: 2.0.9 OS: Mac OS X 10.13.4 Thrown From: language-babel package 2.85.0

Stack Trace

Uncaught TypeError: Cannot read property 'tokenIndentation' of undefined

At /Users/laon/.atom/packages/language-babel/lib/auto-indent.coffee:815

TypeError: Cannot read property 'tokenIndentation' of undefined
    at AutoIndent.module.exports.AutoIndent.indentForClosingBracket (/packages/language-babel/lib/auto-indent.coffee:815:54)
    at AutoIndent.module.exports.AutoIndent.indentJSX (/packages/language-babel/lib/auto-indent.coffee:298:31)
    at AutoIndent.module.exports.AutoIndent.didStopChanging (/packages/language-babel/lib/auto-indent.coffee:139:10)
    at /packages/language-babel/lib/auto-indent.coffee:149:66
    at Function.simpleDispatch (/Applications/Atom.app/Contents/Resources/app/static/<embedded>:11:1186984)
    at Emitter.emit (/Applications/Atom.app/Contents/Resources/app/static/<embedded>:11:1188425)
    at TextBuffer.emitDidStopChangingEvent (/Applications/Atom.app/Contents/Resources/app/static/<embedded>:11:501813)
    at later (/Applications/Atom.app/Contents/Resources/app/static/<embedded>:14:98316)

Commands

     -5:12.6.0 editor:consolidate-selections (input.hidden-input)
     -5:12.6.0 core:cancel (input.hidden-input)
     -5:08.0 find-and-replace:select-next (input.hidden-input)
     -5:01.4.0 find-and-replace:show (input.hidden-input)
     -5:00.5.0 editor:consolidate-selections (input.hidden-input)
     -5:00.5.0 core:cancel (input.hidden-input)
     -4:51.1.0 fuzzy-finder:toggle-file-finder (input.hidden-input)
     -4:49.7.0 core:paste (input.hidden-input)
     -4:43.9.0 core:confirm (input.hidden-input)
     -3:46.5.0 core:close (input.hidden-input)
     -3:44.8.0 tree-view:remove (div.tool-panel.tree-view)
     -3:28.8.0 core:select-up (input.hidden-input)
  3x -3:28.4.0 core:backspace (input.hidden-input)
     -3:27.1.0 editor:select-line (input.hidden-input)
     -3:26.9.0 core:backspace (input.hidden-input)
     -3:25.5.0 core:save (input.hidden-input)

Non-Core Packages

atom-beautify 0.33.4 
atom-clock 0.1.16 
atom-material-syntax 1.0.8 
atom-material-ui 2.1.3 
autocomplete-paths 2.12.2 
busy-signal 1.4.3 
color-picker 2.3.0 
file-icons 2.1.26 
highlight-selected 0.14.0 
intentions 1.1.5 
language-babel 2.85.0 
linter 2.2.0 
linter-eslint 8.4.1 
linter-ui-default 1.7.1 
merge-conflicts 1.4.5 
minimap 4.29.9 
my-theme-syntax 0.0.0 
nucleus-dark-ui 0.12.3 
pigments 0.40.2 
platformio-ide-terminal 2.8.4 
prettier-atom 0.55.2 
react-native-snippets 0.3.0 
react-native-snippets-horse 2.0.0 
react-snippets 1.1.2 
seti-syntax 1.2.0 
seti-ui 1.11.0 
sort-lines 0.18.0 
svg-preview 0.14.0