Skip to content

Substitution doesn't handle includes #13

Closed

Activity

  1. dbuenzli commented on Sep 19, 2016

    @dbuenzli
    ContributorAuthor

    This was generated as follows (opkg cache clear asetmap; opkg odoc asetmap -v -v) :

    opkg: [EXEC:55939] ['odoc' 'compile' '-I'
                        '/Users/dbuenzli/.opam/4.03.0/lib/ocaml/' '--pkg'
                        'asetmap' '-o'
                        '/Users/dbuenzli/.opam/4.03.0/var/cache/opkg/cache/asetmap/asetmap.odoc'
                        '/Users/dbuenzli/.opam/4.03.0/lib/asetmap/asetmap.cmti']
    opkg: [227ms] Compiled odoc files of asetmap
    opkg: [EXEC:55940] ['odoc' 'html' '-I'
                        '/Users/dbuenzli/.opam/4.03.0/var/cache/opkg/cache/ocaml/'
                        '-o' '/Users/dbuenzli/.opam/4.03.0/var/cache/opkg/odoc'
                        '/Users/dbuenzli/.opam/4.03.0/var/cache/opkg/cache/asetmap/asetmap.odoc']
    
  2. added
    bug
    on Sep 25, 2016
  3. changed the title [-]Functor arguments seem broken in some cases. [/-] [+]Substitution doesn't handle includes[/+] on Dec 16, 2016
  4. trefis commented on Dec 16, 2016

    @trefis
    Contributor

    The links are set up correctly, it's just that doc-ock fails to expand the S with type elt = Ord.t part because it's naively looking for a type elt declaration in S while elt in this case actually comes from the include Set.S.

  5. trefis commented on Dec 16, 2016

    @trefis
    Contributor

    I applied a semi-fix: instead of failing in the case previously described expansion will now behave as if everything was fine. So we now have an expansion for Make in the example linked, and the links are not broken anymore.

    A proper fix is to modify expansion to handle includes properly, so that in the expansion of Make (and not of S) replace include Set.S by include Set.S with type elt = Ord.t and type t = Set.Make(Ord).t and that in the expansion of the include it replaces type elt by type elt = Ord.t, etc.
    This is however more involved and not strictly necessary for a first/beta release, also I expect it will be easier to do when we rewrite the expansion pass. So I'm leaving this issue open but removing the important label.

  6. added and removed
    bug
    on Jan 3, 2017
  7. added
    bug
    on May 1, 2020
  8. added this to the Replacing ocamldoc milestone on Jun 1, 2020
  9. dbuenzli commented on Feb 28, 2021

    @dbuenzli
    ContributorAuthor

    I'm not sure exactly what was the problem but I suspect this is fixed. At least I can click on Ord here:

    https://b0-system.github.io/odig/doc/asetmap/Asetmap/Set/index.html

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugcross-referencer

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions