Skip to content

Watch mode crashes on macos on main branch #9004

@voodoos

Description

@voodoos

On my machine, watch mode is broken on the main branch.
@emillon mentioned it might be linked to #8304

Specifications

  • Version of dune: 3.11.0-221-g5b6c8f4 (main)
  • Version of ocaml: 4.14.1 (and 5.1.0)
  • Operating system (distribution and version): MacOS Sonoma (M1 pro)

Reproduction

  • Clean copy at 5b6c8f4
  • make dev
  • ./dune.exe build @install -w
$ ./dune.exe build @install -w     
Internal error, please report upstream including the contents of _build/log.
Description:
  ("Fsevents.start: dispatch queue stopped", {})
Raised at Stdune__Code_error.raise in file
  "otherlibs/stdune/src/code_error.ml", line 10, characters 30-62
Called from Stdlib__Fun.protect in file "fun.ml", line 33, characters 8-15
Re-raised at Stdlib__Fun.protect in file "fun.ml", line 38, characters 6-52
Called from Stdlib__Fun.protect in file "fun.ml", line 33, characters 8-15
Re-raised at Stdlib__Fun.protect in file "fun.ml", line 38, characters 6-52
Called from Dune_file_watcher.add_watch in file
  "src/dune_file_watcher/dune_file_watcher.ml", line 729, characters 13-50
Called from Dune_engine__Fs_memo.Watcher.watch_path in file
  "src/dune_engine/fs_memo.ml", line 69, characters 10-50
Called from Dune_engine__Fs_memo.Watcher.memo_for_watching_via_parent.(fun)
  in file "src/dune_engine/fs_memo.ml", line 130, characters 8-58
Called from Fiber__Scheduler.exec in file "vendor/fiber/src/scheduler.ml",
  line 76, characters 8-11
-> required by
   ("fs_memo_for_watching_via_parent",
   External "/Library/TeX/texbin/latexmk/hg")
-> required by ("which", <opaque>)
-> required by ("which", <opaque>)
-> required by ("<unnamed>", ())
-> required by ("<unnamed>", ())
-> required by
   ("load-dir", In_build_dir "default/test/blackbox-tests/test-cases/cram")
-> required by ("toplevel", ())

I must not crash.  Uncertainty is the mind-killer. Exceptions are the
little-death that brings total obliteration.  I will fully express my cases. 
Execution will pass over me and through me.  And when it has gone past, I
will unwind the stack along its path.  Where the cases are handled there will
be nothing.  Only I will remain.

Metadata

Metadata

Assignees

No one assigned

    Labels

    macosIssues that relate to Dune on macOS

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions