Giter Site home page Giter Site logo

Comments (8)

mhartington avatar mhartington commented on June 30, 2024

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.

from nvim-typescript.

DonnieWest avatar DonnieWest commented on June 30, 2024

@mhartington I can look into it tonight. It looks like after removing that check, it still fails everywhere else that uses string indices.

from nvim-typescript.

DonnieWest avatar DonnieWest commented on June 30, 2024

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

from nvim-typescript.

faceleg avatar faceleg commented on June 30, 2024

This may be of use: https://github.com/Microsoft/TypeScript/blob/v2.0.0-beta/src/server/protocol.d.ts

from nvim-typescript.

mhartington avatar mhartington commented on June 30, 2024

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.

from nvim-typescript.

faceleg avatar faceleg commented on June 30, 2024

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

from nvim-typescript.

mhartington avatar mhartington commented on June 30, 2024

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!

from nvim-typescript.

faceleg avatar faceleg commented on June 30, 2024

Yeah, TS seems to move rather fast, and the improvements are often worth the upgrade pain.

from nvim-typescript.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.