Skip to content

Code generation creates identifiers starting with invalid charactersΒ #1763

Open
@MightyAlex200

Description

@MightyAlex200

Certain generated variable names start with the username of the account that published the package they're in. If that username begins with an invalid character (i.e. a number), the code generates errors and does not run.
I discovered this while trying to use https://package.elm-lang.org/packages/1602/elm-feather/latest/

From what I can tell this is a problem introduced with the changes in 0.19, because I was using this same package in 0.18 without problems.

This error can be reproduced simply by compiling an Elm program using 1602/elm-feather, but I have a compilable example you can see here: https://github.com/MightyAlex200/Comet/tree/ui-elm-19
Just run make in ui/, then open index.html

Related to #1377 and #710

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