-
Notifications
You must be signed in to change notification settings - Fork 129
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
So this just happened #241
Comments
Can you confirm that the files actually exist? Eg. |
Can you create a minimal example that reproduces this? (gulpfile, directory structure, tsconfig) |
Not much time atm, I'll try to. c:\Users\XXX\Documents\Dev\private\ZZZ\src\bin\backend\db\DatabaseConfiguration.ts exists ###tsconfig.json
Folder structure (simplified, in case there is a folder in the initial log . ###gulpfile
I hope I haven't missed anything here |
Oh I can say that this just happens when i change |
Is it only happening with incremental compilation (watch)? |
Oh wow, I just forgot to mention that! My bad, sorry! On Wed, Dec 2, 2015 at 6:16 PM, Ivo Gabe de Wolff notifications@github.com
|
It looks like you've implemented your own incremental compilation. A project object cannot be used concurrently, and I think the task gets triggered for two different files, at almost the same time. Could that be the case? I wouldn't advise to use such system, as it will leed to unexpected behavior, and you will not get all type errors. You can use 'isolatedModules` instead, to speed up compilation. |
well its just gulp.watch().on('change') - to avoid compiling the whole
Hmm actually not. I'll check this tho. On Wed, Dec 2, 2015 at 7:12 PM, Ivo Gabe de Wolff notifications@github.com
|
exists gulp is looking for
tho www.ts
DatabaseConfiguration.ts
|
What happens when you use the latest version? Do you get a warning which says that a Project is reused in two compilations at the same time? |
Nope. Just doesn't compile correctly. |
@drallgood I did a quick check, and gulp-typescript handles that correctly (when the same project is used on multiple compilations, not at the same time, but with different directories). Can you post your gulpfile? And just to make sure, you're using the latest version of gulp-typescript and you see the error "Could not find input file"? |
@ivogabe
Yes, I'm using the latest version. And no, I don't see the "Could not find input file" error. I get a bunch of "Cannot find name" errors |
@drallgood "Cannot find name" errors are not related to this issue, but probably related to a bad config. When you use a cache, not all files are passed to TypeScript, thus the compiler cannot find variables exported from these files. When you remove the cache, you wouldn't get these issues (probably). |
@ivogabe Indeed you were right. Sorry about that. I encountered the above error, but somehow solved it... No idea what i did, though. |
@babbelnedd Is this still an issue with the latest version? |
This should not be an issue any more with version 3. |
The text was updated successfully, but these errors were encountered: