-
Notifications
You must be signed in to change notification settings - Fork 203
Uncaught SyntaxError: Unexpected token m in JSON at position 9 #1216
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
@guncha this same error I have reported here #1166 (comment) I understand this is indeed bad bugreport since I do not have exact STR. but could you please add additional check to actually prevent it? |
It indicates a deeper problem with the |
@ZuBB also, what's your Typescript version for the project where this happens? |
2.1.6 |
just to omit any confusion: what do you mean under "run any commands"?
definitely not
quite possible, but I am not totally sure. I remember that I has lots of tabs opened and I walk through them and do incremental search (vim's I will try to recall what causes next time i get this. btw I got this today couple of times |
got one more time it today. last tree actions was next:
and voila - toast with error appeared |
Thanks. When you switch tabs, the plugin will trigger error checking for that file that will in turn generate some events from Only thing I can think of would be to add some logging to the /** Helper to parse the tsserver output stream to a message stream */
class MessageStream extends Transform {
lineCount = 1
constructor() {
super({objectMode: true})
}
_transform(line: string, encoding: string, callback: Function) {
console.log(this.lineCount + ":" + line) // add this
if (this.lineCount % 2 === 0) {
this.push(JSON.parse(line))
}
this.lineCount += 1
callback(null)
}
} |
I just recall that we added some debug lines :) I am adding two screens of console. hope it will help us to move further on this (or this) issue(s) |
Okay, I see, the |
[Enter steps to reproduce:]
Atom: 1.15.0 x64
Electron: 1.3.13
OS: Mac OS X 10.12.3
Thrown From: atom-typescript package 11.0.1
Stack Trace
Uncaught SyntaxError: Unexpected token m in JSON at position 9
Commands
Non-Core Packages
The text was updated successfully, but these errors were encountered: