Comments (8)
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.
When I downgrade shadow-cljs to 2.10.15, this behavior disapears.
from re-frame-template.
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.
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.
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.
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
thenlein watch
- opened repo in doom and in
src/cljs/my_app/core.clj
rancider-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 chooselocalhost:8777
(which shows in thelein 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.
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.
Yep, that worked! Jacking in with shadow-cljs seemed to be the key. Thank you, @danielmartincraig !
from re-frame-template.
Related Issues (20)
- Unable to run `lein dev` HOT 8
- npm dependency is culled out when I run lein dev HOT 20
- Installation instructions for newbies HOT 4
- Add lein-scss option HOT 2
- server.clj errors when port is given from environment HOT 1
- REPL Jack-in is not working at the Calva under WSL2 HOT 4
- How to have the app.HASH.js being automatically referenced in the index.html? HOT 1
- Watch backend task HOT 2
- Add cider/cider-nrepl plugin HOT 3
- The required namespace "react" is not available HOT 7
- `lein watch` crashes on new project if `yarn` is used HOT 3
- Calva jack-in and connect broken since shift to shadow-cljs only
- Missing project.clj file HOT 3
- Make a fallback to index.html correctly HOT 1
- Hot reloading can break navigation with +routes option HOT 2
- Conduit is overrun with spam. Demo unviewable
- Browser console error - "The message port was closed before a response was received" HOT 3
- Template resource 'leiningen/new/re_frame/.github/workflows/test.yaml' not found. HOT 2
- clj-kondo config is not rendered correctly
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from re-frame-template.