clausreinke / typescript-tools

(repo no longer active) Tools related to the TypeScript language
Apache License 2.0
266 stars 29 forks source link

tss shows error on code which passes tsc compiler just fine #36

Closed hippich closed 10 years ago

hippich commented 10 years ago

Hi. I am new to typescript. I have code which compiles just fine using command-line tsc or inside webstorm, but fails in VIM with typescript-tools when I run :TSSstarthere

Where I should start debugging? For one I see that typescript-tools seems to be based on 0.9x version of TS, while we use typescript 1.0.1. What is the process of updating typescript compiler in typescript-tools?

clausreinke commented 10 years ago

The git describe output v0.9.1-2505-g18875cc includes several thousand commits since 0.9.1. The current typescript-tools 0.3.1 was built against a develop branch version of typescript that corresponds to some variant of 1.0.1 (according to its package.json).

Can you provide any useful details about the issues you're seeing?

clausreinke commented 10 years ago

note to self: switch to git describe --tags (1.0-641-g18875cc)

clausreinke commented 10 years ago

no info, no response

hippich commented 10 years ago

Sorry, tried to make an isolated test failing, but could not. Probably something about how our project is organized here. We use Webstorm for development and it seems fine.

What I found is that once initial errors check done, next writes and checks are passing. So I guess this some sort of race condition. So workaround for me - ignore initial errors list.

clausreinke commented 10 years ago

There shouldn't be any potential for race conditions. You might want to check whether your IDE setup relies on a _references.ts file (or similar) for project loading or whether you've made dependencies explicit in the sources. If the former, you probably need to start with the references file, or tss may not load some of the imports/references in the order you intended.