Coder Social home page Coder Social logo

flexsurfer / lein-re-frisk Goto Github PK

View Code? Open in Web Editor NEW
7.0 2.0 3.0 1.89 MB

A Leiningen plugin to start a web server for the remote debug re-frame applications using re-frisk.

Clojure 13.43% HTML 86.57%
re-frisk re-frame tools lein-plugin leiningen lein react-native re-natal electron electron-app

lein-re-frisk's Introduction

lein-re-frisk

Leiningen plugin that starts a web server for the remote debugging re-frame applications (react native, electron, web) using re-frisk-remote library.

Usage

Clojars

NOTE! for shadow-cljs RN projects you can use this libary: https://github.com/flexsurfer/re-frisk-rn

Add [lein-re-frisk "0.5.10"] into your global Leiningen config (~/.lein/profiles.clj) like so:

{:user {:plugins [[lein-re-frisk "0.5.10"]]}}

or into the :plugins vector of your project.clj

(defproject your-project "0.1.1"
  {:plugins [[lein-re-frisk "0.5.10"]]})

Start a web server in the current directory on the default port (4567):

$ lein re-frisk

Or select a different port by supplying the port number on the command line:

$ lein re-frisk 8095

Run re-frame application with the re-frisk-remote library. Enjoy!

lein-re-frisk's People

Contributors

dmitryn avatar dottedmag avatar flexsurfer avatar yenda avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

lein-re-frisk's Issues

AOT compiling breaks projects that use recent tools.reader features

Because the project is AOT compiled, it bundles an older version of tools.reader in a way that can not be overridden.

This breaks any projects that use more recent features of tools.reader, such as clojure 1.9's namespaced map syntax #foo{:bar 1}

I've put up a repro demonstrating the problem here:
https://github.com/danielneal/refrisk-dependency-issue

If the project was not AOT compiled, end users would be able to use :exclusions to use their version of tools.reader, but at the moment this is impossible.

