autre/lein-vimclojure — Issue #1: can't run with noir
Author: eiro
Created: 2011-11-09 16:46:56+00:00
State: open

hello,

i installed lein vimclojure and it does work when i use lein to create a simple project.

it works fine if i edit a file from a new project created with lein new, however it doesn't work with the noir plugin:

> lein noir new toto
Creating noir project: toto
Creating new dirs at: /home/mc/tmp/toto
Adding files...
Project created!
[16:42] mc@alif:~/tmp
> cd toto
> vim project.clj; cat project.clj
(defproject toto "0.1.0-SNAPSHOT"
:description "FIXME: write this!"
:dev-dependencies [[org.clojars.autre/lein-vimclojure "1.0.0"]]
:dependencies [[org.clojure/clojure "1.3.0"]
[noir "1.2.0"]]
:main toto.server)
[16:44] mc@alif:~/tmp/toto
> lein deps && lein vimclojure
Copying 32 files to /home/mc/tmp/toto/lib
Copying 2 files to /home/mc/tmp/toto/lib/dev
Warning: *default-encoding* not declared dynamic and thus is not dynamically rebindable, but its name suggests otherwise. Please either indicate ^:dynamic *default-encoding* or change the name.
Warning: *buffer-size* not declared dynamic and thus is not dynamically rebindable, but its name suggests otherwise. Please either indicate ^:dynamic *buffer-size* or change the name.
Warning: *byte-array-type* not declared dynamic and thus is not dynamically rebindable, but its name suggests otherwise. Please either indicate ^:dynamic *byte-array-type* or change the name.
Warning: *char-array-type* not declared dynamic and thus is not dynamically rebindable, but its name suggests otherwise. Please either indicate ^:dynamic *char-array-type* or change the name.
Warning: *append* not declared dynamic and thus is not dynamically rebindable, but its name suggests otherwise. Please either indicate ^:dynamic *append* or change the name.
NGServer started on 127.0.0.1, port 2113.

And from within src/toto/server.clj

Could not determine the Namespace of the file.

This might have different reasons. Please check, that the ng server
is running with the correct classpath and that the file does not contain
syntax errors. The interactive features will not be enabled, ie. the
keybindings will not be mapped.

Reason:
Error executing Nail! (131)
A crisis has arisen:
java.lang.IllegalStateException: Can't dynamically bind non-dynamic var: clojure.contrib.pprint/*format-str*, compiling:(dispatch.clj:90)
at clojure.lang.Compiler$InvokeExpr.eval(Compiler.java:3342)
at clojure.lang.Compiler$DefExpr.eval(Compiler.java:375)
at clojure.lang.Compiler.eval(Compiler.java:6470)
at clojure.lang.Compiler.load(Compiler.java:6902)
at clojure.lang.RT.loadResourceScript(RT.java:357)
at clojure.lang.RT.loadResourceScript(RT.java:348)
at clojure.lang.RT.load(RT.java:427)
...

i dont' know if it's possible to run noir and vimclojure at the same time.

regards