Skip to content

dune (with melange) in Windows causes a crash #11645

@davesnx

Description

@davesnx

It seems like dune (with melange) in Windows causes a crash.

Internal error, please report upstream including the contents of _build/log.
Description:
  ("Path.drop_prefix_exn",
   { t =
       External
         "D:\\a\\query-json\\query-json\\_opam\\lib\\melange-webapi\\Webapi"
   ; prefix =
       External "D:\\a\\query-json\\query-json\\_opam\\lib\\melange-webapi"
   })
Raised at Stdune__Code_error.raise in file
  "otherlibs/stdune/src\\code_error.ml", line 10, characters 30-62
Called from Dune_rules__Melange_rules.lib_output_path in file
  "src/dune_rules\\melange\\melange_rules.ml" (inlined), line [25](https://github.com/davesnx/query-json/actions/runs/14620157464/job/41017829977?pr=40#step:8:26), characters
  8-48
Called from Dune_rules__Melange_rules.make_js_name in file
  "src/dune_rules\\melange\\melange_rules.ml", line 35, characters 21-65
Called from Dune_rules__Melange_rules.js_targets_of_libs.(fun).of_lib.(fun)
  in file "src/dune_rules\\melange\\melange_rules.ml", line 174, characters
  54-84
Called from Stdlib__List.rev_map.rmap_f in file "list.ml", line 105,
  characters 22-25
Called from Fiber__Core.O.(>>|).(fun) in file "vendor/fiber/src\\core.ml",
  line 253, characters [36](https://github.com/davesnx/query-json/actions/runs/14620157464/job/41017829977?pr=40#step:8:37)-41
Called from Fiber__Scheduler.exec in file "vendor/fiber/src\\scheduler.ml",
  line 76, characters 8-11
-> required by ("<unnamed>", ())
-> required by
   ("build-alias", { dir = In_build_dir "default/website"; name = "all" })
-> required by ("toplevel", ())

Not a great repro, but here's the crash: https://github.com/davesnx/query-json/actions/runs/14620157464/job/41017829977?pr=40#step:8:23

Metadata

Metadata

Assignees

No one assigned

    Labels

    melangeMelange rules and generatorwindowsIssues that relate to Dune on Microsoft Windows

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions