Git Product home page Git Product logo

Comments (2)

clausreinke avatar clausreinke commented on September 13, 2024

Thanks for testing. tss should be fairly fault-tolerant (almost too much so), so even if you don't have the TypeScript sources cloned at the right relative path, you can still get some information by applying tss to its own sources. That doesn't mean that the docs (such as they are) don't need improvement (currently, the best documentation of the json format is the source:-(, and I hope to get around to a blog post or perhaps screencast next week.

The error message suggests that the file has not been loaded, or at least not under that path - how did you start the server, and what path did it output? Also, there isn't anything on line 8 in tss.ts, so you wouldn't get any information even if that path was loaded.

Here is a simple example, with the current tss sources, without the TypeScript sources installed

git clone git://github.com/clausreinke/typescript-tools.git
cd typescript-tools/
npm install -g
$ tss tss.ts
"loaded c:/javascript/typescript/tst/typescript-tools/tss.ts, TSS listening.."
symbol 327 5 c:/javascript/typescript/tst/typescript-tools/tss.ts
"setup:(file: any) => void"
> symbol 327 1 c:/javascript/typescript/tst/typescript-tools/tss.ts
"tss: TSS"
> definition 327 1 c:/javascript/typescript/tst/typescript-tools/tss.ts
{"def":{"unitIndex":4,"minChar":10581,"limChar":10603,"kind":"variable","name":"
tss","containerKind":"","containerName":"__GLO"},"file":"c:/javascript/typescrip
t/tst/typescript-tools/tss.ts","min":[325,3],"lim":[326,23]}
quit
"TSS closing"

from typescript-tools.

damassi avatar damassi commented on September 13, 2024

Thanks for posting this. Extremely helpful, and now I'm getting source information.

Edit: this tool works really good; i'll post an update once my sublime plugin has been completed.

from typescript-tools.

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.