ternjs / tern

A JavaScript code analyzer for deep, cross-editor language support
https://ternjs.net/
MIT License
4.25k stars 378 forks source link

Emacs hangs, at times, when using spread operator #1016

Open paxperscientiam opened 5 years ago

paxperscientiam commented 5 years ago

There is an issue with the spread operator as it pertains to emacs.

image

Emacs hangs in the context depicted when entering a spread operator. I think it may freeze after typing the first dot.

This might be specific to emacs, but here is the error message spit out into the minibuffer:

"Request failed: ((error http 400) . TypeError: Cannot read property 'start' of undefined)"

Thoughts?

EDIT: Things hung twice. First, when I tried to use the spread operator preceding "alertsUrl". After restarting, it hung again after trying to enter the second depicted spread operator. Thanks

Originally posted here: https://github.com/ternjs/tern/issues/999#issuecomment-480630278