Install codegen/helpers/LocalFile.elm fails on run
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 52/100
- Issue type
- Bug
- Clarity
- Clearly specified
- Activity status
- Stale
- Tech stack
- nodejs
- Domain
- cli
Research direction
Start with elm-codegen run in the linked SSCCE project and inspect the copyHelpers path reported in dist/run.js. Reproduce the ENOENT for generated/codegen/helpers/LocalFile.elm; done means the installed nested helper is available there and elm-codegen run completes without the error.
Written by the indexing model from the issue text.
Description
Overview
Installing a local file inside of a directory fails when run is called.
This follows the pattern in the install help guide:

SSCCE project: https://github.com/absynce/elm-codegen-local-import-error.
Expected behavior
elm-codegen install codegen/helpers/LocalFile.elm creates helper. Then it runs with elm-codegen run.
Actual behavior
elm-codegen install codegen/helpers/LocalFile.elm creates helper. Then it errors with elm-codegen run.
To reproduce inside SSCCE project
elm-codegen run
Error
Error: ENOENT: no such file or directory, open 'generated/codegen/helpers/LocalFile.elm'
Full stacktrace
node:fs:585
handleErrorFromBinding(ctx);
^
Error: ENOENT: no such file or directory, open 'generated/codegen/helpers/LocalFile.elm'
at Object.openSync (node:fs:585:3)
at Object.writeFileSync (node:fs:2155:35)
at _loop_1 (/Users/absynce/.npm/_npx/be14e040090c2b5c/node_modules/elm-codegen/dist/run.js:521:16)
at copyHelpers (/Users/absynce/.npm/_npx/be14e040090c2b5c/node_modules/elm-codegen/dist/run.js:540:9)
at Command.<anonymous> (/Users/absynce/.npm/_npx/be14e040090c2b5c/node_modules/elm-codegen/dist/run.js:706:13)
at step (/Users/absynce/.npm/_npx/be14e040090c2b5c/node_modules/elm-codegen/dist/run.js:71:23)
at Object.next (/Users/absynce/.npm/_npx/be14e040090c2b5c/node_modules/elm-codegen/dist/run.js:52:53)
at /Users/absynce/.npm/_npx/be14e040090c2b5c/node_modules/elm-codegen/dist/run.js:46:71
at new Promise (<anonymous>)
at __awaiter (/Users/absynce/.npm/_npx/be14e040090c2b5c/node_modules/elm-codegen/dist/run.js:42:12) {
errno: -2,
syscall: 'open',
code: 'ENOENT',
path: 'generated/codegen/helpers/LocalFile.elm'
}
System info:
node -v
v16.14.0
elm-codegen -V
0.1.0
- Dominant language
- Elm
- Stars
- 144
- Forks
- 18
- PR merge metrics
- No merged PRs in 30d
Getting set up
This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from mdgriffith/elm-codegen
-
Difficulty 4/5 3-5 days Newbie friendliness 45/100
mdgriffith/elm-codegen#107 ·
-
Difficulty 3/5 1-2 days Newbie friendliness 48/100
mdgriffith/elm-codegen#106 ·
-
Difficulty 4/5 3-5 days Newbie friendliness 42/100
mdgriffith/elm-codegen#90 · 2 comments · 1 reaction ·
-
Difficulty 3/5 1-2 days Newbie friendliness 45/100
mdgriffith/elm-codegen#68 ·
-
Difficulty 4/5 3-5 days Newbie friendliness 35/100
mdgriffith/elm-codegen#60 ·
All issues in mdgriffith/elm-codegen
Similar issues
-
bug difficulty:2 good first issue help wanted
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
MakazhanAlpamys/Soup#1865 ·
Maintainers usually reply within 1 day
-
[Bug]: ocx doctor reports a false history integrity failure when state_5.sqlite is WAL without -shmOpenbug cli
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
onyx-dot-app/onyx#15954 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
msys2/MSYS2-packages#6813 ·
Maintainers usually reply within 1 day
-
opencode on clean macos zsh .export path not working because it append and it fails because no ~/.zshrc filePossibly taken A pull request linked to this issue is open or already merged. Openreproduced
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
anomalyco/opencode#55068 · 1 comment ·
Maintainers usually reply within 1 day