It can be fixed by removing :main here (which I've tried and works)
https://github.com/flexsurfer/lein-re-frisk/blob/master/re-frisk-sidecar/project.clj#L20

Or possibly marking it as ^:skip-aot but I haven't tried that.
https://github.com/technomancy/leiningen/blob/master/sample.project.clj#L210-L217

Update http-kit to 2.3.0

Hello,

Support for javax.xml.bind has been dropped for java 9 or higher, and http-kit resolve the issue in 2.3.0. Otherwise the lein re-frisk does not start.

Best regards,
David

lein re-frisk can't find clojure.jar

โ†’ lein re-frisk
Could not find artifact org.clojure:clojure:jar:1.10.0
This could be due to a typo in :dependencies, file system permissions, or network issues.
If you are behind a proxy, try setting the 'http_proxy' environment variable.

Don't know how to create ISeq from: com.cognitect.transit.impl.TaggedValueImpl error

                                                   java.lang.Thread.run              Thread.java:  834
                       java.util.concurrent.ThreadPoolExecutor$Worker.run  ThreadPoolExecutor.java:  628
                        java.util.concurrent.ThreadPoolExecutor.runWorker  ThreadPoolExecutor.java: 1128
                                                                      ...
                 clojure.core.async.impl.channels.ManyToManyChannel/fn/fn             channels.clj:   95
                                         clojure.core.async/do-alts/fn/fn                async.clj:  252
                                          clojure.core.async/ioc-alts!/fn                async.clj:  383
             clojure.core.async.impl.ioc-macros/run-state-machine-wrapped           ioc_macros.clj:  977
                     clojure.core.async.impl.ioc-macros/run-state-machine           ioc_macros.clj:  973
              taoensso.sente/-start-chsk-router!/fn/state-machine--auto--               sente.cljc: 1529
           taoensso.sente/-start-chsk-router!/fn/state-machine--auto--/fn               sente.cljc: 1529
                                    taoensso.sente/-start-chsk-router!/fn               sente.cljc: 1527
taoensso.sente/-start-chsk-router!/fn/state-machine--auto--/fn/inst-17196               sente.cljc: 1541
                                  re-frisk-sidecar.core/event-msg-handler                 core.clj:   70
                                                                      ...
                                       re-frisk-sidecar.core/eval17952/fn                 core.clj:  111
                                                       clojure.core/swap!                 core.clj: 2353
                                                                      ...
                                                     re-frisk.delta/apply               delta.cljc:   94
                                                 re-frisk.delta/apply-map               delta.cljc:   84
                                         re-frisk.delta/apply-map-changes               delta.cljc:   80
                                                      clojure.core/reduce                 core.clj: 6828
                                              clojure.core.protocols/fn/G            protocols.clj:   13
                                                clojure.core.protocols/fn            protocols.clj:   75
                                       clojure.core.protocols/iter-reduce            protocols.clj:   49
                                      re-frisk.delta/apply-map-changes/fn               delta.cljc:   80
                                                                      ...
                                                   clojure.core/update-in                 core.clj: 6172
                                                   clojure.core/update-in                 core.clj: 6186
                                                clojure.core/update-in/up                 core.clj: 6185
                                                       clojure.core/apply                 core.clj:  667
                                                                      ...
                                   re-frisk.delta/apply-map-changes/fn/fn               delta.cljc:   80
                                                     re-frisk.delta/apply               delta.cljc:   94
                                                 re-frisk.delta/apply-map               delta.cljc:   84
                                         re-frisk.delta/apply-map-changes               delta.cljc:   80
                                                      clojure.core/reduce                 core.clj: 6828
                                              clojure.core.protocols/fn/G            protocols.clj:   13
                                                clojure.core.protocols/fn            protocols.clj:   75
                                       clojure.core.protocols/iter-reduce            protocols.clj:   49
                                      re-frisk.delta/apply-map-changes/fn               delta.cljc:   80
                                                                      ...
                                                   clojure.core/update-in                 core.clj: 6172
                                                   clojure.core/update-in                 core.clj: 6186
                                                clojure.core/update-in/up                 core.clj: 6185
                                                       clojure.core/apply                 core.clj:  667
                                                                      ...
                                   re-frisk.delta/apply-map-changes/fn/fn               delta.cljc:   80
                                                     re-frisk.delta/apply               delta.cljc:   94
                                                 re-frisk.delta/apply-map               delta.cljc:   84
                                         re-frisk.delta/apply-map-changes               delta.cljc:   80
                                                      clojure.core/reduce                 core.clj: 6828
                                              clojure.core.protocols/fn/G            protocols.clj:   13
                                                clojure.core.protocols/fn            protocols.clj:   75
                                       clojure.core.protocols/iter-reduce            protocols.clj:   49
                                      re-frisk.delta/apply-map-changes/fn               delta.cljc:   80
                                                                      ...
                                                   clojure.core/update-in                 core.clj: 6172
                                                   clojure.core/update-in                 core.clj: 6186
                                                clojure.core/update-in/up                 core.clj: 6185
                                                       clojure.core/apply                 core.clj:  667
                                                                      ...
                                   re-frisk.delta/apply-map-changes/fn/fn               delta.cljc:   80
                                                     re-frisk.delta/apply               delta.cljc:   94
                                                 re-frisk.delta/apply-map               delta.cljc:   85
                                                                      ...
                                                       clojure.core/merge                 core.clj: 3041
                                                       clojure.core/merge                 core.clj: 3048
                                                     clojure.core/reduce1                 core.clj:  934
                                                     clojure.core/reduce1                 core.clj:  944
                                                    clojure.core/merge/fn                 core.clj: 3049
                                                        clojure.core/conj                 core.clj:   85
                                                                      ...
java.lang.IllegalArgumentException: Don't know how to create ISeq from: com.cognitect.transit.impl.TaggedValueImpl

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.