Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failing to require from user.cljr #3

Open
jamesdavidson opened this issue Jan 22, 2025 · 0 comments
Open

Failing to require from user.cljr #3

jamesdavidson opened this issue Jan 22, 2025 · 0 comments

Comments

@jamesdavidson
Copy link

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 .

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

No branches or pull requests

1 participant