macchiato-framework / macchiato-template

a template for generating Macchiato-based apps
MIT License
60 stars 9 forks source link

Stuck at "Prompt will show when Figwheel connects to your application" after dependencies upgrade #13

Open nfedyashev opened 4 years ago

nfedyashev commented 4 years ago

Just noticed that I can no longer access the REPL after upgrading to the latest deps:

com.cemerick/piggieback "0.2.1" => 0.2.2 macchiato/core "0.2.16" => 0.2.17 org.clojure/clojurescript "1.10.520" => "1.10.758" javax.xml.bind/jaxb-api "2.3.0" => 2.3.1

lein-doo "0.1.7" => 0.1.11 macchiato/lein-npm "0.6.4" => 0.6.7 lein-cljsbuild "1.1.7" => 1.1.8

Steps to reproduce:

  1. create blank({}) config.edn because it can't boot without it with these deps
  2. lein build in the 1st tab
  3. npm start in the 2nd tab

fooapp@0.1.0-SNAPSHOT start /home/nikita/Projects/fooapp node target/out/fooapp.js

INFO [fooapp.core:26] - oneclickpoll started on 127.0.0.1 : 3000 Figwheel: trying to open cljs reload socket Figwheel: socket connection established

Expected result:

after npm start 1st tab "transforms" into

[Rebel readline] Type :repl/help for online help info ClojureScript 1.10.520 dev:cljs.user=>

Actual result:

after npm start 1st tab is still stuck with into

[Rebel readline] Type :repl/help for online help info

P.S. With vanilla(@master) macchiato-template everything works fine.

nfedyashev commented 4 years ago

From what I see it is caused by org.clojure/clojurescript upgrade.. that's strange

upd. This issues starts to happen since 1.10.741 org.clojure/clojurescript version

yogthos commented 4 years ago

Oh interesting, wonder what causes the breakage there. Incidentally, I was thinking it might make more sense to switch to using shadow-cljs instead since it has better NPM integration, and the project wouldn't even need to use Leiningen at that point. It also looks like figwheel is no longer actively maintained.

Not sure when I'd get the time to do the update though. If it's something you wouldn't mind helping with a PR would be welcome.

nfedyashev commented 4 years ago

Not sure when I'd get the time to do the update though. If it's something you wouldn't mind helping with a PR would be welcome.

I've just started learning Clojure very recently so not sure if I can do a proper PR yet.

The only contribution that I can do right now is a small donation, which I just did :) And a small thank your all your work in the Clojure community.

yogthos commented 4 years ago

No worries, and thanks for the noting the issue. If you are just starting out, I'd also recommend taking a look at luminus. Using JVM on the server-side is a lot more common for Clojure, so you'll likely have a smoother overall experience there. Most common setup tends to be to use Clojure on the backend with ClojureScript on the frontend.