Skip to content

--docs flag does not work on elm/* packages with cross-package kernel imports #2123

Open

Description

@harrysarson
  • This is a regression report from elm 0.19.0 to 0.19.1.

  • When I run elm-0.19.0 make --docs=documentation.json in a kernel package it successfully generates the docs and exits with 0 code.

  • When I run elm-0.19.1 make --docs=documentation.json in 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:

  1. git clone https://github.com/elm-explorations/test
  2. cd test
  3. elm-0.19.0 make --docs=documentation.json
  4. elm-0.19.1 make --docs=documentation.json

Related elm-explorations/test#145 (comment)

Activity

  1. github-actions commented on Jul 1, 2020

    @github-actions

    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.

  2. changed the title [-]compiler incorrectly rejects kernel imports from other packages[/-] [+]--docs flag does not work on elm/* packages with cross-package kernel imports[/+] on Feb 9, 2021
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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions