clje.user ns in REPL doesn't refer clojure.core when started from clean project
jfacorro opened this issue · comments
Juan Facorro commented
Describe the bug
When running rebar3 clojerl repl
from a clean (not compiled) project, the namespace clje.user
doesn't refer any var from clojure.core
.
To Reproduce
Clone this repository and run rebar3 clojerl repl
. Once the REPL is started enter -
, an error will be shown.
➜ clojerl git:(master) rebar3 clojerl repl
===> Fetching rebar3_clojerl (from {git,"git://github.com/clojerl/rebar3_clojerl.git",
{branch,"master"}})
===> Compiling rebar3_clojerl
===> Verifying dependencies...
===> Compiling clojerl
===> Clojerl Compiling clojerl
%%% Compiling clojure/core.clje...
%%% Compiling clojure/pprint.clje...
%%% Compiling clojure/core/server.clje...
%%% Compiling clojure/data.clje...
%%% Compiling clojure/zip.clje...
%%% Compiling clojure/repl.clje...
%%% Compiling clojure/test.clje...
%%% Compiling clojure/xml.clje...
%%% Compiling erlang/core.clje...
Clojure 0.5.1-1933.5eb2702
clje.user=> -
#error {
:type clojerl.Error
:message NO_SOURCE_FILE:?:?: Unable to resolve symbol: - in this context}
Expected behavior
All publics vars from clojure.core
should be resolved from clje.user
.
Actual behavior
No public var from clojure.core
is resolved, except ns
and in-ns
which are special cases in the analyzer.
Context
clojerl
version (tag/sha):0.5.1-126-g5eb2702
Juan Facorro commented
Moved issue to clojerl/rebar3_clojerl#69.