Try to fix the #526 documentation issue#607
Open
erikmd wants to merge 4 commits intoocaml-sf:masterfrom
Open
Conversation
Error: `Library "_" is private, it cannot be a dependency of a public library. You need to give "_" a public name.
…nt'ed
(Error: `Library "_" is private, it cannot be a dependency of a public library.
You need to give "_" a public name.)
Now, the only remaining error raised by `make` is:
```
Error: Multiple rules generated for
_build/install/default/lib/learn-ocaml/test_lib/test_lib.cmi:
- src/grader/test_lib/dune:29
- src/grader/dune:41
-> required by _build/default/learn-ocaml.install
-> required by alias install
ppx src/grader-plugins/mutation_test.pp.mli
ppx src/grader-plugins/mutation_test.pp.ml
make: *** [Makefile:13: build] Error
```
Collaborator
Author
|
I was able to push another small commit (similar to the last-but-one). Now, the only remaining error raised by |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Try to Fix #526 (#526 (comment))
Description
Cc @AltGr
I tried solving the
"unknown lib"issue in https://ocaml.org/p/learn-ocaml/1.0.0/doc/Test_lib/index.htmlby adding
(public_name learn-ocaml.test_lib)and(public_name learn-ocaml.report)in thesrc/grader/dunefile.however, this addition recursively required setting several dune stanzas as public libraries (see last commit),
and ultimately, we end up with the following error:
To sum, there were three issues to solve:
learn-ocaml.test_libdoes not seem to be defined currently,despite what is promised at this line:
learn-ocaml/src/grader-plugins/dune
Line 9 in c8174f8
as a result, the published documentation says "undefined lib"
Issue 3:the doc. home page does not mentionMutation_test→ this is now fixed thanks to bd79ffe updating theindex.mldfile.I suspect that the list of all the modules we'd like to document is here:
learn-ocaml/src/grader/test_lib/dune
Lines 21 to 29 in c8174f8
and that it might suffice to tweak these stanzas:
learn-ocaml/src/grader/dune
Lines 11 to 15 in c8174f8
learn-ocaml/src/grader/dune
Lines 60 to 64 in c8174f8
but currently I'm stuck, @AltGr can you take a look?
Checklist
Note to maintainers
Close #…if a related issue exists.