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: e.text.localeCompare is not a function #521

Open fredargoud opened 5 years ago

fredargoud commented 5 years ago

[Enter steps to reproduce:]

  1. ...
  2. ...

Atom: 1.33.0 x64 Electron: 2.0.11 OS: Mac OS X 10.13.6 Thrown From: language-babel package 2.85.0

Stack Trace

Uncaught TypeError: e.text.localeCompare is not a function

At /Applications/Atom.app/Contents/Resources/app/static/<embedded>:11

TypeError: e.text.localeCompare is not a function
    at i (/Applications/Atom.app/Contents/Resources/app/static/<embedded>:11:658095)
    at Array.sort (native)
    at SnippetsProvider.findSuggestionsForPrefix (/Applications/Atom.app/Contents/Resources/app/static/<embedded>:11:657956)
    at SnippetsProvider.getSuggestions (/Applications/Atom.app/Contents/Resources/app/static/<embedded>:11:657550)
    at n.forEach.t (/Applications/Atom.app/Contents/Resources/app/static/<embedded>:11:647382)
    at Array.forEach (<anonymous>)
    at AutocompleteManager.getSuggestionsFromProviders (/Applications/Atom.app/Contents/Resources/app/static/<embedded>:11:646898)
    at AutocompleteManager.findSuggestions (/Applications/Atom.app/Contents/Resources/app/static/<embedded>:11:646636)
    at AutocompleteManager.requestNewSuggestions (/Applications/Atom.app/Contents/Resources/app/static/<embedded>:11:655166)
    at AutocompleteManager.showOrHideSuggestionListForBufferChanges (/Applications/Atom.app/Contents/Resources/app/static/<embedded>:11:656257)
    at Function.simpleDispatch (/Applications/Atom.app/Contents/Resources/app/static/<embedded>:11:1190583)
    at Emitter.emit (/Applications/Atom.app/Contents/Resources/app/static/<embedded>:11:1192024)
    at TextBuffer.emitDidChangeTextEvent (/Applications/Atom.app/Contents/Resources/app/static/<embedded>:11:503956)
    at TextBuffer.transact (/Applications/Atom.app/Contents/Resources/app/static/<embedded>:11:492131)
    at TextEditor.transact (/Applications/Atom.app/Contents/Resources/app/static/<embedded>:11:24215)
    at mergeIntersectingSelections (/Applications/Atom.app/Contents/Resources/app/static/<embedded>:11:16150)
    at TextEditor.mergeSelections (/Applications/Atom.app/Contents/Resources/app/static/<embedded>:11:39484)
    at TextEditor.mergeIntersectingSelections (/Applications/Atom.app/Contents/Resources/app/static/<embedded>:11:39038)
    at TextEditor.mutateSelectedText (/Applications/Atom.app/Contents/Resources/app/static/<embedded>:11:16113)
    at TextEditor.insertText (/Applications/Atom.app/Contents/Resources/app/static/<embedded>:11:15662)
    at TextEditor.e.(anonymous function) (/Applications/Atom.app/Contents/Resources/app/static/<embedded>:11:259206)
    at /packages/language-babel/lib/did-insert-text.coffee:80:18)
    at TextEditorComponent.didTextInput (/Applications/Atom.app/Contents/Resources/app/static/<embedded>:11:93878)

Commands

     -2:25.6.0 core:backspace (input.hidden-input)
     -2:19.7.0 intentions:highlight (input.hidden-input)
  4x -2:19.4.0 editor:delete-to-beginning-of-word (input.hidden-input)
     -2:17.7.0 core:backspace (input.hidden-input)
     -2:17.4.0 core:move-right (input.hidden-input)
     -2:16.9.0 core:move-down (input.hidden-input)
     -2:10.6.0 core:save (input.hidden-input)
     -1:40.9.0 editor:newline (input.hidden-input)
     -1:40.2.0 core:move-up (input.hidden-input)
     -1:37.9.0 core:backspace (input.hidden-input)
     -1:35.8.0 autocomplete-plus:confirm (input.hidden-input)
     -1:03.1.0 core:save (input.hidden-input)
  3x -0:54.5.0 core:backspace (input.hidden-input)
     -0:28.7.0 editor:consolidate-selections (input.hidden-input)
     -0:28.7.0 core:cancel (input.hidden-input)
     -0:20.6.0 grammar-selector:show (atom-text-editor.editor.is-focused)

Non-Core Packages

atom-js-standard 1.0.2 
busy-signal 1.4.3 
emmet 2.4.3 
intentions 1.1.5 
javascript-snippets 1.2.1 
javascript-standard-snippets 0.2.1 
language-babel 2.85.0 
linter 2.2.0 
linter-js-standard 6.1.0 
linter-ui-default 1.7.1 
standardjs-snippets 2.6.2