Skip to content
This repository has been archived by the owner on Jul 23, 2022. It is now read-only.

directory-require.rkt is not reloaded when changed #64

Closed
wolverian opened this issue Jul 6, 2015 · 3 comments
Closed

directory-require.rkt is not reloaded when changed #64

wolverian opened this issue Jul 6, 2015 · 3 comments
Labels

Comments

@wolverian
Copy link

While raco pollen start is running, changing directory-require.rkt doesn't seem to have any effect. Would it be possible to change this so that when changes are made to that file the server notices that and reloads the appropriate stuff?

@mbutterick
Copy link
Owner

It is, in principle, supposed to reload, but that’s become less dependable as I’ve added caches for speed. I’m in the midst of rethinking the cache-invalidation mechanisms. It may also be worthwhile to add a “development” mode that disables all the caches.

@mbutterick
Copy link
Owner

Relatedly: racket/racket#971

@mbutterick
Copy link
Owner

Still working on the big-picture fix. As a workaround, you can now turn off the compile cache, so everything in the page gets recompiled every time (slower but has the side effect of reloading "directory-require.rkt" as well).

To turn off the compile cache, add the following config submodule to your "directory-require.rkt" file:

(module config racket/base
  (provide (all-defined-out))
  (define compile-cache-active #f))

This issue was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants