I am porting the working Clojure code (to the Leiningen project) from 1.2 to 1.3 and having problems. In addition to the fact that the code itself no longer works, I get dozens of warning messages like this:
Warning: *tooltip-width* not declared dynamic and thus is not dynamically rebindable, but its name suggests otherwise. Please either indicate ^:dynamic *tooltip-width* or change the name.
This happens, although I have already done what looks like the correct changes to the vars that I use to maintain state. For the above error, for example, the code already includes the following:
(def ^:dyanamic *tooltip-width* (* 1.8 *slip-width*))
I get these errors in two places: first, from the command line, as a result of lein swank ; and secondly from Emacs REPL after compiling my core.clj file with Cc Cw .
To be absolutely complete, here is my project.clj file:
(defproject infwb "1.0.0-SNAPSHOT" :description "an evolving, experimental workspace for manipulating infocards" :main infwb.core :dependencies [[org.clojure/clojure "1.3"] [seesaw "1.2.1"] [org.clojars.gw666/sxqj "beta2"] [org.clojars.gw666/piccolo2dcore "1.3"] [org.clojars.gw666/piccolo2dextras "1.3"] [com.miglayout/miglayout "3.7.4"] ] :dev-dependencies [[swank-clojure "1.3.2"] [org.clojars.weavejester/autodoc "0.9.0"]] :autodoc {:name "Infocard Workbench (InfWb)", :web-src-dir "https://github.com/gw666/infwb/blob"})
In addition to getting my code, I would like to understand why I get these errors and why I get them in both places. Thank you for your help.
Gregg williams
source share