Skip to content

hot reload not working on a mac -- something about .git #177

@lukstafi

Description

@lukstafi

I have this issue with failure in a watcher thread. And the served file state is somehow very obsolete. Apologies, this is weird. (At the moment cannot check on a different OS, will do in a couple weeks.)

lukstafi@Lukaszs-MacBook-Pro ppx_minidebug % slipshow serve PRESENTATION.md
Visit http://127.0.0.1:8080 to view your presentation, with auto-reloading on file changes.
12.10.25 15:27:29.730    dream.logger  INFO REQ 1 GET / 127.0.0.1:56946 fd 15 Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/18.6 Safari/605.1.15
12.10.25 15:27:29.730                       REQ 1 A browser reloaded
12.10.25 15:27:29.730    dream.logger  INFO REQ 1 200 in 70 μs
12.10.25 15:27:29.734    dream.logger  INFO REQ 2 GET /favicon.ico 127.0.0.1:56947 fd 16 Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/18.6 Safari/605.1.15
12.10.25 15:27:29.734    dream.logger  WARN REQ 2 404 in 44 μs
12.10.25 15:27:29.775    dream.logger  INFO REQ 3 GET /now 127.0.0.1:56947 fd 16 Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/18.6 Safari/605.1.15
12.10.25 15:27:29.775    dream.logger  INFO REQ 3 200 in 32 μs
12.10.25 15:27:29.795    dream.logger  INFO REQ 4 GET /onchange 127.0.0.1:56946 fd 15 Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/18.6 Safari/605.1.15
^[[B12.10.25 15:28:27.534                  INFO updating file dependencies to /Users/lukstafi/ppx_minidebug/PRESENTATION.md
12.10.25 15:28:27.535    dream.logger  INFO REQ 4 200 in 57740150 μs
12.10.25 15:28:27.567    dream.logger  INFO REQ 5 GET /onchange 127.0.0.1:56946 fd 15 Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/18.6 Safari/605.1.15
12.10.25 15:28:40.397    dream.logger ERROR Async exception: Invalid_argument("\".git/FETCH_HEAD\": invalid segment")
12.10.25 15:28:40.397    dream.logger ERROR Raised at Stdlib.invalid_arg in file "stdlib.ml", line 30, characters 20-45
12.10.25 15:28:40.397    dream.logger ERROR Called from Fpath.add_seg in file "src/fpath.ml", line 240, characters 27-60
12.10.25 15:28:40.397    dream.logger ERROR Called from Slipshow_server.watch_and_compile.callback in file "src/server/slipshow_server.ml", line 36, characters 41-68
12.10.25 15:28:40.397    dream.logger ERROR Called from Lwt.Miscellaneous.apply in file "src/core/lwt.ml", line 3128, characters 8-11

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions