Tensegritics / Tensegritics/ClojureDart
Watch process crashing on file change
Nobody has claimed this yet.
- Dominant language
- Clojure
- Stars
- 1.6k
- Forks
- 119
- PR merge metrics
- No merged PRs in 30d
Description
I run the watch command from the tutorial:
clj -M -m cljd.build flutter
Platform: MacOS 11.6
Java: openjdk 17.0.1 2021-10-19 LTS
Clojure CLI version: 1.11.1.1107
Then after any changes to .cljd file I got the process crash:
{:clojure.main/message
"Execution error (IOException) at java.lang.ProcessBuilder$NullOutputStream/write (ProcessBuilder.java:442).\nStream closed\n",
:clojure.main/triage
{:clojure.error/class java.io.IOException,
:clojure.error/line 442,
:clojure.error/cause "Stream closed",
:clojure.error/symbol
java.lang.ProcessBuilder$NullOutputStream/write,
:clojure.error/source "ProcessBuilder.java",
:clojure.error/phase :execution},
:clojure.main/trace
{:via
[{:type java.io.IOException,
:message "Stream closed",
:at
[java.lang.ProcessBuilder$NullOutputStream
write
"ProcessBuilder.java"
442]}],
:trace
[[java.lang.ProcessBuilder$NullOutputStream
write
"ProcessBuilder.java"
442]
[java.io.OutputStream write "OutputStream.java" 157]
[java.io.BufferedOutputStream
flushBuffer
"BufferedOutputStream.java"
81]
[java.io.BufferedOutputStream flush "BufferedOutputStream.java" 142]
[sun.nio.cs.StreamEncoder implFlush "StreamEncoder.java" 318]
[sun.nio.cs.StreamEncoder flush "StreamEncoder.java" 153]
[java.io.OutputStreamWriter flush "OutputStreamWriter.java" 251]
[cljd.build$compile_cli$compile_files__6707$fn__6708
invoke
"build.clj"
218]
[cljd.build$watch_dirs invokeStatic "build.clj" 56]
[cljd.build$watch_dirs invoke "build.clj" 24]
[cljd.build$compile_cli invokeStatic "build.clj" 236]
[cljd.build$compile_cli doInvoke "build.clj" 175]
[clojure.lang.RestFn invoke "RestFn.java" 457]
[cljd.build$_main invokeStatic "build.clj" 373]
[cljd.build$_main doInvoke "build.clj" 346]
[clojure.lang.RestFn applyTo "RestFn.java" 137]
[clojure.lang.Var applyTo "Var.java" 705]
[clojure.core$apply invokeStatic "core.clj" 665]
[clojure.main$main_opt invokeStatic "main.clj" 514]
[clojure.main$main_opt invoke "main.clj" 510]
[clojure.main$main invokeStatic "main.clj" 664]
[clojure.main$main doInvoke "main.clj" 616]
[clojure.lang.RestFn applyTo "RestFn.java" 137]
[clojure.lang.Var applyTo "Var.java" 705]
[clojure.main main "main.java" 40]],
:cause "Stream closed"}}
Contributor guide
No contributing guide indexed for this repository
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.
Research direction
Reproduce the failure with clj -M -m cljd.build flutter on a project containing a .cljd file, then inspect build.clj at the compile_cli and watch_dirs locations shown in the trace, especially line 218. Done means the watch process remains running and handles a .cljd file change without the reported Stream closed crash.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- dart, flutter
- Domain
- build-system, cli
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100