Title: pslua does not create the parent directory of --lua-output-file · Issue #61 · purescript-lua/purescript-lua · GitHub
Open Graph Title: pslua does not create the parent directory of --lua-output-file · Issue #61 · purescript-lua/purescript-lua
X Title: pslua does not create the parent directory of --lua-output-file · Issue #61 · purescript-lua/purescript-lua
Description: pslua opens the output file via withFile WriteMode (exe/Main.hs) without creating its parent directory. If --lua-output-file dist/X.lua is passed and dist/ does not exist, it aborts with withFile: does not exist (No such file or director...
Open Graph Description: pslua opens the output file via withFile WriteMode (exe/Main.hs) without creating its parent directory. If --lua-output-file dist/X.lua is passed and dist/ does not exist, it aborts with withFile: ...
X Description: pslua opens the output file via withFile WriteMode (exe/Main.hs) without creating its parent directory. If --lua-output-file dist/X.lua is passed and dist/ does not exist, it aborts with withFile: ...
Opengraph URL: https://github.com/purescript-lua/purescript-lua/issues/61
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"pslua does not create the parent directory of --lua-output-file","articleBody":"pslua opens the output file via `withFile WriteMode` (exe/Main.hs) without creating its parent directory. If `--lua-output-file dist/X.lua` is passed and `dist/` does not exist, it aborts with `withFile: does not exist (No such file or directory)`.\n\nSurfaced in purescript-lua-assert, whose `scripts/build` writes into a gitignored/absent `dist/` (worked around there with `mkdir -p dist`; see #59). Hardening pslua to `createDirectoryIfMissing True (takeDirectory out)` would remove a sharp edge every fork's build script otherwise has to handle.\n\nLow severity, trivial fix.","author":{"url":"https://github.com/Unisay","@type":"Person","name":"Unisay"},"datePublished":"2026-06-14T08:40:11Z","url":"https://github.com/purescript-lua/purescript-lua/issues/61"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:75020c0e-8e90-717c-d8b0-6752dfbece32 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | DFA2:2564F:7E1850:A8C6A4:6B00DB63 |
| html-safe-nonce | 5e6093cd0a0c3d80c8af79086b7dccb6f098206639d35c0e1060ff4de12a27ee |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJERkEyOjI1NjRGOjdFMTg1MDpBOEM2QTQ6NkIwMERCNjMiLCJ2aXNpdG9yX2lkIjoiNDEzMjYyNzgwNzU2ODE5MDMwNyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | e465cf7a29bae406ee48efaad7d21eeede5e5ec861af43ffb71d4fdc1d1a3f96 |
| hovercard-subject-tag | issue:4658468844 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/purescript-lua/purescript-lua/61/issue_layout |
| twitter:image | https://opengraph.githubassets.com/e11da870483bfabc3801c34efcd388baab51ec79cba36a3023c365cbf2d90000/purescript-lua/purescript-lua/issues/61 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/e11da870483bfabc3801c34efcd388baab51ec79cba36a3023c365cbf2d90000/purescript-lua/purescript-lua/issues/61 |
| og:image:alt | pslua opens the output file via withFile WriteMode (exe/Main.hs) without creating its parent directory. If --lua-output-file dist/X.lua is passed and dist/ does not exist, it aborts with withFile: ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | Unisay |
| hostname | github.com |
| expected-hostname | github.com |
| None | 043c3f30fbcbe2c6c8e729e10cbbbc90c406546f9fbbb67c648d38f6b7d16daf |
| turbo-cache-control | no-preview |
| go-import | github.com/purescript-lua/purescript-lua git https://github.com/purescript-lua/purescript-lua.git |
| octolytics-dimension-user_id | 131581790 |
| octolytics-dimension-user_login | purescript-lua |
| octolytics-dimension-repository_id | 587200487 |
| octolytics-dimension-repository_nwo | purescript-lua/purescript-lua |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 587200487 |
| octolytics-dimension-repository_network_root_nwo | purescript-lua/purescript-lua |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 5425dc24e8bd8d6fca9641a12afc984825a43875 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width