viebel/klipse

core.async macro expansion is causing issues with klipse

samedhi opened this issue · 1 comments

Smallest reproducing case. It seems like core.async is just having issues. Does not print the "This does not" in the following code.

index.html

<!doctype html>
<html lang="en">
    <head>
    <meta charset='utf-8'>
    <link rel="stylesheet"
      type="text/css" 
      href="https://storage.googleapis.com/app.klipse.tech/css/codemirror.css">
   </head>
   <pre>
     <code class="language-klipse">
     (ns firemore.readme
      (:require
       [cljs.core.async :as async])
      (:require-macros
       [cljs.core.async.macros :refer [go-loop go]]))

      (js/console.log "This works fine")

      (go (js/console.log "This does not"))
      </code>
  </pre>
  <script>
  window.klipse_settings = {
     // css selector the elements to klipsify
     selector: '.language-klipse'
  };
  </script>
  <script src="https://storage.googleapis.com/app.klipse.tech/plugin/js/klipse_plugin.js"></script>
</html>

OUTPUT

Unexpected error (Error) macroexpanding cljs.core.async.impl.ioc-macros$macros/aset-all! at (<cljs repl>:1:1).
Wrong number of args (5) passed to cljs.core.async.impl.ioc-macros$macros/aset-all!

I think I fixed it.
I had to upgrade the analysis cache to the latest version of Andare - A fork of core.async ported for use with self-hosted ClojureScript.

Please confirm and close the issue, if appropriate.