compiler
compiler copied to clipboard
--docs flag does not work on elm/* packages with cross-package kernel imports
-
This is a regression report from elm 0.19.0 to 0.19.1.
-
When I run
elm-0.19.0 make --docs=documentation.jsonin a kernel package it successfully generates the docs and exits with 0 code. -
When I run
elm-0.19.1 make --docs=documentation.jsonin the same package it produces the following error and exits with code 1.Detected problems in 1 module. -- MODULE NOT FOUND -------------------------------------- src/Test/Internal.elm You are trying to import a `Elm.Kernel.Debug` module: 3| import Elm.Kernel.Debug ^^^^^^^^^^^^^^^^ I checked the "dependencies" and "source-directories" listed in your elm.json, but I cannot find it! Maybe it is a typo for one of these names? Elm.Kernel.Test Elm.Kernel.HtmlAsJson Html.Keyed Json.Encode Hint: If it is not a typo, check the "dependencies" and "source-directories" of your elm.json to make sure all the packages you need are listed there!
To reproduce:
git clone https://github.com/elm-explorations/testcd testelm-0.19.0 make --docs=documentation.jsonelm-0.19.1 make --docs=documentation.json
Related https://github.com/elm-explorations/test/pull/145#issuecomment-652281979
Thanks for reporting this! To set expectations:
- Issues are reviewed in batches, so it can take some time to get a response.
- Ask questions a community forum. You will get an answer quicker that way!
- If you experience something similar, open a new issue. We like duplicates.
Finally, please be patient with the core team. They are trying their best with limited resources.