# Troubleshooting

**URL:** https://clojureverse.org/c/questions-help/troubleshooting/31.md?page=3

[Latest](https://clojureverse.org/latest.md) · [Categories](https://clojureverse.org/categories.md) · [Tags](https://clojureverse.org/tags.md)

**Page:** 4

---

## [Using macroexpand inside a macro in Clojurescript doesn't work](https://clojureverse.org/t/using-macroexpand-inside-a-macro-in-clojurescript-doesnt-work/6516)

<div class="topic-metadata">

**Author:** [@jpmonettas](https://clojureverse.org/u/jpmonettas)\
**Replies:** 2\
**Last updated:** [September 9, 2020, 11:33am UTC](https://clojureverse.org/t/using-macroexpand-inside-a-macro-in-clojurescript-doesnt-work/6516 "2020-09-09T11:33:56Z")

</div>

Hi everybody!,Does anybody knows why this macro (defmacro tester \[form\] (println (macroexpand form)) nil) When used from clojure : (tester (let \[a 5\] a)) ;; prints (let\* \[a 5\] a) But when used from clojurescript : (…

---

## [GraalVM generated native image errors out](https://clojureverse.org/t/graalvm-generated-native-image-errors-out/6517)

<div class="topic-metadata">

**Author:** [@ashwinbhaskar](https://clojureverse.org/u/ashwinbhaskar)\
**Replies:** 4\
**Last updated:** [September 9, 2020, 8:55am UTC](https://clojureverse.org/t/graalvm-generated-native-image-errors-out/6517 "2020-09-09T08:55:48Z")

</div>

I am trying to get my project graalvm compatible. I was successfully able to generate the native image with the --report-unsupported-elements-at-runtime option. I get the following error when I run the generated native i…

---

## [Expanding a vector to it's individual elements with a macro](https://clojureverse.org/t/expanding-a-vector-to-its-individual-elements-with-a-macro/6455)

<div class="topic-metadata">

**Author:** [@ashwinbhaskar](https://clojureverse.org/u/ashwinbhaskar)\
**Replies:** 5\
**Last updated:** [August 29, 2020, 6:06pm UTC](https://clojureverse.org/t/expanding-a-vector-to-its-individual-elements-with-a-macro/6455 "2020-08-29T18:06:44Z")

</div>

I am trying to construct an SQL query with dynamic parameters in the in sections. I do not want to use honeysql here. I am trying to do this with a macro. Note: apply will not work here. (defmacro expand-second-arg \[q…

---

## [Why this Clojure "var" error?](https://clojureverse.org/t/why-this-clojure-var-error/6425)

<div class="topic-metadata">

**Author:** [@Webdev\_Tory](https://clojureverse.org/u/Webdev_Tory)\
**Replies:** 3\
**Last updated:** [August 21, 2020, 9:55pm UTC](https://clojureverse.org/t/why-this-clojure-var-error/6425 "2020-08-21T21:55:23Z")

</div>

We were attempting to write functions could round-trip function references to strings and, though we eventually figured this out in a different way, our first attempts brought a very confusing error. It seems to have som…

---

## [Shadow-cljs release build: how to troubleshoot issues with Google Closure advanced optimizations?](https://clojureverse.org/t/shadow-cljs-release-build-how-to-troubleshoot-issues-with-google-closure-advanced-optimizations/6407)

<div class="topic-metadata">

**Author:** [@jackdbd](https://clojureverse.org/u/jackdbd)\
**Replies:** 5\
**Last updated:** [August 17, 2020, 9:01pm UTC](https://clojureverse.org/t/shadow-cljs-release-build-how-to-troubleshoot-issues-with-google-closure-advanced-optimizations/6407 "2020-08-17T21:01:42Z")

</div>

I’m developing a simple Reagent SPA with a Firebase Firestore backend. The app shows a list of quotes (for now they are just fakes I created with Faker.js) and features infinite scrolling. Basically there are 2 steps in…

---

## [Uberjar with depstar](https://clojureverse.org/t/uberjar-with-depstar/6394)

<div class="topic-metadata">

**Author:** [@iyedb](https://clojureverse.org/u/iyedb)\
**Replies:** 3\
**Last updated:** [August 12, 2020, 8:51pm UTC](https://clojureverse.org/t/uberjar-with-depstar/6394 "2020-08-12T20:51:55Z")

</div>

Hi All, I have a project using Clojure cli tools clj and deps.edn. I use @seancorfield depstar to build an uber jar: :uberjar {:extra-deps {seancorfield/depstar {:mvn/version "1.0.94"}} :extra-paths \["r…

---

## [Problem with shadow-cljs and github pages](https://clojureverse.org/t/problem-with-shadow-cljs-and-github-pages/6285)

<div class="topic-metadata">

**Author:** [@vipenzo](https://clojureverse.org/u/vipenzo)\
**Replies:** 2\
**Last updated:** [July 25, 2020, 4:06pm UTC](https://clojureverse.org/t/problem-with-shadow-cljs-and-github-pages/6285 "2020-07-25T16:06:11Z")

</div>

Hi all, I’m having problems making a project built with shadow-cljs work with github pages. I put this project on github: https://github.com/vipenzo/faber. It’s a simple clojure editor that let you write clojure code t…

---

## [Exception when creating a release in shadow-cljs](https://clojureverse.org/t/exception-when-creating-a-release-in-shadow-cljs/6050)

<div class="topic-metadata">

**Author:** [@jbarren](https://clojureverse.org/u/jbarren)\
**Replies:** 23\
**Last updated:** [June 22, 2020, 5:42pm UTC](https://clojureverse.org/t/exception-when-creating-a-release-in-shadow-cljs/6050 "2020-06-22T17:42:47Z")

</div>

Hi! Clojure(script) newbie here, trying to migrate a lein+figwheel project to a lein+shadow-cljs one. I’m in the process of the debugging the thousands of errors that I’m getting, but I’m interested in fixing why the co…

---

## [ClojureScript specify! macro](https://clojureverse.org/t/clojurescript-specify-macro/6134)

<div class="topic-metadata">

**Author:** [@outrovurt](https://clojureverse.org/u/outrovurt)\
**Replies:** 4\
**Last updated:** [June 20, 2020, 5:10am UTC](https://clojureverse.org/t/clojurescript-specify-macro/6134 "2020-06-20T05:10:43Z")

</div>

Hi, I just discovered what I initially thought was a very useful (and of course scantily documented) feature of ClojureScript, namely the specify! macro. Now, immediately after my initial rejoicing, I further discovered…

---

## [Connection issue with next.jdbc](https://clojureverse.org/t/connection-issue-with-next-jdbc/6058)

<div class="topic-metadata">

**Author:** [@l3nz](https://clojureverse.org/u/l3nz)\
**Replies:** 5\
**Last updated:** [June 5, 2020, 3:23pm UTC](https://clojureverse.org/t/connection-issue-with-next-jdbc/6058 "2020-06-05T15:23:42Z")

</div>

I am playing with next-jdbc and I’m quite liking it. I like the fact that you can use a literal or a Connection and it just works- for the REPL it’s great. Still, I don’t understand why, if I have a database: (def CX …

---

## [I keep getting an empty http request with cljs-http](https://clojureverse.org/t/i-keep-getting-an-empty-http-request-with-cljs-http/6006)

<div class="topic-metadata">

**Author:** [@cuaucortes](https://clojureverse.org/u/cuaucortes)\
**Replies:** 7\
**Last updated:** [May 26, 2020, 9:11am UTC](https://clojureverse.org/t/i-keep-getting-an-empty-http-request-with-cljs-http/6006 "2020-05-26T09:11:59Z")

</div>

Hello everyone, I’m picked up coding as a hobby a few years ago, I can do stuff but a lot of CS/SE concepts are unfamiliar to me. And I think this is one of those cases where this lack of knowledge is slowing me down a…

---

## [Shared routes in reitit](https://clojureverse.org/t/shared-routes-in-reitit/5984)

<div class="topic-metadata">

**Author:** [@DrLjotsson](https://clojureverse.org/u/DrLjotsson)\
**Replies:** 0\
**Last updated:** [May 19, 2020, 11:34am UTC](https://clojureverse.org/t/shared-routes-in-reitit/5984 "2020-05-19T11:34:24Z")

</div>

I imagine that if I share clj and cljs reitit routes, I can centralize not only the routing but also parameter specification and coercion. But the examples given at https://metosin.github.io/reitit/advanced/shared\_routes…

---

## [Hot reloading Custom Elements (Web Components)](https://clojureverse.org/t/hot-reloading-custom-elements-web-components/5964)

<div class="topic-metadata">

**Author:** [@Jponline](https://clojureverse.org/u/Jponline)\
**Replies:** 0\
**Last updated:** [May 14, 2020, 10:31pm UTC](https://clojureverse.org/t/hot-reloading-custom-elements-web-components/5964 "2020-05-14T22:31:23Z")

</div>

I was strugling to make Custom Elements hot reloadable as the CustomElementRegistry does not allow redefinitions for a single tag. It’s basically a follow up to the topic how-to-create-custom-elements-web-components-with…

---

## [Explain thread first macro like i am 5?](https://clojureverse.org/t/explain-thread-first-macro-like-i-am-5/5888)

<div class="topic-metadata">

**Author:** [@babygau](https://clojureverse.org/u/babygau)\
**Replies:** 5\
**Last updated:** [May 1, 2020, 11:44am UTC](https://clojureverse.org/t/explain-thread-first-macro-like-i-am-5/5888 "2020-05-01T11:44:52Z")

</div>

hi guys, as i’m trying to understand how macro works through thread first -\> source. could you pls explain what this line does (with-meta '(~(first form) ~x ~@(next form)) (meta form)) im also curious about the use of w…

---

## [Calva + figwheel, cannot jack-in or connect](https://clojureverse.org/t/calva-figwheel-cannot-jack-in-or-connect/5843)

<div class="topic-metadata">

**Author:** [@magnus0re](https://clojureverse.org/u/magnus0re)\
**Replies:** 1\
**Last updated:** [April 26, 2020, 12:58am UTC](https://clojureverse.org/t/calva-figwheel-cannot-jack-in-or-connect/5843 "2020-04-26T00:58:42Z")

</div>

I’m using vs code on windows 10 for developing with leiningen. But I cannot get it up and running I started with lein new figwheel myapp and in myapp lein figwheel I get the cljs repl up and running, and a web page …

---

## [Simple question](https://clojureverse.org/t/simple-question/5829)

<div class="topic-metadata">

**Author:** [@sunjlee](https://clojureverse.org/u/sunjlee)\
**Replies:** 3\
**Last updated:** [April 23, 2020, 11:11pm UTC](https://clojureverse.org/t/simple-question/5829 "2020-04-23T23:11:12Z")

</div>

Here is the question: (let \[data \[{:a 1 :b 2 :v true} {:a 2 :b 5 :v true} {:a 22 :b 7} {:a 2 :b 5 :v false}\] k :v\] (filter (fn \[m\] (if k (m k) true))) data) I got \[{:a 1, :b 2, :v true} {:a 2, …

---

## [Creating a variable named by a string in clojurescript](https://clojureverse.org/t/creating-a-variable-named-by-a-string-in-clojurescript/5732)

<div class="topic-metadata">

**Author:** [@asiegf](https://clojureverse.org/u/asiegf)\
**Replies:** 17\
**Last updated:** [April 21, 2020, 1:52pm UTC](https://clojureverse.org/t/creating-a-variable-named-by-a-string-in-clojurescript/5732 "2020-04-21T13:52:24Z")

</div>

Hello Clojureverse! I am trying to define a global variable named by a string, in clojurescript. In clojure I would do the following: (intern \*ns\* (symbol "my-var") "its-definition") my-var =\> "its-definition" Is th…

---

## [CLJS error in sorting vectors](https://clojureverse.org/t/cljs-error-in-sorting-vectors/5799)

<div class="topic-metadata">

**Author:** [@Webdev\_Tory](https://clojureverse.org/u/Webdev_Tory)\
**Replies:** 5\
**Last updated:** [April 17, 2020, 3:22pm UTC](https://clojureverse.org/t/cljs-error-in-sorting-vectors/5799 "2020-04-17T15:22:40Z")

</div>

After spending an aggravatingly long time trying to do a 2-step sort maps in cljs, as per this example with juxt, I reduced my errors to the following minimal example. It appears to be a fairly fundamental bug in Clojure…

---

## [Clj-kondo and a request handler](https://clojureverse.org/t/clj-kondo-and-a-request-handler/5583)

<div class="topic-metadata">

**Author:** [@duzunov](https://clojureverse.org/u/duzunov)\
**Replies:** 3\
**Last updated:** [March 9, 2020, 9:54pm UTC](https://clojureverse.org/t/clj-kondo-and-a-request-handler/5583 "2020-03-09T21:54:13Z")

</div>

Hi guys! clj-kondo is complaining about an “unused binding req” in my Ring handler function (I’m using org.httpkit.server). From what I read here: https://github.com/ring-clojure/ring/wiki/Concepts I have to have at lea…

---

## [Any tips for optimizing specs for validation?](https://clojureverse.org/t/any-tips-for-optimizing-specs-for-validation/5491)

<div class="topic-metadata">

**Author:** [@tomc](https://clojureverse.org/u/tomc)\
**Replies:** 4\
**Last updated:** [March 2, 2020, 3:25pm UTC](https://clojureverse.org/t/any-tips-for-optimizing-specs-for-validation/5491 "2020-03-02T15:25:37Z")

</div>

I’m using spec to validate updates before saving to a DB - basically updated/created entities have to match the schema for their type before I attempt the actual db write. I found that this validation stage was slow, and…

---

## [Clojurescript: repl-incompatible symbols](https://clojureverse.org/t/clojurescript-repl-incompatible-symbols/5511)

<div class="topic-metadata">

**Author:** [@Webdev\_Tory](https://clojureverse.org/u/Webdev_Tory)\
**Replies:** 2\
**Last updated:** [February 25, 2020, 8:17pm UTC](https://clojureverse.org/t/clojurescript-repl-incompatible-symbols/5511 "2020-02-25T20:17:44Z")

</div>

I’m using a library that provides TimelineChart.TYPE.POINT which, when entered in the browser console, returns Symbol(). Trouble is, whenever I attempt to do repl-driven development with it my repl errors when asked to d…

---

## [Storage backends for Datahike?](https://clojureverse.org/t/storage-backends-for-datahike/5406)

<div class="topic-metadata">

**Author:** [@mvarela](https://clojureverse.org/u/mvarela)\
**Replies:** 11\
**Last updated:** [January 31, 2020, 6:39pm UTC](https://clojureverse.org/t/storage-backends-for-datahike/5406 "2020-01-31T18:39:52Z")

</div>

Hi, I’m playing a bit with Datahike, and I’m having issues using alternative storage backends. I tried both LevelDB and Postgres, and none of them seem to work. I tried the configurations as described in the config docs …

---

## [Issue with clojure jira](https://clojureverse.org/t/issue-with-clojure-jira/5407)

<div class="topic-metadata">

**Author:** [@tomc](https://clojureverse.org/u/tomc)\
**Replies:** 5\
**Last updated:** [January 28, 2020, 3:05pm UTC](https://clojureverse.org/t/issue-with-clojure-jira/5407 "2020-01-28T15:05:57Z")

</div>

I’m trying to report a Clojurescript issue but Jira is giving me the run around. I pressed the log in button at the bottom left and created an account through google. I then tried to create an issue using the plus button…

---

## [Getting multiple migration statements working in a migration file with migratus](https://clojureverse.org/t/getting-multiple-migration-statements-working-in-a-migration-file-with-migratus/5261)

<div class="topic-metadata">

**Author:** [@ashwinbhaskar](https://clojureverse.org/u/ashwinbhaskar)\
**Replies:** 4\
**Last updated:** [January 15, 2020, 7:51pm UTC](https://clojureverse.org/t/getting-multiple-migration-statements-working-in-a-migration-file-with-migratus/5261 "2020-01-15T19:51:53Z")

</div>

I am using migratus for managing migrations. This line talks about handling multiple migration statements in a single file. I tried using --;; between each statement like it’s given in the link. But I still end up gettin…

---

## [Problems switching to Muuntaja from Ring](https://clojureverse.org/t/problems-switching-to-muuntaja-from-ring/5347)

<div class="topic-metadata">

**Author:** [@Webdev\_Tory](https://clojureverse.org/u/Webdev_Tory)\
**Replies:** 5\
**Last updated:** [January 11, 2020, 3:22pm UTC](https://clojureverse.org/t/problems-switching-to-muuntaja-from-ring/5347 "2020-01-11T15:22:52Z")

</div>

I was hoping for Muuntaja to be a simple drop-in replacement for ring.middleware wrap-formats, but it has been a week of running my head into apparent dependency errors. Even when I trace through lein deps :tree to remov…

---

## [Core.async and crashing the repl](https://clojureverse.org/t/core-async-and-crashing-the-repl/5221)

<div class="topic-metadata">

**Author:** [@andersmurphy](https://clojureverse.org/u/andersmurphy)\
**Replies:** 2\
**Last updated:** [December 17, 2019, 9:43am UTC](https://clojureverse.org/t/core-async-and-crashing-the-repl/5221 "2019-12-17T09:43:51Z")

</div>

I’ve started playing around with core.async recently and I noticed that if there is crash in an async process it seems to crash the repl. Is there anything that can be done to avoid this? Restarting the repl messes with …

---

## [How to tackle a NPM dependency problem with shadow-cljs?](https://clojureverse.org/t/how-to-tackle-a-npm-dependency-problem-with-shadow-cljs/5071)

<div class="topic-metadata">

**Author:** [@witek](https://clojureverse.org/u/witek)\
**Replies:** 12\
**Last updated:** [November 13, 2019, 5:55am UTC](https://clojureverse.org/t/how-to-tackle-a-npm-dependency-problem-with-shadow-cljs/5071 "2019-11-13T05:55:33Z")

</div>

Cross-post from dependencies - How to resolve NPM dependency problem with shadow-cljs using react-swipeable-views? - Stack Overflow I get an error from shadow-cljs when trying to use the npm package react-swipeable-view…

---

## [Cljs cost of lambda functions](https://clojureverse.org/t/cljs-cost-of-lambda-functions/5051)

<div class="topic-metadata">

**Author:** [@Webdev\_Tory](https://clojureverse.org/u/Webdev_Tory)\
**Replies:** 6\
**Last updated:** [November 8, 2019, 12:27am UTC](https://clojureverse.org/t/cljs-cost-of-lambda-functions/5051 "2019-11-08T00:27:30Z")

</div>

In a library of mine that renders and sorts reagent tables, I made the option of specifying a sort-fn which is a function which, receiving a row, returns the value by which this row should be sorted. In a strange bug tha…

---

## [Issues with using core.async from clojurescript](https://clojureverse.org/t/issues-with-using-core-async-from-clojurescript/4967)

<div class="topic-metadata">

**Author:** [@mvarela](https://clojureverse.org/u/mvarela)\
**Replies:** 4\
**Last updated:** [October 19, 2019, 5:43pm UTC](https://clojureverse.org/t/issues-with-using-core-async-from-clojurescript/4967 "2019-10-19T17:43:04Z")

</div>

I’m trying to use core.async from a clojurescript project, and for some reason, the compilation fails, complaining about the cljs.core.async namespace being missing. I’m just starting out with cljs tooling, so I’m a bit …

---

## [Problem with cli tools / deps.edn](https://clojureverse.org/t/problem-with-cli-tools-deps-edn/4827)

<div class="topic-metadata">

**Author:** [@mvarela](https://clojureverse.org/u/mvarela)\
**Replies:** 2\
**Last updated:** [September 12, 2019, 5:57am UTC](https://clojureverse.org/t/problem-with-cli-tools-deps-edn/4827 "2019-09-12T05:57:12Z")

</div>

I’m trying to use deps.edn and the cli tools for a new project, and I am getting a problem with a dependency. My deps.edn reads as follows: {:paths \["resources" "src"\] :deps {org.clojure/clojure {:mvn/version "RELEASE"…

[Previous page](https://clojureverse.org/c/questions-help/troubleshooting/31.md?page=2)

[Next page](https://clojureverse.org/c/questions-help/troubleshooting/31.md?page=4)
