That looks like you were running dgt sources?
That could only happen if there were no sources at all, which is a bug I can correct before the final release.
That looks like you were running dgt sources?
That could only happen if there were no sources at all, which is a bug I can correct before the final release.
Did you create the dialog.edn file before copying/moving all the sources over?
(defcommand sources
"Print the sources for the project in compilation order."
[debug? debug-opt
target (cli/select-option "-T" "--target TARGET"
"Output target:"
(conj basic-targets :dgdebug))
test? ["-t" "--test" "Include test sources"]
one? ["-1" "--single-line" "Output as a single line, colon-separated"]]
(let [project (pf/read-project)
paths (pf/expand-sources project {:debug? debug?
:test? test?
:target target})]
(if one?
(println (string/join ":" paths))
(let [longest (apply max (map count paths))]
(doseq [path paths]
(pout [{:font :cyan
:width longest} path]))))))
expand-sources only includes files that actually exist, and the (apply max ...) will fail if paths is empty.
Can you ls -lR your work directory?
I was using dgt sources, yeah. That seemed like the easiest way to test if the .edn file was right without actually compiling anything.
The relevant bit:
./src:
total 140
-rw-rw-r-- 1 daniel daniel 16791 Jul 5 19:20 act1.dg
-rw-rw-r-- 1 daniel daniel 25713 Jul 5 18:40 actions.dg
-rw-rw-r-- 1 daniel daniel 14947 Jul 5 19:16 automap.dg
-rw-rw-r-- 1 daniel daniel 171 Jul 5 16:20 draclib.dg
-rw-rw-r-- 1 daniel daniel 2123 Jul 5 17:36 interface.dg
-rw-rw-r-- 1 daniel daniel 37027 Jul 5 17:29 parser.dg
-rw-rw-r-- 1 daniel daniel 26674 Jul 5 17:37 worldmodel.dg
Maybe it’s getting the wrong working directory somehow?
Well, it only reads dialog.edn from ., so if you got as far as a crash, you’re in the right directory. Care to privately share your repo so I can try it? I’m worried it’s some kind of OS X vs. Linux issue, rather than a bug (beyond the apply max issue).
Sure thing. I’ve sent you an invite.
$ dgt sources
src/act1.dg
src/actions.dg
src/interface.dg
src/automap.dg
src/draclib.dg
src/parser.dg
src/worldmodel.dg
$
I should be able to test my Linux vs. OS X theory with a Docker container. But not this week, I’m afraid.
Hmmm. Then either Clojure is doing something weird across platforms or I messed up the installation. I’ll try installing from the .deb again and see if anything went wrong.
$ dgt sources
src/act1.dg
src/actions.dg
src/interface.dg
src/automap.dg
src/draclib.dg
src/parser.dg
src/worldmodel.dg
What changed? I have no idea! I don’t think I’ve changed the .edn file, and I also don’t think I’ve changed where the src/ directory is. But apparently something is different now…maybe I accidentally put dialog.edn in the src/ directory at first or something like that.
Ok, that’s a relief!
I was just releasing a rc-4 with some extra debug output to help diagnose this.
How does the rest run (skein, etc.?)
Hitting “quit” inside the Skein interface throws an error in the console:
<<< error <<<
Root: -
Root stack trace:
java.util.concurrent.CompletableFuture/timedGet at :-1
java.util.concurrent.CompletableFuture/get at :-1
org.eclipse.jetty.server.Server/doStop at Server.java:711
org.eclipse.jetty.util.component.AbstractLifeCycle/stop at AbstractLifeCycle.java:131
ring.adapter.jetty9$stop_server/invokeStatic at jetty9.clj:317
ring.adapter.jetty9$stop_server/invoke at jetty9.clj:315
hyper.server$_do_stop/invokeStatic at server.clj:1330
hyper.server$_do_stop/invoke at server.clj:1304
clojure.core$partial$fn__5931/invoke at core.clj:2651
hyper.server$stop_BANG_/invokeStatic at server.clj:1386
hyper.server$stop_BANG_/invoke at server.clj:1382
hyper.core$stop_BANG_/invokeStatic at core.clj:956
hyper.core$stop_BANG_/invoke at core.clj:951
dialog_tool.skein.service$start_BANG_$shutdown_fn__31104/invoke at service.clj:113
dialog_tool.skein.ui.common$quit/invokeStatic at common.clj:39
dialog_tool.skein.ui.common$quit/invoke at common.clj:34
dialog_tool.skein.ui.actions$quit/invokeStatic at actions.clj:276
dialog_tool.skein.ui.actions$quit/invoke at actions.clj:270
dialog_tool.skein.ui.app$navbar$action_fn__29609__auto____30517/invoke at app.clj:191
[...]
But apart from that the Skein seems to be working too!
Well, after a quick 5+ years, several levels of rewrite (Joker → Babashka → Clojure; Svelte 4 → Svelte 5 → Datastar → Datastar+alpha) and centered around the creation of The Skein …
Dialog Tool 2.0 is HERE
Follow this link for installation instructions.
You might ask, what’s next?
I think from here, it’s more modest changes. We’ve discussed a way to label knots and find knots with specific labels … in the context, of marking some output or project behavior as provisional. We might see better integration of the Skein with unit tests. We’re thinking about how resuable libraries may be distributed and integrated into existing projects. I’m sure there are ways the UI can be improved further.
All that aside, what’s in 2.0 is very solid and ready for real use.
If you are a Dialog author, I think you owe it to yourself to give Dialog Tool a try, the features it already has will, I strongly believe, radically improve the process of creating, testing, maintaining, and extending Dialog projects.
Sorry about that; I’ll see what I can do in 2.0.1.
It’s not a big deal in this case, because the line number is all I really need; but hopefully it shouldn’t be a hard fix either.
I admit that in Draconis’s screenshot the white-on-light yellow is hard to read, but in general, I think that yellow for compiler’s warning and red for errors, is the “natural” way of reporting compiler’s reporting in an IDE editor.
But, at least in Italy, traffic light’s “yellow” is actually a orange, a darker color which can contrast well with IDE’s lighter color of characters.
But, in an coder’s environment, IDE’s palette setup is a major flame-igniter, since the days of the Roman State (“de gustibus et coloribus non disputandum est”) so I’ll stop here.
Last thing: In Italy, “traffic light” are called “semaforo”, which is a well-known false friend with the english “semaphore”; and a traveller’s warning: in central and southern Italy, traffic lights are too often ignored, so the utmost caution must be always exercised in crossing road and dealing with road junctions…
Best regards from Italy,
dott. Piergiorgio.
Does the Skein work on Windows yet?
In theory, yes, but I don’t have a machine to test it on. I might be able to set something up soon on my new Mac using CrossOver.
It still doesn’t work on Windows, but in a new way this time:
2026-07-20T14:11:51.477135700Z WARN LOG NEW-UVO0PEU8E4G hyper.context[235,5] :hyper.warn/effect-in-render Effect during render: cursor-mutation (swap! [:global :session]). Render functions must be pure ? move effects (cursor writes, watch!, workers) into a form-2 setup closure or a form-3 :mount.
data: {:kind :cursor-mutation, :detail "swap! [:global :session]"}
ctx: {:hyper/session-id "ses_eam9g2e38rhwqah6tweym3x7sh", :hyper/tab-id "tab_ce682e6t18j62b8e335d9pj4tm"}
action: initial-load
Exception in thread "skein process output reader" java.lang.StringIndexOutOfBoundsException: Range [2, 0) out of bounds for length 0
at java.base/jdk.internal.util.Preconditions$1.apply(Preconditions.java:55)
at java.base/jdk.internal.util.Preconditions$1.apply(Preconditions.java:52)
at java.base/jdk.internal.util.Preconditions$4.apply(Preconditions.java:213)
at java.base/jdk.internal.util.Preconditions$4.apply(Preconditions.java:210)
at java.base/jdk.internal.util.Preconditions.outOfBounds(Preconditions.java:98)
at java.base/jdk.internal.util.Preconditions.outOfBoundsCheckFromToIndex(Preconditions.java:112)
at java.base/jdk.internal.util.Preconditions.checkFromToIndex(Preconditions.java:349)
at java.base/java.lang.String.checkBoundsBeginEnd(String.java:4937)
at java.base/java.lang.String.substring(String.java:2899)
at java.base/java.lang.String.substring(String.java:2872)
at clojure.core$subs.invokeStatic(core.clj:5043)
at clojure.core$subs.invoke(core.clj:5038)
at dialog_tool.skein.process$gen_parse_tagged_lines$fn__12112$fn__12115.invoke(process.clj:77)
at clojure.core$mapv$fn__8569.invoke(core.clj:7063)
at clojure.lang.ArrayChunk.reduce(ArrayChunk.java:65)
at clojure.core.protocols$fn__8274.invokeStatic(protocols.clj:135)
at clojure.core.protocols$fn__8274.invoke(protocols.clj:123)
at clojure.core.protocols$fn__8233$G__8228__8242.invoke(protocols.clj:19)
at clojure.core.protocols$seq_reduce.invokeStatic(protocols.clj:31)
at clojure.core.protocols$fn__8266.invokeStatic(protocols.clj:74)
at clojure.core.protocols$fn__8266.invoke(protocols.clj:74)
at clojure.core.protocols$fn__8207$G__8202__8220.invoke(protocols.clj:13)
at clojure.core$reduce.invokeStatic(core.clj:6969)
at clojure.core$mapv.invokeStatic(core.clj:7054)
at clojure.core$mapv.invoke(core.clj:7054)
at dialog_tool.skein.process$gen_parse_tagged_lines$fn__12112.invoke(process.clj:77)
at dialog_tool.skein.process$read_loop.invokeStatic(process.clj:115)
at dialog_tool.skein.process$read_loop.invoke(process.clj:98)
at dialog_tool.skein.process$start_BANG_$fn__12134.invoke(process.clj:159)
at clojure.lang.AFn.run(AFn.java:22)
at java.base/java.lang.Thread.run(Thread.java:1474)
Edit: that’s after running it manually with java --enable-native-access=ALL-UNNAMED --class-path dialog-tool-2.0.jar clojure.main -m dialog-tool.main skein new. I tried the MSI installer but it didn’t add dgt to the PATH and trying to invoke it using the absolute path (C:\Program Files\dgt\dgt.exe) just terminated immediately with no output.
A few more comments:
“Insert parent” doesn’t work. I see in the console:
action: insert-parent 1784680158251
action: insert-parent:submit 1784680158251
But no new parent has appeared in the tree. This is a problem when I inserted a “wait for any key” near the beginning of the game; I have to go in and edit the Skein file by hand.
Pressing enter after typing a new command only works about 50% of the time. The other 50% of the time, nothing happens; I have to double-click the most recent node, which clears the text box, and then I can re-type and re-submit my command.
The scissors icon in the toolbar has no tooltip.
Hitting the “shut down” button still produces a crash log in the console.
Hmm. Manually adding nodes into the Skein doesn’t seem to work either. I did that last night, did a few more sessions of skein debugging (involving multiple separate invocations of dgt skein run), everything seemed fine. Today half my Skein is gone, with this message in the console:
action: seek-error
action: delete 1784680158254
I didn’t do any manual editing between the last session and this one; I don’t know what suddenly made it delete everything.
I think I have to switch back to using diff or meld for regression tests. I can’t afford to have this happen again so close to the IFComp deadline.