I’m starting to run into really long dune build error msgs. For example:
190 | | Special -> Worker_Msg_Untyped.make ~tag:Tag.Special ~msg:empty ~transfer_list:empty
^^^^^
Error: This expression has type 'a Js.js_array Js.t
but an expression was expected of type
Js.Unsafe.any_js_array = Js.Unsafe.top Js.t
Type
'a Js.js_array =
< concat : 'a Js.js_array Js.t -> 'a Js.js_array Js.t Js.meth;
every : ('a -> int -> 'a Js.js_array Js.t -> bool Js.t)
Js.callback -> bool Js.t Js.meth;
filter : ('a -> int -> 'a Js.js_array Js.t -> bool Js.t)
Js.callback -> 'a Js.js_array Js.t Js.meth;
forEach : ('a -> int -> 'a Js.js_array Js.t -> unit) Js.callback ->
unit Js.meth;
join : Js.js_string Js.t -> Js.js_string Js.t Js.meth;
length : int Js.prop;
map : ('a -> int -> 'a Js.js_array Js.t -> 'a) Js.callback ->
'a Js.js_array Js.t Js.meth;
pop : 'a Js.optdef Js.meth; push : 'a -> int Js.meth;
push_2 : 'a -> 'a -> int Js.meth;
push_3 : 'a -> 'a -> 'a -> int Js.meth;
push_4 : 'a -> 'a -> 'a -> 'a -> int Js.meth;
reduce : ('a -> 'a -> int -> 'a Js.js_array Js.t -> 'a)
Js.callback -> 'a Js.meth;
reduceRight : ('a -> 'a -> int -> 'a Js.js_array Js.t -> 'a)
Js.callback -> 'a Js.meth;
reduceRight_init : 'b.
('b ->
'a -> int -> 'a Js.js_array Js.t -> 'b)
Js.callback -> 'b -> 'b Js.meth;
reduce_init : 'b.
('b -> 'a -> int -> 'a Js.js_array Js.t -> 'b)
Js.callback -> 'b -> 'b Js.meth;
reverse : 'a Js.js_array Js.t Js.meth;
shift : 'a Js.optdef Js.meth;
slice : int -> int -> 'a Js.js_array Js.t Js.meth;
slice_end : int -> 'a Js.js_array Js.t Js.meth;
some : ('a -> int -> 'a Js.js_array Js.t -> bool Js.t)
Js.callback -> bool Js.t Js.meth;
sort : ('a -> 'a -> float) Js.callback ->
'a Js.js_array Js.t Js.meth;
sort_asStrings : 'a Js.js_array Js.t Js.meth;
splice : int -> int -> 'a Js.js_array Js.t Js.meth;
splice_1 : int -> int -> 'a -> 'a Js.js_array Js.t Js.meth;
splice_2 : int -> int -> 'a -> 'a -> 'a Js.js_array Js.t Js.meth;
splice_3 : int ->
int -> 'a -> 'a -> 'a -> 'a Js.js_array Js.t Js.meth;
splice_4 : int ->
int ->
'a -> 'a -> 'a -> 'a -> 'a Js.js_array Js.t Js.meth;
toLocaleString : Js.js_string Js.t Js.meth;
toString : Js.js_string Js.t Js.meth;
unshift : 'a -> int Js.meth;
unshift_2 : 'a -> 'a -> int Js.meth;
unshift_3 : 'a -> 'a -> 'a -> int Js.meth;
unshift_4 : 'a -> 'a -> 'a -> 'a -> int Js.meth >
is not compatible with type Js.Unsafe.top
dune build -w
only show the bottom lines, not the top lines, and there appears to be no way to scroll.
As a result, I end up killing dune build-w
running dune build
to see error msg, then maknig change, then manually rerunning dune build
.
Question: is there some way to have dune build -w
have a pager of some form? Some errors involving js_of_ocaml bindings get really long due to the member JS methods.