Declined
Details
Assignee
Nicola MomettoNicola MomettoReporter
Andy FingerhutAndy FingerhutPriority
Minor
Details
Details
Assignee
Nicola Mometto
Nicola MomettoReporter
Andy Fingerhut
Andy FingerhutPriority
Created October 12, 2017 at 4:27 AM
Updated October 14, 2017 at 4:08 PM
Resolved October 14, 2017 at 4:08 PM
Steps to reproduce:
% git clone https://github.com/nathanmarz/specter % cd specter % git checkout 92caabbb32e1524c27e00f95d7a2a007ee5b0c00
Edit project.clj to add `[org.clojure/tools.analyzer.jvm "0.7.1"]` to vector at `
rofiles :dev :dependencies`
% lein repl user=> (require '[com.rpl.specter :as s]) nil user=> (require '[clojure.tools.analyzer.jvm :as j]) nil user=> (def x (j/analyze+eval '(let [a :b] #_=> (s/select #_=> (s/view #_=> (fn [v] #_=> (s/select [(s/keypath v) (s/keypath a)] #_=> {:a {:b 1}}))) #_=> :a)))) CompilerException clojure.lang.ExceptionInfo: var not found: a {:var a}, compiling:(form-init3889265569495085919.clj:1:8)
The expression which causes `j/analyze+eval` to throw an exception is adapted from inside a Specter test file, where the latest development version of Eastwood gets the same exception when trying to lint the similar expression in that file: https://github.com/nathanmarz/specter/blob/master/test/com/rpl/specter/core_test.cljc#L931-L939