ocaml-doc / doc-ock

(DEPRECATED) Documentation generation for OCaml
ISC License
15 stars 4 forks source link

findlib package broken? #5

Closed dsheets closed 10 years ago

dsheets commented 10 years ago

In utop:

# #require "doc-ock-lib";;
Error: Reference to undefined global `DocOckTypes'

and merlin reports:

Failed to load some packages "doc-ock-lib"

There are other weird things in utop like:

# #show_module DocOckPaths;;
module DocOckPaths :
  sig
    module Identifier : sig  end                                                    
    module rec Path : sig  end
    module Fragment : sig  end
    module Reference : sig  end
  end

Nothing looks particularly wrong with the configuration, though. DocOckTypes is an mli-only module but the command the Makefile is invoking includes the lib directory correctly and the correct files seem to exist and match the digests in the archives.

lpw25 commented 10 years ago

The output from utop is "correct"; show_module does not print the types of nested modules.

lpw25 commented 10 years ago

I forgot that the "-no-alias-deps" flag is needed to prevent OCaml from requiring modules that are only referenced by alias (even if those modules only contain static members). Fixed on master by https://github.com/lpw25/doc-ock-lib/commit/f253d08df4e7464fa698114998a18fd84b174de3.