Skip to content

Instantly share code, notes, and snippets.

@mfikes
Created February 23, 2015 18:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mfikes/6632925a953a552b5c38 to your computer and use it in GitHub Desktop.
Save mfikes/6632925a953a552b5c38 to your computer and use it in GitHub Desktop.
shrimp on master

This is a test with the current masters of ClojureScript, Weasel, Piggieback and simple-brepl of the example sequence at https://github.com/mfikes/shrimp

I made a slight modificaiton to the example sequence to (require 'shrimp.detail-view-controller) here so that symbols in that namespace are available in Weasel.

The error about "cljs.user" being already declared is perhaps a minor concern.

user=> (simple-brepl)
<< Started Weasel server on ws://127.0.0.1:9001 >>
Type `:cljs/quit` to stop the ClojureScript REPL
nil
cljs.user=> (require 'shrimp.detail-view-controller)
WARNING: reify already refers to: #'clojure.core/reify in namespace: goby.macros, being replaced by: #'goby.macros/reify
WARNING: handle-view-did-load! at line 5 is being replaced at line 21 /Users/mfikes/Documents/Projects/shrimp/ClojureScript/src/shrimp/detail_view_controller.cljs

ExceptionInfo #<Error: Namespace "cljs.user" already declared.>  clojure.core/ex-info (core.clj:4403)
cljs.user=> (in-ns 'shrimp.detail-view-controller)
shrimp.detail-view-controller
shrimp.detail-view-controller=> (set! (.-text @name-text-field) "Hello")
"Hello"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment