this repo has no description
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Fix OCaml 5.4 compatibility across the monorepo

- Rename `effect` variable to `eff` in editor.ml (reserved keyword in 5.4)
- Add `first_crc` cppo-guarded helper for cmi_crcs API difference
(Import_info.t array in oxcaml vs (string * Digest.t option) list in 5.4)
- Remove `source_rendering` from dune-workspace (not in upstream dune/odoc)

All extension packages, tessera, zarr, and odoc now build with both
oxcaml 5.2.0+ox and standard OCaml 5.4.1. The js_top_worker library
compiles on both; linking requires matching merlin-lib.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

+4 -4
+4 -4
src/editor.ml
··· 75 75 76 76 let refresh_messages ed = 77 77 let range_set = build_range_set ed in 78 - let effect = 78 + let eff = 79 79 Code_mirror.State_effect.of_ set_messages_effect 80 80 (Code_mirror.Decoration.Range_set.to_jv range_set) 81 81 in 82 82 let txn = 83 - Jv.obj [| ("effects", effect) |] 83 + Jv.obj [| ("effects", eff) |] 84 84 |> Code_mirror.Editor.View.Transaction.of_jv 85 85 in 86 86 try Code_mirror.Editor.View.dispatch ed.view txn with _ -> () ··· 211 211 ("to", Jv.of_int doc_len); 212 212 ("insert", Jv.of_jstr (Jstr.of_string doc)) |] 213 213 in 214 - let effect = 214 + let eff = 215 215 Code_mirror.State_effect.of_ set_messages_effect 216 216 (Code_mirror.Decoration.Range_set.to_jv 217 217 (Code_mirror.Decoration.Range_set.empty)) 218 218 in 219 219 let txn = 220 - Jv.obj [| ("changes", changes); ("effects", effect) |] 220 + Jv.obj [| ("changes", changes); ("effects", eff) |] 221 221 |> Code_mirror.Editor.View.Transaction.of_jv 222 222 in 223 223 Code_mirror.Editor.View.dispatch t.view txn;