Skip to content

Instantly share code, notes, and snippets.

View johnbendi's full-sized avatar

John Chijioke johnbendi

View GitHub Profile
$ lein swank
WARNING: spit already refers to: #'clojure.core/spit in namespace: examples.utils, being replaced by: #'clojure.contrib.duck-streams/spit
Exception in thread "main" java.lang.ExceptionInInitializerError
at clojure.main.<clinit>(main.java:20)
Caused by: java.lang.RuntimeException: java.lang.ExceptionInInitializerError (test_is.clj:16)
at clojure.lang.RT.<clinit>(RT.java:305)
... 1 more
Caused by: java.lang.ExceptionInInitializerError (test_is.clj:16)
at clojure.lang.Compiler.eval(Compiler.java:5440)
at clojure.lang.Compiler.eval(Compiler.java:5415)
@johnbendi
johnbendi / midje-test
Created December 13, 2011 03:09
midje test failing
lein test
Warning: *sh-dir* not declared dynamic and thus is not dynamically rebindable, but its name suggests otherwise. Please either indicate ^:dynamic *sh-dir* or change the name.
Warning: *sh-env* not declared dynamic and thus is not dynamically rebindable, but its name suggests otherwise. Please either indicate ^:dynamic *sh-env* or change the name.
Testing ritz.commands.basic-test
Testing ritz.commands.completion-test
Testing ritz.commands.contrib.ritz-test
Testing ritz.commands.contrib.swank-fuzzy-test
Testing ritz.commands.debugger-test
#<Thread Thread[debugger-test-thread,5,main]>
Testing ritz.commands.inspector-test
Debugger entered--Lisp error: (cl-assertion-failed (keywordp module))
signal(cl-assertion-failed ((keywordp module)))
slime-require(swank-arglists)
slime-autodoc-init()
slime-fancy-init()
slime-setup-contribs()
run-hooks(slime-load-hook)
byte-code("\306\307!\310\211\310:\203/
@johnbendi
johnbendi / clojure-jack-in-error
Created December 18, 2011 23:30
clojure-jack-in error
Debugger entered--Lisp error: (error "Could not start swank server: /bin/sh: 1: -l: not found
")
signal(error ("Could not start swank server: /bin/sh: 1: -l: not found\n"))
error("Could not start swank server: %s" "/bin/sh: 1: -l: not found\n")
clojure-jack-in-sentinel(#<process swank> "exited abnormally with code 127\n")
@johnbendi
johnbendi / clojurescript
Created January 18, 2012 02:39
cljsc/build output and host html
hello.js:
goog.addDependency("../cljs/core.js", ['cljs.core'], ['goog.string', 'goog.string.StringBuffer', 'goog.object', 'goog.array']);
goog.addDependency("../w4Qt1.js", ['hello'], ['cljs.core']);
hello.html:
<html>
@johnbendi
johnbendi / nrepl-err
Created August 23, 2012 09:13
error thrown when doing nrepl-jack-in or nrepl
Debugger entered--Lisp error: (wrong-type-argument stringp nil)
nrepl-init-repl-buffer(#<process nrepl<5>> nil)
nrepl(37440)
call-interactively(nrepl record nil)
command-execute(nrepl record)
(progn (setq prefix-arg current-prefix-arg) (command-execute chosen-item (quote record)))
(unwind-protect (progn (setq prefix-arg current-prefix-arg) (command-execute chosen-item (quote record))) (smex-rank chosen-item) (smex-show-key-advice chosen-item) (run-at-time 0.01 nil (lambda (cmd) (setq last-repeatable-command cmd)) chosen-item))
(if smex-custom-action (let ((action smex-custom-action)) (setq smex-custom-action nil) (funcall action chosen-item)) (unwind-protect (progn (setq prefix-arg current-prefix-arg) (command-execute chosen-item (quote record))) (smex-rank chosen-item) (smex-show-key-advice chosen-item) (run-at-time 0.01 nil (lambda (cmd) (setq last-repeatable-command cmd)) chosen-item)))
(let ((chosen-item (intern (smex-completing-read commands initial-input)))) (if smex-custom-action (let (
@johnbendi
johnbendi / api
Created September 5, 2012 02:01
poor api doc
;; Our file-generating function, `->files` is very simple. We'd like
;; to keep it that way. Sometimes you need your file paths to be
;; templates as well. This function just renders a string that is the
;; path to where a file is supposed to be placed by a template.
;; It is private because you shouldn't have to call it yourself, since
;; `->files` does it for you.
(defn- template-path [name path data]
(io/file name (render-text path data)))
;; A template, at its core, is meant to generate files and directories that
@johnbendi
johnbendi / piggieback
Created September 17, 2012 21:55
IllegalStateException by piggieback
java.lang.IllegalStateException: Can't change/establish root binding of: *cljs-repl-options* with set
Var.java:233 clojure.lang.Var.set
piggieback.clj:113 cemerick.piggieback/cljs-repl
RestFn.java:421 clojure.lang.RestFn.invoke
NO_SOURCE_FILE:2 user/eval3086
Compiler.java:6511 clojure.lang.Compiler.eval
Compiler.java:6477 clojure.lang.Compiler.eval
core.clj:2797 clojure.core/eval
main.clj:245 clojure.main/repl[fn]
main.clj:266 clojure.main/repl[fn]
@johnbendi
johnbendi / gist:3740038
Created September 17, 2012 21:57
project with piggie
(defproject one "1.0.0-SNAPSHOT"
:description "Getting Started with ClojureScript."
:dependencies [[org.clojure/clojure "1.4.0"]
[ring "1.0.0-RC1"]
[compojure "1.0.1"]
[enlive "1.2.0-alpha1"]
[com.cemerick/friend "0.0.9"]
[com.cemerick/piggieback "0.0.1"]
[com.datomic/datomic "0.1.3164"]
[org.mozilla/rhino "1.7R3"]
@johnbendi
johnbendi / gist:3740062
Created September 17, 2012 22:04
lein deps :tree
[clj-stacktrace "0.2.4"]
[com.cemerick/friend "0.0.9"]
[commons-codec "1.6"]
[net.sourceforge.nekohtml/nekohtml "1.9.10"]
[xerces/xercesImpl "2.8.1"]
[xml-apis "1.3.03"]
[org.apache.httpcomponents/httpclient "4.2-beta1"]
[org.apache.httpcomponents/httpcore "4.2-beta1"]
[org.mindrot/jbcrypt "0.3m"]
[org.openid4java/openid4java-nodeps "0.9.6"]