Giter VIP home page Giter VIP logo

Comments (6)

kul avatar kul commented on August 23, 2024

I am still not able to get repl working, keep on hitting this. Any ideas?

boot.user=> clojure.lang.Compiler$CompilerException: java.lang.IllegalArgumentException: No single method: _setup of interface: cljs.repl.IJavaScriptEnv found for function: -setup of protocol: IJavaScriptEnv, compiling:(cemerick/piggieback.clj:144:5)
     java.lang.IllegalArgumentException: No single method: _setup of interface: cljs.repl.IJavaScriptEnv found for function: -setup of protocol: IJavaScriptEnv

from boot-cljs-repl.

pkobrien avatar pkobrien commented on August 23, 2024

@kul You have something that is pulling in an older dependency. Can you post your boot.build and boot.properties files?

from boot-cljs-repl.

kul avatar kul commented on August 23, 2024

@pkobrien Thanks! Seems like i was doing couple of things wrong first being running repl instead of cljs-repl. But yes there was an old piggieback dep coming from one of the deps. Now i am stuck on

java.util.concurrent.ExecutionException: java.lang.IllegalStateException: var: #'clojure.tools.nrepl.middleware.interruptible-eval/queue-eval is not public, compiling:(cemerick/piggieback.clj:240:3)
clojure.lang.Compiler$CompilerException: java.lang.IllegalStateException: var: #'clojure.tools.nrepl.middleware.interruptible-eval/queue-eval is not public, compiling:(cemerick/piggieback.clj:240:3)
        java.lang.IllegalStateException: var: #'clojure.tools.nrepl.middleware.interruptible-eval/queue-eval is not public

from boot-cljs-repl.

kul avatar kul commented on August 23, 2024

Ok there was an older nrepl dep as well. Now I am stuck on how to run the repl. I am doing boot cljs-repl repl. Then (start-repl) gives

java.lang.IllegalStateException: Can't change/establish root binding of: *cljs-repl-env* with set
                             ...                                        
   cemerick.piggieback/cljs-repl                    piggieback.clj:  233
                             ...                                        
adzerk.boot-cljs-repl/start-repl                boot_cljs_repl.clj:  130
                             ...                                        
              boot.user/eval5510  boot.user2491252938845119627.clj:    1
                             ...                                        
               clojure.core/eval                          core.clj: 3081

from boot-cljs-repl.

pkobrien avatar pkobrien commented on August 23, 2024

@kul I haven't seen that error before so it is hard for me to debug with the information you have provided. How does your build.boot file differ from this simple example:

(set-env!
  :source-paths   #{"src"}
  :resource-paths #{"html"}
  :dependencies '[
    [adzerk/boot-cljs          "0.0-3308-0"      :scope "test"]
    [adzerk/boot-cljs-repl     "0.1.10-SNAPSHOT" :scope "test"]
    [adzerk/boot-reload        "0.3.1"           :scope "test"]
    [pandeiro/boot-http        "0.6.3-SNAPSHOT"  :scope "test"]
    [org.clojure/clojure       "1.7.0"]
    [org.clojure/clojurescript "0.0-3308"]])

(require
  '[adzerk.boot-cljs      :refer [cljs]]
  '[adzerk.boot-cljs-repl :refer [cljs-repl start-repl]]
  '[adzerk.boot-reload    :refer [reload]]
  '[pandeiro.boot-http    :refer [serve]])

(deftask dev []
  (set-env! :source-paths #{"src"})
  (comp (serve :dir "target/")
        (watch)
        (speak)
        (reload :on-jsload 'app.core/main)
        (cljs-repl)
        (cljs :source-map true :optimizations :none)))

(deftask build []
  (set-env! :source-paths #{"src"})
  (comp (cljs :optimizations :advanced)))

from boot-cljs-repl.

Deraen avatar Deraen commented on August 23, 2024

If there are still problems, please open specific issues.

from boot-cljs-repl.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.