Skip to content

Commit c65ec73

Browse files
committed
Updating ClojureScriptStorm to 1.12.134-3
1 parent e98b790 commit c65ec73

File tree

3 files changed

+41
-22
lines changed

3 files changed

+41
-22
lines changed

Readme.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ ClojureStorm latest stable releases :
3636
ClojureScriptStorm latest stable releases :
3737

3838
- ClojureScript 1.12.116
39-
- `[com.github.flow-storm/clojurescript "1.12.134-2"]`
39+
- `[com.github.flow-storm/clojurescript "1.12.134-3"]`
4040
- ClojureScript 1.11.132
4141
- `[com.github.flow-storm/clojurescript "1.11.132-9"]`
4242

docs/user_guide.adoc

Lines changed: 15 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -284,7 +284,7 @@ Then, modify your `deps.edn` dev profile to look like this :
284284
:extra-deps {thheller/shadow-cljs {:mvn/version "3.3.4"
285285
:exclusions [org.clojure/clojurescript]}
286286
;; bring ClojureScriptStorm
287-
com.github.flow-storm/clojurescript {:mvn/version "1.12.134-2"}
287+
com.github.flow-storm/clojurescript {:mvn/version "1.12.134-3"}
288288
;; add FlowStorm runtime dep
289289
com.github.flow-storm/flow-storm-inst {:mvn/version "4.5.9"}}}}}
290290
----
@@ -330,21 +330,18 @@ still make that work by wrapping the expression on a fn and immediately calling
330330

331331
You can use _FlowStorm_ and _ClojureScriptStorm_ with cljs.main.
332332

333-
To compile instrumented files :
333+
The easiest way to try it is just by starting a repl, like this :
334334

335335
[%nowrap,bash]
336336
----
337-
clj -J-Dcljs.storm.instrumentOnlyPrefixes=org.foo -J-Dcljs.storm.instrumentEnable=true -Sdeps '{:paths ["src"] :deps {com.github.flow-storm/clojurescript {:mvn/version "1.12.134-2"} com.github.flow-storm/flow-storm-inst {:mvn/version "4.5.9"}}}' -M -m cljs.main -co '{:preloads [flow-storm.storm-preload] :main org.foo.core}' --compile
337+
clj -Sforce -J-Dcljs.storm.instrumentOnlyPrefixes=cljs.user -Sdeps '{:deps {com.github.flow-storm/clojurescript {:mvn/version "1.12.134-3"} com.github.flow-storm/flow-storm-inst {:mvn/version "4.5.9"}}}' -M -m cljs.main -co '{:preloads [flow-storm.storm-preload]}' --repl
338338
----
339339

340-
To run a repl that instrument everything under org.foo :
340+
If you run the command above you are running cljs.main --repl which will start a ClojureScript repl on
341+
your terminal and open a browser connected to it. You runtime will also start with FlowStorm preloaded and everything under `cljs.user`
342+
is going to be instrumented.
341343

342-
[%nowrap,bash]
343-
----
344-
clj -J-Dcljs.storm.instrumentOnlyPrefixes=org.foo -J-Dcljs.storm.instrumentEnable=true -Sdeps '{:paths ["src"] :deps {com.github.flow-storm/clojurescript {:mvn/version "1.12.134-2"} com.github.flow-storm/flow-storm-inst {:mvn/version "4.5.9"}}}' -M -m cljs.main -co '{:preloads [flow-storm.storm-preload] :main org.foo.core}' --repl
345-
----
346-
347-
Then run the _FlowStorm_ UI :
344+
Then on a different terminal run the _FlowStorm_ UI :
348345

349346
[%nowrap,bash]
350347
----
@@ -353,6 +350,14 @@ clj -Sforce -Sdeps '{:deps {com.github.flow-storm/flow-storm-dbg {:mvn/version "
353350

354351
And now refresh your browser page so your browser app connects to the UI.
355352

353+
[NOTE]
354+
.Limitations
355+
====
356+
There are some small limitations like not being able to modify instrumentation from the UI without restarting the repl.
357+
This is because the _FlowStorm_ UI needs to also connect via nrepl to JVM process running the compiler, which isn't available
358+
when running cljs.main.
359+
====
360+
356361
=== ClojureScript vanilla FlowStorm
357362

358363
Let's say you are using https://github.com/thheller/shadow-cljs[shadow-cljs] to start a ClojureScript repl.

docs/user_guide.html

