calva

Adrian Smith 2026-05-01T14:10:57.574809Z

Hi I'm trying to export a testing workflow from Cursive to Calva for our VSCode users It involves opening .feature files and then running a custom REPL command inside that file To give you an idea of what we're trying to achieve (from cursive):

(require '[blahblah.repl :as repl])
(repl/run-scenario-test! "~file-path" ~line-number)
When we try it in the equivalent Calva code it doesn't work because Calva doesn't want to run Clojure code in the context of a .feature file - the Calva custom repl command code does execute normally within Clojure files Is there something we can do to allow Custom REPL execution to work even in non Clojure files?

Adrian Smith 2026-05-01T14:18:53.000869Z

{
        "key": "shift+alt+s",
        "command": "calva.runCustomREPLCommand",
        "args": {
            "ns": "user",
            "snippet": "(do (require '[blahblah.repl :as repl]) (repl/run-scenario-test! \"$file\" $line))",
        }
    }

pez 2026-05-01T14:31:26.902889Z

We should fix that in Calva. But I think you may get away with configuring VS Code to treat .feature files as Clojure.