cursive-ide / cursive

Cursive: The IDE for beautiful Clojure code
588 stars 7 forks source link

Resolving generated vars #487

Closed ikitommi closed 10 years ago

ikitommi commented 10 years ago

Hi.

Current Cursive doesn't seem to be able to resolve (macro-)generated Vars, even when REPL is running. Some examples:

(use 'camel-snake-kebab.core)
(->CamelCase "lovely ide") ;; can't resolve symbol ->CamelCase
;; => "LovelyIde"
(use 'ring.util.http-response)
(ok "ok") ;; can't resolve symbol ok
;; => {:status 200, :headers {}, :body "ok"}
cursive-ide commented 10 years ago

Cursive currently doesn't use the REPL at all for its resolution except in the REPL editor itself. If that code is in a standard code editor, sadly that's expected behaviour right now - see #147. If it's in the REPL editor then it's a bug and this should be reopened.

ikitommi commented 10 years ago

Works in the REPL editor. Game over.