jfeser / odoc2docset

Create Dash docsets from Odoc generated documentation.
MIT License
22 stars 3 forks source link

missing library odoc.odoc #5

Closed clembu closed 5 years ago

clembu commented 5 years ago

pinned odoc to your fork, pinned odoc2docset to this repo. got this:

#=== ERROR while compiling odoc2docset.1.2.1 ==================================#
# context     2.0.3 | linux/x86_64 | ocaml-base-compiler.4.07.1 | pinned(git+https://github.com/jfeser/odoc2docset.git#7fc67711)
# path        ~/.opam/default/.opam-switch/build/odoc2docset.1.2.1
# command     ~/.opam/opam-init/hooks/sandbox.sh build dune build -p odoc2docset -j 15
# exit-code   1
# env-file    ~/.opam/log/odoc2docset-23425-d2d111.env
# output-file ~/.opam/log/odoc2docset-23425-d2d111.out
### output ###
# File "bin/dune", line 4, characters 24-33:
# 4 |  (libraries sqlite3 bos odoc.odoc odoc.model odoc.html lambdasoup logs logs.fmt logs.cli fmt.cli fmt.tty base stdio cmdliner))
#                             ^^^^^^^^^
# Error: Library "odoc.odoc" not found.
# Hint: try: dune external-lib-deps --missing -j 15 -p odoc2docset @@default
jfeser commented 5 years ago

odoc now exposes these internal libraries (since 1.4?). You don't need to pin my fork anymore. odoc2docset should work with the released version of odoc. I've updated the readme.

clembu commented 5 years ago

without the pin, and odoc 1.4.1 installed, I get this:

<><> Synchronising pinned packages ><><><><><><><><><><><><><><><><><><><><><><>
[odoc2docset.1.2.1] no changes from git+https://github.com/jfeser/odoc2docset.git

The following actions will be performed:
  ∗ install odoc2docset 1.2.1*

<><> Processing actions <><><><><><><><><><><><><><><><><><><><><><><><><><><><>
[ERROR] The compilation of odoc2docset failed at "/home/odd/.opam/opam-init/hooks/sandbox.sh build dune build -p odoc2docset -j 15".

#=== ERROR while compiling odoc2docset.1.2.1 ==================================#
# context     2.0.3 | linux/x86_64 | ocaml-base-compiler.4.07.1 | pinned(git+https://github.com/jfeser/odoc2docset.git#a886db70)
# path        ~/.opam/default/.opam-switch/build/odoc2docset.1.2.1
# command     ~/.opam/opam-init/hooks/sandbox.sh build dune build -p odoc2docset -j 15
# exit-code   1
# env-file    ~/.opam/log/odoc2docset-6282-d2d111.env
# output-file ~/.opam/log/odoc2docset-6282-d2d111.out
### output ###
#       ocamlc bin/.main.eobjs/byte/main.{cmi,cmo,cmt} (exit 2)
# (cd _build/default && /home/odd/.opam/default/bin/ocamlc.opt -w -40 -g -bin-annot -I bin/.main.eobjs/byte -I /home/odd/.opam/default/lib/astring -I /home/odd/.opam/default/lib/base -I /home/odd/.opam/default/lib/base/caml -I /home/odd/.opam/default/lib/base/shadow_stdlib -I /home/odd/.opam/default/lib/bos -I /home/odd/.opam/default/lib/bytes -I /home/odd/.opam/default/lib/cmdliner -I /home/od[...]
# File "bin/main.ml", line 119, characters 11-39:
# Error: The module Model is an alias for module Odoc__model, which is missing

No idea what is going on here