[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Problem with generating sedlex doc with ocamldoc



Hi,

I'm updating the sedlex package and got stuck with an error with dh_ocamldoc.
I'm not familiar with ocamldoc + the ppx system (which is adopted by sedlex in the recent version), so I would like to have some help.

I tried to call ocamldoc manually with an existing sedlex 2.1 installation (installed by `opam install sedlex`):

ocamlfind ocamldoc -sort \
\
-I ~/.opam/default/lib/sedlex  \
-I ~/.opam/default/lib/sedlex/ppx \
\
-package gen \
-package compiler-libs \
-package ocaml-migrate-parsetree \
-package ppx_tools_versioned \
-ppx "ocamlfind ppx_tools_versioned/metaquot_405/ppx.exe --as-ppx" \
\
~/.opam/default/lib/sedlex/ppx/sedlex_cset.mli \
~/.opam/default/lib/sedlex/ppx/ppx_sedlex.ml \
~/.opam/default/lib/sedlex/ppx/sedlex.mli \
~/.opam/default/lib/sedlex/ppx/sedlex_ppx.ml \
~/.opam/default/lib/sedlex/ppx/unicode.mli \
~/.opam/default/lib/sedlex/sedlexing.mli \
\
-html -stars -m A

output:

File "/home/andy/.opam/default/lib/sedlex/ppx/ppx_sedlex.ml", line 17, characters 14-25:
17 | module Cset = Sedlex_cset
                   ^^^^^^^^^^^
Error: Unbound module Sedlex_cset
File "/home/andy/.opam/default/lib/sedlex/ppx/sedlex.mli", line 7, characters 11-24:
7 | val chars: Sedlex_cset.t -> regexp
               ^^^^^^^^^^^^^
Error: Unbound module Sedlex_cset
File "/home/andy/.opam/default/lib/sedlex/ppx/unicode.mli", line 7, characters 11-24:
7 |   val cc : Sedlex_cset.t
               ^^^^^^^^^^^^^
Error: Unbound module Sedlex_cset
Warning: Module or module type Sedlex_ppx__Unicode not found
Warning: Module or module type Sedlex_ppx__Sedlex_cset not found
Warning: Module or module type Sedlex_ppx__Sedlex not found
Warning: Module or module type Sedlex_ppx__Ppx_sedlex not found
Warning: Module or module type Sedlex_ppx__Unicode not found
Warning: Module or module type Sedlex_ppx__Sedlex_cset not found
Warning: Module or module type Sedlex_ppx__Sedlex not found
Warning: Module or module type Sedlex_ppx__Ppx_sedlex not found
Warning: Element Uchar.t not found
Warning: Element Lexing.pos_fname not found
Warning: Element Lexing.position not found
Warning: Tag @canonical not handled by this generator
Warning: Tag @canonical not handled by this generator
Warning: Tag @canonical not handled by this generator
Warning: Tag @canonical not handled by this generator
3 error(s) encountered

I can't get rid of the "Unbound module Sedlex_cset" error.
Notice that "sedlex_cset.mli" was in the search path "~/.opam/default/lib/sedlex/ppx" already.
Any help is appreciated.

Best,
Andy

Reply to: