Skip to content

Instantly share code, notes, and snippets.

View johnbendi's full-sized avatar

John Chijioke johnbendi

View GitHub Profile
@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 / 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 / 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")
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 / 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
$ 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)