Skip to content
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

Caching issues #748

Closed
morris opened this issue Dec 17, 2018 · 2 comments
Closed

Caching issues #748

morris opened this issue Dec 17, 2018 · 2 comments
Labels
question Support requests. We tend not to answer these on Github. Nowadays I convert to Discussion instead.

Comments

@morris
Copy link

morris commented Dec 17, 2018

Hi!

I understand there have been some issues with caching - I recently stumbled on something weird myself when generating coverage with nyc, where the report showed files which didn't exist anymore on disk - and with #701 you've opted to remove caching from ts-node completely in one of the next releases. So a logical thing to do is --no-cache everything until then.

However, this feels next to impractical in terms of performance. I really liked the speed of ts-node with caching and strongly believe it's one of the most important features. Are you planning to fix/reintroduce caching anytime soon? Do you have recommendations on how to continue in the meantime? I was thinking of using a local cache directory in my project(s), and adding a simple cleaning script to remove it whenever problems occur (however, it is hard to determine if something went wrong; any tips appreciated!).

In any case, thanks for maintaining ts-node, probably lots of people relying on it these days :)

@captain-igloo
Copy link

I opened a caching issue with nyc the other day: istanbuljs/nyc#952 . Your problem could be related to the nyc cache (node_modules/.cache/nyc) or ts-node or both.

@blakeembrey
Copy link
Member

I'm not planning on re-introducing caching at this time, unless it's entirely fixed which is hard during type-checking mode since you need the entire dependency tree computed. It should be possible though, if someone feels strongly about getting it back. One of the fastest things you can do is use --transpile-only mode until someone figured out the dependency caching issues.

@blakeembrey blakeembrey added the question Support requests. We tend not to answer these on Github. Nowadays I convert to Discussion instead. label Jan 30, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Support requests. We tend not to answer these on Github. Nowadays I convert to Discussion instead.
Projects
None yet
Development

No branches or pull requests

3 participants