-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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
TypeScript completer is not working after upgrade to TypeScript 2.6.1 #2818
Comments
Some services methods ( |
This is due to |
I feel like invalid output from npm is the tsserver stdout is a straight up tsserver bug? |
I agree (and so do they), but they released |
[READY] Support TypeScript 2.6.1 TypeScript 2.6.1 introduced a bug in TSServer where NPM warnings are printed on stdout at startup: ``` npm WARN 2.6 No description npm WARN 2.6 No repository field. npm WARN 2.6 No license field. ``` See issue microsoft/TypeScript#19660. The TypeScript completer chokes on this output as it always expects a HTTP-like response from TSServer and assumes that the server died if not. Though it's a TSServer bug, we can handle it by catching the `ValueError` exception raised when parsing invalid headers and by interrupting the reader loop only if the server is not running. Also, this new version of TypeScript returns an empty list when no definition is found. Update the `_GoToDefinition` and `_GoToType` functions accordingly. Fixes ycm-core/YouCompleteMe#2818. <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/valloric/ycmd/869) <!-- Reviewable:end -->
Right now the referenced ycmd repo hasn't been updated yet, so even though this is solved in ycmd, it still isn't working in YCM. |
@TommyX12 If you're in a hurry to get this solved in YCM, at least for yourself, you can go into your ycmd directory and pull the fixed ycmd revision. |
You fellows are absolute lifesavers! I love you guys <3 |
TypeScript version: 2.6.1
VIM version: 8.0
The completer working again after revert back to 2.5.3
YcmDebugInfo:
Error log:
The text was updated successfully, but these errors were encountered: