oakes / Nightlight

An embedded editor for Clojure
https://sekao.net/nightlight/
The Unlicense
788 stars 35 forks source link

InstaREPL doesn't respect :refer-clojure :exclude libraries #41

Open cakenggt opened 7 years ago

cakenggt commented 7 years ago

The InstaREPL does not correctly exclude core libraries when they are excluded in the ns tag with :refer-clojure :exclude

Steps to reproduce:

  1. Execute lien new app exclude-test
  2. Go into src/exclude_test/core.clj and turn InstaREPL on
  3. Change the contents of the file to the following
    
    (ns exclude-test.core
    (:refer-clojure :exclude [println])
    (:gen-class))

println

(defn -main "I don't do a whole lot ... yet." [& args] (println "Hello, World!"))


4. See that the `println` line references clojure.core instead of nothing