Git Product home page Git Product logo

Comments (6)

tahini avatar tahini commented on September 24, 2024

Actually, it seems a lot of classes' fields defined in the TspClient do not correspond to the values described in the trace server protocol: https://github.com/theia-ide/trace-server-protocol/blob/master/API.yaml

For instance, the state from the TspClient has a startTime and duration, while the TSP plans for start/end.

IIUC, these values should match perfectly, right? So both TspClient and trace server should be updated

from tsp-typescript-client.

tahini avatar tahini commented on September 24, 2024

Thank eslint for highlighting this ;-)

from tsp-typescript-client.

bhufmann avatar bhufmann commented on September 24, 2024

Yes, we need to align the TSP, server and client implementation

from tsp-typescript-client.

tahini avatar tahini commented on September 24, 2024

I'll start fixing this. Do we take the trace-server-protocol as the source of truth for this and fix the rest?

from tsp-typescript-client.

bhufmann avatar bhufmann commented on September 24, 2024

I'll start fixing this. Do we take the trace-server-protocol as the source of truth for this and fix the rest?

The code should reflect what the TSP defines. However, if a name doesn't fit or is not consistent, you can update the TSP as well and then align the code implementation.

from tsp-typescript-client.

tahini avatar tahini commented on September 24, 2024

First steps for fixing this:

Fix the trace server protocol: eclipse-cdt-cloud/trace-server-protocol#27

Make the trace server behave according to the spec: https://git.eclipse.org/r/c/tracecompass.incubator/org.eclipse.tracecompass.incubator/+/167256

from tsp-typescript-client.

Related Issues (12)

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.