Chris911 / Ask-Stack-Atom

Ask Stack Overflow for Atom
https://atom.io/packages/ask-stack
MIT License
124 stars 22 forks source link

Plugin crashes with Atom 107 and React editor #7

Closed alexandernst closed 10 years ago

alexandernst commented 10 years ago

Uncaught SyntaxError: Unexpected token  index.html: 1

Uncaught SyntaxError: Unexpected token  ask-stack-api-client.coffee:47
    (anonymous function) ask-stack-api-client.coffee:47
    EventEmitter.emit events.js:123
    (anonymous function) _stream_readable.js:896
    _tickCallback
Chris911 commented 10 years ago

When does this happen? When you toggle the question box?

I did test with React editor on 106 but not 107 yet.

alexandernst commented 10 years ago

This happens when I hit "Search" (afer filling both fields, the text one and the language one).

Chris911 commented 10 years ago

I just tried with v108 with and without React editor and it works just fine here. However I looked more closely at the error and it seems to be a problem with what is returned from the Stack Exchange API (invalid JSON). What did you search for and is this still happening? Try with something like "Sort array", "Java".

alexandernst commented 10 years ago

I tried with sort array and javascript for the language.

Chris911 commented 10 years ago

v0.0.6 has error handling for the JSON parsing instead this happens again. Please report back if it is the case.