Open
Description
With the latest alpha I'm getting a NullReferenceException (Object reference not set to an instance of an object) when I use the --init path option or user.cljr as for example: (ns user (:require [clojure.clr.shell :as shell]))
.
Here's a minimal repro in a docker container so it's a fresh setup.
$ docker run --rm -it mcr.microsoft.com/dotnet/sdk:8.0 /bin/bash
root@c63ea64bfca7:/# dotnet tool install --global Clojure.Main --version 1.12.0-alpha11 > /dev/null
root@c63ea64bfca7:/# dotnet tool install --global Clojure.Cljr --version 0.1.0-alpha6 > /dev/null
root@c63ea64bfca7:/# export PATH="$PATH:/root/.dotnet/tools"
root@c63ea64bfca7:/# cd /tmp
root@c63ea64bfca7:/tmp# cljr
Clojure 1.12.0-alpha11
user=> (ns user (:require [clojure.clr.shell :as shell]))
nil
user=>
root@c63ea64bfca7:/tmp# echo '(ns user (:require [clojure.clr.shell :as shell]))' > user.cljr
root@c63ea64bfca7:/tmp# cljr
Bad type
Unhandled exception. Syntax error macroexpanding at (/root/.dotnet/tools/.store/clojure.main/1.12.0-alpha11/clojure.main/1.12.0-alpha11/tools/net8.0/any/clojure/clr/shell.clj:1:1).
Object reference not set to an instance of an object.
/root/.dotnet/tools/.store/clojure.cljr/0.1.0-alpha6/clojure.cljr/0.1.0-alpha6/tools/net8.0/any/tools/run-clojure-main.sh: line 1: 88 Aborted (core dumped) Clojure.Main $*
My workaround for now is to stay on 1.12.0-alpha10 / 0.1.0-alpha5 .
Metadata
Metadata
Assignees
Labels
No labels