Skip to content

Conversation

@Claude
Copy link

@Claude Claude AI commented Feb 5, 2026

The Clojure code runner was using lein exec, which requires installing the separate lein-exec plugin. This caused failures for users with standard Clojure installations.

Changes

  • src/constants.ts: Changed Clojure executor from "lein exec" to "clojure"

The clojure command is the standard CLI tool included with Clojure installations and can execute .clojure files directly without additional plugins:

// Before
clojure: "lein exec",

// After  
clojure: "clojure",

This generates commands like clojure "/tmp/tmp.clojure" instead of lein exec "/tmp/tmp.clojure".

Original prompt

This section details on the original issue you should resolve

<issue_title>Issues running Clojure code</issue_title>
<issue_description>Under the hood this seems to use Lein which is installed and on my path. Any clojure code it tries to run just gets this error

Error: Command failed: lein exec "/var/folders/4x/vz2n21r525g48psysncxxr8h0000gn/T/tmp.clojure"
'exec' is not a task. See 'lein help'.

Did you mean this?
         new
         check
```</issue_description>

## Comments on the Issue (you are @claude[agent] in this section)

<comments>
<comment_new><author>@formulahendry</author><body>
@Bigsy Yes, it is to use Lein which is installed and on your path.
And you need to install https://github.com/kumarshantanu/lein-exec, then you could use `lein exec`,

I am not familar with Clojure, how would Clojure users to run Clojure code with single CLI command?</body></comment_new>
</comments>

Changed Clojure executor from 'lein exec' (which requires the lein-exec plugin) to 'clojure' (the standard Clojure CLI tool). This fix allows users to run Clojure code without needing to install additional Leiningen plugins.

Co-authored-by: formulahendry <1050213+formulahendry@users.noreply.github.com>
@Claude Claude AI changed the title [WIP] Fix issues running Clojure code with Lein Replace 'lein exec' with 'clojure' for Clojure code execution Feb 5, 2026
@Claude Claude AI requested a review from formulahendry February 5, 2026 12:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Issues running Clojure code

2 participants