GithubHelp home page GithubHelp logo

Comments (8)

danielmartincraig avatar danielmartincraig commented on May 25, 2024 3

If you want to resolve this, just simply run lein watch at the command line before attempting to jack into this project

from re-frame-template.

danielmartincraig avatar danielmartincraig commented on May 25, 2024

When I downgrade shadow-cljs to 2.10.15, this behavior disapears.

from re-frame-template.

kwrooijen avatar kwrooijen commented on May 25, 2024

I have this issue as well, even when I downgrade to 2.10.15. When I create a shadow-cljs.edn file with the :shadow-cljs info from the generated project.clj file the issue is fixed. I'm not familiar with lein-shadow but I wonder how cider is supposed to parse this?

from re-frame-template.

danielappelt avatar danielappelt commented on May 25, 2024

I think this can be closed. Running either lein watch or lein deps before jacking into the project with cider should fix the problem. Maybe it would be a good idea to add some upgrade instructions to the README.

from re-frame-template.

mike-thompson-day8 avatar mike-thompson-day8 commented on May 25, 2024

I'd be happy to take a PR which added the right words to the README. I'm not a cider user, so it is best I don't write them.

from re-frame-template.

zachmandeville avatar zachmandeville commented on May 25, 2024

Hi! I am encountering this issue as well, even after running lein watch first. I am uncertain if it's an issue with the template, the readme, my emacs config, or me! Could this possibly be re-opened @danielmartincraig ?

Details for my error:

  • I am running doom emacs and just upgraded to latest version as of 2020/12/15
  • ran lein new re-frame my-app +cider +10x +handler +kondo
  • in my-app repo ran lein deps then lein watch
  • opened repo in doom and in src/cljs/my_app/core.clj ran cider-jack-in-cljs
  • it gave me two options for running it: lein and shadow
  • if i choose lein, I get this error about missing instance
  • if I choose shadow, i get server already running, but remain disconnected from repl
  • if i run cider-connect-cljs and choose localhost:8777 (which shows in the lein watch logs as being the nrepl port) I get a repl in emacs, and I can evaluate commands in the repl (e.g. running (js/alert "hi") shows an alert box on localhost:8280)
  • however, I cannot evaluate code in the buffer, or send expressions from my buffer to the repl, as i get the error 'not connected to any repl sessions'

This is my first re-frame project, and I was assuming I'd be able to evaluate commands in the buffer and do var lookups and such in the same way as a clojure project. is that an incorrect assumption?

from re-frame-template.

danielmartincraig avatar danielmartincraig commented on May 25, 2024

So here's what I think will work - after running lein watch, then kill the lein watch. After that, then do cider-jack-in-cljs, and select shadow-cljs. proceed from there, this is what works for me. I think that jacking in while lein watch continues to run causes your cider to not do the c-x c-e evaluations like you are looking for and stuff.

from re-frame-template.

zachmandeville avatar zachmandeville commented on May 25, 2024

Yep, that worked! Jacking in with shadow-cljs seemed to be the key. Thank you, @danielmartincraig !

from re-frame-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.