Comments (10)
Thanks. I probably should support that workflow. And, while at it, do the dependency auto-inject. I don't really like that such a big part of the README is about dependencies. 🤠
No ETA though, I need some good focus hours to get it rightly implemented.
from calva.
This feature is being worked on right now. Mostly by @mseddon, with me as a tester. Hopefully not to far away from release!
And, we will probably have boot
and clj
somewhat covered, @slipset. Sorry for leaving that question hanging for so long!
from calva.
I second this. I think getting the extension to start the repl automatically and connect to it is key for getting more beginners into Clojure (via this extension at least). I previously used a less feature rich extension for Clojure in VS Code that automatically started the repl and connected to it. This helped me quickly get into Clojure when I was just starting out. It would have taken me some time to figure this out otherwise.
I think I actually tried Calva in the past, but couldn't easily figure out how to connect the integrated repl (I had a very limited understanding of the repl and leiningen), so I abandoned Calva and went back to the other extension. Later I got tired of the lack of features and came back to Calva with my new knowledge and got it working. I just wanted to illustrate my perspective as a beginner as it may be representative of the average Clojure beginner.
from calva.
I welcome anyone interested in this feature to join the #calva-dev channel on Clojurians Slack. There you'll find preview builds of Calva where some of this is working and that we need feedback on to get the feature right.
As for CLJ and Boot. We will definitely try to support CLJ, but Boot will probably have to wait beyond version 1 of this feature. We know too little about it, and it takes quite a lot of time to figure out how to analyze the different project definitions, so Leiningen + CLJ + shadow-cljs will be our main targets for now.
from calva.
I was looking over the issues and saw this. Isn't it done? Calva does this currently.
from calva.
Thanks! I'll have a look. Might need some help figuring it out. Will let you know.
from calva.
It seems like Calva (the extension) would need to start the REPL in order for the injection to be done. As it is now Calva merely connects to a previously started REPL.
What does your workflow look like?
from calva.
Thanks for taking a look!
It seems like Calva (the extension) would need to start the REPL in order for the injection to be done. As it is now Calva merely connects to a previously started REPL.
Yes, cider does start the repl for me via a command called cider-jack-in
My typical work flow would be:
- Go to a project root with a project.clj or build.boot.
- Run cider-jack-in
- Have a clojure repl connected editor ready
Apart from starting the repl from the editor, sometimes I do connect to an already started repl (via cider-connect) which in this case would require similar manual setup.
from calva.
I guess that this would let users connect to repls being exposed by boot
and clj
as well?
from calva.
Thanks. This should indeed be closed.
Let me know what else funny stuff you find in the issues-box. 😄
from calva.
Related Issues (20)
- Getting Started REPL fails when there is no folder open HOT 4
- Always include the project creation commands in the REPL menu
- Automatically reveal the configured result output destination on REPL connect
- Do not open auto open the jack-in terminal by default
- Send load/evaluate current file results to the inspector
- Don't show Calva says output channel by default
- Default to reveal the Calva inspector on repl connect
- Add configuration for automatically starting and connecting the project REPL
- add devcontainer setup to mini-project creation
- Powershell sometimes used for jack-in on windows, and it doesn't work
- Remove remaining references to the Output Window HOT 1
- Stop offering to use existing temp files when creating a project
- Joyride jack-in/connect warns about `cljs.repl` not found
- Version 2.0.461 of Calva breaks deps.edn jack-in on some Windows machines HOT 3
- Stop the test runner from loading the test namespace before running tests HOT 1
- Make the user aware about errors during jack-in
- Report progress waiting for shadow-cljs runtimes without printing to output
- Only alert if the Jack-in process is interrupted before the repl is started
- Refactorings not working from Command Palette or shortcut - when the file URL includes embedded spaces
- Connecting to running REPL fails if project has never had Calva REPL file
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 calva.