Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

elm.codegen.json local codegen-helpers requires src\\ on Windows #68

Open
tankorsmash opened this issue Aug 3, 2023 · 0 comments
Open

Comments

@tankorsmash
Copy link

Thank you for the library!

Likely related to #59, the docs show src/ as a way to include all your src folder. If I do this on Windows, elm-codegen runs without error, but doesn't actually generate any files.

image


However, if I've got a file in src called Foo.elm, 'local': [ 'src/Foo.elm' ] successfully generates Gen/Foo.elm.

In order for me to get all my src files generated, I need to use two backslashes:

{
    "elm-codegen-version": "0.5.0",
    "codegen-helpers": {
        "packages": {
            "elm/core": "1.0.5"
        },
        "local": [
            "src\\"
        ]
    }
}

Which works after a short processing delay. Note the backslash too.

image

Thanks again for the library!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant