-
Notifications
You must be signed in to change notification settings - Fork 76
Issues with TS 2.0? #15
Comments
Hmm just about to start my day, but looks like https://github.com/mhartington/deoplete-typescript/blob/master/rplugin/python3/deoplete/sources/typescript.py#L139 is causing the issues. @DonnieWest added this. |
@mhartington I can look into it tonight. It looks like after removing that check, it still fails everywhere else that uses string indices. |
Reverting back to before my changes still errors out with a similar error here https://github.com/mhartington/deoplete-typescript/blob/dd582eaa74e275c7ec630b4d1b70056cd4ea82e5/rplugin/python3/deoplete/sources/typescript.py#L153 Even fixing some of the errors, it looks like the response from Typescript 2.0 is different enough to display wrong completions. I can push up some of these fixes, but I think I'd prefer to error out on 2.0 instead of giving out the wrong information. I don't know enough about tsserver to be able to debug this. I'd suggest someone else head this up, but if I get some time I might give it a shot |
I'll poke around and see what up. I personally don't use 2.0 since it's still beta. Might be worth just grabbing our own copy of the tsserver code and bundling it with the code base for future releases. |
I started using 2.0 because @types are much less horrible (no more ///). In an ideal world where we all got paid to work on OSS projects, I'd suggest the plugin sniffs for the available TSS version and adjusts it's response handling based on that. Bundling the server would make it break for code written for a different compiler, only in new and interesting ways |
Hmm, this should be do-able. Hopefully.... we'll just drop support for 1x version of tss once 2.0 is stable and is no longer in beta. Will try to look into this tonight! |
Yeah, TS seems to move rather fast, and the improvements are often worth the upgrade pain. |
If request_seq is the same as seq, return result If request_seq is greater than seq, return None otherwise waiting for correct response
* throttle reload in gather_candidates * fix #15, await correct response If request_seq is the same as seq, return result If request_seq is greater than seq, return None otherwise waiting for correct response * fix break
Getting this in
:messages
when using with TypeScript@2:Haven't had a chance to start debugging.
The text was updated successfully, but these errors were encountered: