Coder Social home page Coder Social logo

Comments (5)

yogthos avatar yogthos commented on June 2, 2024

that sounds reasonable

from reagent-template.

yogthos avatar yogthos commented on June 2, 2024

hmm I just tried it and :init doesn't seem to be doing anything:

rap.handler=> (browser-repl)

clojure.lang.Compiler$CompilerException: java.lang.RuntimeException: Unable to resolve symbol: browser-repl in this context, compiling:(/private/var/folders/9k/qk6_g3cd5hlb5jgqp6fc8tcm0000gn/T/form-init2473597430966582649.clj:1:1)
             java.lang.RuntimeException: Unable to resolve symbol: browser-repl in this context

if I run use in the repl then it works

rap.handler=> (use 'rap.dev)
nil
rap.handler=> (browser-repl)
<< Started Weasel server on ws://0.0.0.0:9001 >>
Type `:cljs/quit` to stop the ClojureScript REPL
nil

I think it might make sense to set the repl to the dev ns instead of the handler in the first place, since there's really nothing interesting in the handler now.

from reagent-template.

yogthos avatar yogthos commented on June 2, 2024

I just updated the latest version to use :init-ns {{project-ns}}.dev and it seems to be working with the REPL as expected.

from reagent-template.

alvinfrancis avatar alvinfrancis commented on June 2, 2024

I'm not familiar with lein's templating so maybe there's a different syntax when using quote. I pretty much just gave the example I had hoping it would be that simple. Manually adding the use call to :init on my project.clj worked for me anyway.

In any case, I'd be quite satisfied too with having the REPL start in the dev namespace. It does make more sense.

from reagent-template.

yogthos avatar yogthos commented on June 2, 2024

ok great, the latest version should be working as expected then. :)

from reagent-template.

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.