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

Closed
opened 9 years ago by wolverian · 3 comments
wolverian commented 9 years ago (Migrated from github.com)

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?

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 commented 9 years ago (Migrated from github.com)

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.

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 commented 9 years ago (Migrated from github.com)
Relatedly: https://github.com/plt/racket/issues/971
mbutterick commented 9 years ago (Migrated from github.com)

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))
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: ``` racket (module config racket/base (provide (all-defined-out)) (define compile-cache-active #f)) ```
Sign in to join this conversation.
No Label
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: mbutterick/pollen#64
Loading…
There is no content yet.