Lines changed: 25 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1262,7 +1262,7 @@ <h4 id="_clojurescriptstorm_with_shadow_cljs"><a class="anchor" href="#_clojures
12621262
</span><span class="no">:extra-deps</span><span class="w"> </span><span class="p">{</span><span class="n">thheller/shadow-cljs</span><span class="w"> </span><span class="p">{</span><span class="no">:mvn/version</span><span class="w"> </span><span class="s">"3.3.4"</span><span class="w">
12631263
</span><span class="no">:exclusions</span><span class="w"> </span><span class="p">[</span><span class="n">org.clojure/clojurescript</span><span class="p">]}</span><span class="w">
12641264
</span><span class="c1">;; bring ClojureScriptStorm</span><span class="w">
1265-
</span><span class="n">com.github.flow-storm/clojurescript</span><span class="w"> </span><span class="p">{</span><span class="no">:mvn/version</span><span class="w"> </span><span class="s">"1.12.134-2"</span><span class="p">}</span><span class="w">
1265+
</span><span class="n">com.github.flow-storm/clojurescript</span><span class="w"> </span><span class="p">{</span><span class="no">:mvn/version</span><span class="w"> </span><span class="s">"1.12.134-3"</span><span class="p">}</span><span class="w">
12661266
</span><span class="c1">;; add FlowStorm runtime dep</span><span class="w">
12671267
</span><span class="n">com.github.flow-storm/flow-storm-inst</span><span class="w"> </span><span class="p">{</span><span class="no">:mvn/version</span><span class="w"> </span><span class="s">"4.5.9"</span><span class="p">}}}}}</span></code></pre>
12681268
</div>
@@ -1328,23 +1328,20 @@ <h4 id="_clojurescriptstorm_with_cljs_main"><a class="anchor" href="#_clojurescr
13281328
<p>You can use <em>FlowStorm</em> and <em>ClojureScriptStorm</em> with cljs.main.</p>
13291329
</div>
13301330
<div class="paragraph">
1331-
<p>To compile instrumented files :</p>
1331+
<p>The easiest way to try it is just by starting a repl, like this :</p>
13321332
</div>
13331333
<div class="listingblock">
13341334
<div class="content">
1335-
<pre class="rouge highlight nowrap"><code data-lang="bash">clj <span class="nt">-J-Dcljs</span>.storm.instrumentOnlyPrefixes<span class="o">=</span>org.foo <span class="nt">-J-Dcljs</span>.storm.instrumentEnable<span class="o">=</span><span class="nb">true</span> <span class="nt">-Sdeps</span> <span class="s1">'{:paths ["src"] :deps {com.github.flow-storm/clojurescript {:mvn/version "1.12.134-2"} com.github.flow-storm/flow-storm-inst {:mvn/version "4.5.9"}}}'</span> <span class="nt">-M</span> <span class="nt">-m</span> cljs.main <span class="nt">-co</span> <span class="s1">'{:preloads [flow-storm.storm-preload] :main org.foo.core}'</span> <span class="nt">--compile</span></code></pre>
1335+
<pre class="rouge highlight nowrap"><code data-lang="bash">clj <span class="nt">-Sforce</span> <span class="nt">-J-Dcljs</span>.storm.instrumentOnlyPrefixes<span class="o">=</span>cljs.user <span class="nt">-Sdeps</span> <span class="s1">'{:deps {com.github.flow-storm/clojurescript {:mvn/version "1.12.134-3"} com.github.flow-storm/flow-storm-inst {:mvn/version "4.5.9"}}}'</span> <span class="nt">-M</span> <span class="nt">-m</span> cljs.main <span class="nt">-co</span> <span class="s1">'{:preloads [flow-storm.storm-preload]}'</span> <span class="nt">--repl</span></code></pre>
13361336
</div>
13371337
</div>
13381338
<div class="paragraph">
1339-
<p>To run a repl that instrument everything under org.foo :</p>
1340-
</div>
1341-
<div class="listingblock">
1342-
<div class="content">
1343-
<pre class="rouge highlight nowrap"><code data-lang="bash">clj <span class="nt">-J-Dcljs</span>.storm.instrumentOnlyPrefixes<span class="o">=</span>org.foo <span class="nt">-J-Dcljs</span>.storm.instrumentEnable<span class="o">=</span><span class="nb">true</span> <span class="nt">-Sdeps</span> <span class="s1">'{:paths ["src"] :deps {com.github.flow-storm/clojurescript {:mvn/version "1.12.134-2"} com.github.flow-storm/flow-storm-inst {:mvn/version "4.5.9"}}}'</span> <span class="nt">-M</span> <span class="nt">-m</span> cljs.main <span class="nt">-co</span> <span class="s1">'{:preloads [flow-storm.storm-preload] :main org.foo.core}'</span> <span class="nt">--repl</span></code></pre>
1344-
</div>
1339+
<p>If you run the command above you are running cljs.main --repl which will start a ClojureScript repl on
1340+
your terminal and open a browser connected to it. You runtime will also start with FlowStorm preloaded and everything under <code>cljs.user</code>
1341+
is going to be instrumented.</p>
13451342
</div>
13461343
<div class="paragraph">
1347-
<p>Then run the <em>FlowStorm</em> UI :</p>
1344+
<p>Then on a different terminal run the <em>FlowStorm</em> UI :</p>
13481345
</div>
13491346
<div class="listingblock">
13501347
<div class="content">
@@ -1354,6 +1351,23 @@ <h4 id="_clojurescriptstorm_with_cljs_main"><a class="anchor" href="#_clojurescr
13541351
<div class="paragraph">
13551352
<p>And now refresh your browser page so your browser app connects to the UI.</p>
13561353
</div>
1354+
<div class="admonitionblock note">
1355+
<table>
1356+
<tr>
1357+
<td class="icon">
1358+
<div class="title">Note</div>
1359+
</td>
1360+
<td class="content">
1361+
<div class="title">Limitations</div>
1362+
<div class="paragraph">
1363+
<p>There are some small limitations like not being able to modify instrumentation from the UI without restarting the repl.
1364+
This is because the <em>FlowStorm</em> UI needs to also connect via nrepl to JVM process running the compiler, which isn&#8217;t available
1365+
when running cljs.main.</p>
1366+
</div>
1367+
</td>
1368+
</tr>
1369+
</table>
1370+
</div>
13571371
</div>
13581372
<div class="sect3">
13591373
<h4 id="_clojurescript_vanilla_flowstorm"><a class="anchor" href="#_clojurescript_vanilla_flowstorm"></a><a class="link" href="#_clojurescript_vanilla_flowstorm">1.2.3. ClojureScript vanilla FlowStorm</a></h4>
@@ -4961,7 +4975,7 @@ <h2 id="_internals_diagrams_and_documentation"><a class="anchor" href="#_interna
49614975
</div>
49624976
<div id="footer">
49634977
<div id="footer-text">
4964-
Last updated 2025-12-26 10:22:23 -0300
4978+
Last updated 2025-12-31 10:43:53 -0300
49654979
</div>
49664980
</div>
49674981
</body>

0 commit comments

Comments
 (0)