clojure-emacs / cider

The Clojure Interactive Development Environment that Rocks for Emacs
https://cider.mx
GNU General Public License v3.0
3.55k stars 645 forks source link

I can compile this code, but I can not instrument the defn update-mat for debugging #1827

Closed collinalexbell closed 8 years ago

collinalexbell commented 8 years ago
(ns dameon.visual-cortex.stream
  (require [dameon.smart-atom :as smart-atom]
           [clojure.spec :as s]
           [clojure.core.async :refer [go]]))

(defprotocol Stream
  "Unit of Visual Processing"
  (gen-new-data [stream smart-mat]))

(defn update-mat
  "Will generate new stream data and pass that data to this streams subscribers and call any terminus functions"
  [stream smart-mat]
  (let [data (gen-new-data stream smart-mat)]
   (doall
    (map #(go (% data)) (get stream :termini)))
   (doall
    (map
     #(let [copied-mat-smart-atom (smart-atom/copy (data :smart-mat))]
        (go (update-mat %1 copied-mat-smart-atom)))
     (get stream :up-streams)))
   ;;clean up the new-new frame reference
   (smart-atom/delete (data :smart-mat)))
  stream)
1. Unhandled clojure.lang.ExceptionInfo
   Could not resolve var: p1__18824#
   {:var p1__18824#, :file "/Users/collinbell/dameon/src/dameon/visual_cortex/stream.clj", :column 15, :line 16}

                  core.clj: 4724  clojure.core/ex-info
                  core.clj: 4724  clojure.core/ex-info
              validate.clj:   28  clojure.tools.analyzer.passes.jvm.validate/eval13535/fn
              MultiFn.java:  229  clojure.lang.MultiFn/invoke
              validate.clj:  265  clojure.tools.analyzer.passes.jvm.validate/validate
              validate.clj:  240  clojure.tools.analyzer.passes.jvm.validate/validate
                  Var.java:  379  clojure.lang.Var/invoke
                passes.clj:  166  clojure.tools.analyzer.passes/compile-passes/fn/fn
                passes.clj:  168  clojure.tools.analyzer.passes/compile-passes/fn/fn
                passes.clj:  168  clojure.tools.analyzer.passes/compile-passes/fn/fn
                passes.clj:  168  clojure.tools.analyzer.passes/compile-passes/fn/fn
                  core.clj: 2603  clojure.core/partial/fn
                   ast.clj:  102  clojure.tools.analyzer.ast/walk/walk
                   ast.clj:   96  clojure.tools.analyzer.ast/walk/walk/walk
                   ast.clj:   51  clojure.tools.analyzer.ast/-update-children/fn
     PersistentVector.java:  341  clojure.lang.PersistentVector/reduce
                  core.clj: 6702  clojure.core/reduce
                  core.clj: 6685  clojure.core/reduce
                   ast.clj:   49  clojure.tools.analyzer.ast/-update-children
                   ast.clj:   46  clojure.tools.analyzer.ast/-update-children
                   ast.clj:   64  clojure.tools.analyzer.ast/update-children-reduced
                   ast.clj:   58  clojure.tools.analyzer.ast/update-children-reduced
                   ast.clj:   99  clojure.tools.analyzer.ast/walk/walk
                   ast.clj:   95  clojure.tools.analyzer.ast/walk
                   ast.clj:   84  clojure.tools.analyzer.ast/walk
                   ast.clj:  115  clojure.tools.analyzer.ast/postwalk
                   ast.clj:  110  clojure.tools.analyzer.ast/postwalk
                   ast.clj:  113  clojure.tools.analyzer.ast/postwalk
                   ast.clj:  110  clojure.tools.analyzer.ast/postwalk
                passes.clj:  170  clojure.tools.analyzer.passes/compile-passes/analyze
                  core.clj: 2541  clojure.core/comp/fn
                  core.clj: 2541  clojure.core/comp/fn
                  core.clj: 2541  clojure.core/comp/fn
                   jvm.clj:  469  clojure.tools.analyzer.jvm/analyze/fn
                  AFn.java:  152  clojure.lang.AFn/applyToHelper
                  AFn.java:  144  clojure.lang.AFn/applyTo
                  core.clj:  657  clojure.core/apply
                  core.clj: 1962  clojure.core/with-bindings*
                  core.clj: 1962  clojure.core/with-bindings*
               RestFn.java:  425  clojure.lang.RestFn/invoke
                   jvm.clj:  456  clojure.tools.analyzer.jvm/analyze
                   jvm.clj:  436  clojure.tools.analyzer.jvm/analyze
            ioc_macros.clj: 1110  clojure.core.async.impl.ioc-macros/state-machine
            ioc_macros.clj: 1108  clojure.core.async.impl.ioc-macros/state-machine
                 async.clj:  418  clojure.core.async/go
                 async.clj:  403  clojure.core.async/go
               RestFn.java:  442  clojure.lang.RestFn/invoke
                  Var.java:  388  clojure.lang.Var/invoke
                  AFn.java:  160  clojure.lang.AFn/applyToHelper
                  Var.java:  700  clojure.lang.Var/applyTo
             Compiler.java: 6796  clojure.lang.Compiler/macroexpand1
                  core.clj: 3975  clojure.core/macroexpand-1
                  core.clj: 3977  clojure.core/macroexpand
                  core.clj: 3977  clojure.core/macroexpand
                  meta.clj:   36  cider.nrepl.middleware.util.meta/macroexpand-all/fn
                  meta.clj:   36  cider.nrepl.middleware.util.meta/macroexpand-all
                  meta.clj:   25  cider.nrepl.middleware.util.meta/macroexpand-all
               RestFn.java:  423  clojure.lang.RestFn/invoke
                  meta.clj:   31  cider.nrepl.middleware.util.meta/macroexpand-all/fn
                  core.clj: 2727  clojure.core/map/fn
              LazySeq.java:   40  clojure.lang.LazySeq/sval
              LazySeq.java:   49  clojure.lang.LazySeq/seq
                 Cons.java:   39  clojure.lang.Cons/next
                   RT.java:  703  clojure.lang.RT/next
                  core.clj:   64  clojure.core/next
                  core.clj: 3114  clojure.core/dorun
                  core.clj: 3120  clojure.core/doall
                  walk.clj:   46  clojure.walk/walk
                  walk.clj:   35  clojure.walk/walk
                  meta.clj:   31  cider.nrepl.middleware.util.meta/macroexpand-all
                  meta.clj:   25  cider.nrepl.middleware.util.meta/macroexpand-all
               RestFn.java:  423  clojure.lang.RestFn/invoke
                  meta.clj:   31  cider.nrepl.middleware.util.meta/macroexpand-all/fn
                  core.clj: 2727  clojure.core/map/fn
              LazySeq.java:   40  clojure.lang.LazySeq/sval
              LazySeq.java:   49  clojure.lang.LazySeq/seq
                 Cons.java:   39  clojure.lang.Cons/next
                   RT.java: 1764  clojure.lang.RT/boundedLength
               RestFn.java:  130  clojure.lang.RestFn/applyTo
                  core.clj:  657  clojure.core/apply
                  walk.clj:   44  clojure.walk/walk
                  walk.clj:   35  clojure.walk/walk
                  meta.clj:   31  cider.nrepl.middleware.util.meta/macroexpand-all
                  meta.clj:   25  cider.nrepl.middleware.util.meta/macroexpand-all
               RestFn.java:  423  clojure.lang.RestFn/invoke
                  meta.clj:   31  cider.nrepl.middleware.util.meta/macroexpand-all/fn
                  core.clj: 2727  clojure.core/map/fn
              LazySeq.java:   40  clojure.lang.LazySeq/sval
              LazySeq.java:   49  clojure.lang.LazySeq/seq
                 Cons.java:   39  clojure.lang.Cons/next
                   RT.java: 1764  clojure.lang.RT/boundedLength
               RestFn.java:  130  clojure.lang.RestFn/applyTo
                  core.clj:  657  clojure.core/apply
                  walk.clj:   44  clojure.walk/walk
                  walk.clj:   35  clojure.walk/walk
                  meta.clj:   31  cider.nrepl.middleware.util.meta/macroexpand-all
                  meta.clj:   25  cider.nrepl.middleware.util.meta/macroexpand-all
               RestFn.java:  423  clojure.lang.RestFn/invoke
                  meta.clj:   31  cider.nrepl.middleware.util.meta/macroexpand-all/fn
                  core.clj: 2727  clojure.core/map/fn
              LazySeq.java:   40  clojure.lang.LazySeq/sval
              LazySeq.java:   49  clojure.lang.LazySeq/seq
                 Cons.java:   39  clojure.lang.Cons/next
                   RT.java:  703  clojure.lang.RT/next
                  core.clj:   64  clojure.core/next
                  core.clj: 3114  clojure.core/dorun
                  core.clj: 3120  clojure.core/doall
                  walk.clj:   46  clojure.walk/walk
                  walk.clj:   35  clojure.walk/walk
                  meta.clj:   31  cider.nrepl.middleware.util.meta/macroexpand-all
                  meta.clj:   25  cider.nrepl.middleware.util.meta/macroexpand-all
               RestFn.java:  423  clojure.lang.RestFn/invoke
                  meta.clj:   31  cider.nrepl.middleware.util.meta/macroexpand-all/fn
                  core.clj: 2727  clojure.core/map/fn
              LazySeq.java:   40  clojure.lang.LazySeq/sval
              LazySeq.java:   49  clojure.lang.LazySeq/seq
                 Cons.java:   39  clojure.lang.Cons/next
                   RT.java:  703  clojure.lang.RT/next
                  core.clj:   64  clojure.core/next
                  core.clj: 3114  clojure.core/dorun
                  core.clj: 3120  clojure.core/doall
                  walk.clj:   46  clojure.walk/walk
                  walk.clj:   35  clojure.walk/walk
                  meta.clj:   31  cider.nrepl.middleware.util.meta/macroexpand-all
                  meta.clj:   25  cider.nrepl.middleware.util.meta/macroexpand-all
               RestFn.java:  423  clojure.lang.RestFn/invoke
                  meta.clj:   31  cider.nrepl.middleware.util.meta/macroexpand-all/fn
                  core.clj: 2727  clojure.core/map/fn
              LazySeq.java:   40  clojure.lang.LazySeq/sval
              LazySeq.java:   49  clojure.lang.LazySeq/seq
                 Cons.java:   39  clojure.lang.Cons/next
                   RT.java:  703  clojure.lang.RT/next
                  core.clj:   64  clojure.core/next
                  core.clj: 3114  clojure.core/dorun
                  core.clj: 3120  clojure.core/doall
                  walk.clj:   46  clojure.walk/walk
                  walk.clj:   35  clojure.walk/walk
                  meta.clj:   31  cider.nrepl.middleware.util.meta/macroexpand-all
                  meta.clj:   25  cider.nrepl.middleware.util.meta/macroexpand-all
               RestFn.java:  423  clojure.lang.RestFn/invoke
                  meta.clj:   31  cider.nrepl.middleware.util.meta/macroexpand-all/fn
                  core.clj: 2727  clojure.core/map/fn
              LazySeq.java:   40  clojure.lang.LazySeq/sval
              LazySeq.java:   49  clojure.lang.LazySeq/seq
                 Cons.java:   39  clojure.lang.Cons/next
       PersistentList.java:   37  clojure.lang.PersistentList$Primordial/doInvoke
               RestFn.java:  137  clojure.lang.RestFn/applyTo
                  core.clj:  657  clojure.core/apply
                  walk.clj:   44  clojure.walk/walk
                  walk.clj:   35  clojure.walk/walk
                  meta.clj:   31  cider.nrepl.middleware.util.meta/macroexpand-all
                  meta.clj:   25  cider.nrepl.middleware.util.meta/macroexpand-all
               RestFn.java:  423  clojure.lang.RestFn/invoke
            instrument.clj:  288  cider.nrepl.middleware.util.instrument/instrument-tagged-code
            instrument.clj:  256  cider.nrepl.middleware.util.instrument/instrument-tagged-code
                 debug.clj:  588  cider.nrepl.middleware.debug/instrument-and-eval
                 debug.clj:  587  cider.nrepl.middleware.debug/instrument-and-eval
                  Var.java:  379  clojure.lang.Var/invoke
                  main.clj:  240  clojure.main/repl/read-eval-print/fn
                  main.clj:  240  clojure.main/repl/read-eval-print
                  main.clj:  258  clojure.main/repl/fn
                  main.clj:  258  clojure.main/repl
                  main.clj:  174  clojure.main/repl
               RestFn.java: 1523  clojure.lang.RestFn/invoke
    interruptible_eval.clj:   87  clojure.tools.nrepl.middleware.interruptible-eval/evaluate/fn
                  AFn.java:  152  clojure.lang.AFn/applyToHelper
                  AFn.java:  144  clojure.lang.AFn/applyTo
                  core.clj:  657  clojure.core/apply
                  core.clj: 1962  clojure.core/with-bindings*
                  core.clj: 1962  clojure.core/with-bindings*
               RestFn.java:  425  clojure.lang.RestFn/invoke
    interruptible_eval.clj:   85  clojure.tools.nrepl.middleware.interruptible-eval/evaluate
    interruptible_eval.clj:   55  clojure.tools.nrepl.middleware.interruptible-eval/evaluate
    interruptible_eval.clj:  222  clojure.tools.nrepl.middleware.interruptible-eval/interruptible-eval/fn/fn
    interruptible_eval.clj:  190  clojure.tools.nrepl.middleware.interruptible-eval/run-next/fn
                  AFn.java:   22  clojure.lang.AFn/run
   ThreadPoolExecutor.java: 1142  java.util.concurrent.ThreadPoolExecutor/runWorker
   ThreadPoolExecutor.java:  617  java.util.concurrent.ThreadPoolExecutor$Worker/run
               Thread.java:  745  java.lang.Thread/run
collinalexbell commented 8 years ago

This is linked to #1775. I am closing