Skip to content

Use standard Clojure CLI instead of lein exec#16

Draft
Copilot wants to merge 2 commits intomainfrom
copilot/fix-clojure-code-execution
Draft

Use standard Clojure CLI instead of lein exec#16
Copilot wants to merge 2 commits intomainfrom
copilot/fix-clojure-code-execution

Conversation

Copy link

Copilot AI commented Feb 5, 2026

Running Clojure code fails with 'exec' is not a task because lein exec requires the lein-exec plugin, which is not part of standard Leiningen.

Changes

  • Replace lein exec with clojure in the executor map

The clojure CLI runs .clj files directly without additional plugins:

# Before (requires lein-exec plugin)
lein exec "/tmp/tmp.clojure"

# After (works out of the box)
clojure "/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 @copilot 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>


✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

…ein exec

Co-authored-by: formulahendry <1050213+formulahendry@users.noreply.github.com>
Copilot AI changed the title [WIP] Fix issues running Clojure code with Lein Use standard Clojure CLI instead of lein exec Feb 5, 2026
Copilot AI requested a review from formulahendry February 5, 2026 12:14
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