Clojure REPL: Add Support for Clojure's nREPL #23938
Replies: 15 comments 2 replies
-
👋 Chiming in to show support for this request! This is the main thing holding me back from using zed as my "general editor". |
Beta Was this translation helpful? Give feedback.
-
We just added REPL support to Zed Preview through Jupyter kernels. Let me know if IClojure works for your needs or if there's another kernel you'd recommend. |
Beta Was this translation helpful? Give feedback.
-
In my case it didn't work (doesn't connect to the kernel) but https://github.com/clojupyter/clojupyter worked properly I'm going to try to include clojupyter as a lib of our app to see if I can integrate the REPL inside our env. |
Beta Was this translation helpful? Give feedback.
-
Sweet. I'm going to work on getting more logs visible for end users without having to run a development copy. Hopefully we can figure out why some kernels work and some don't. |
Beta Was this translation helpful? Give feedback.
-
Any updates on this? Thanks. |
Beta Was this translation helpful? Give feedback.
-
Hey any update here? thanks |
Beta Was this translation helpful? Give feedback.
-
There are more logs available in the Zed log, which you can open via the command palette. I'll need some help with someone who is (or can become) familar with IClojure. |
Beta Was this translation helpful? Give feedback.
-
I would love to see first-class support for nREPL (https://github.com/nrepl/nrepl), rather than IClojure, as that’s not how we typically work with Clojure code. https://docs.cider.mx/cider/index.html is an idiomatic repl for clojure. Can zed's REPL feature be extended to use nREPL? PS: |
Beta Was this translation helpful? Give feedback.
-
+1 here for nREPL support. Thanks! |
Beta Was this translation helpful? Give feedback.
-
Unfortunately, without proper integrated repl (nREPL) support, ZED is not a viable coding environment for clojure... please... |
Beta Was this translation helpful? Give feedback.
-
@kernelp4nic There are multiple methods of using clojupyter - one deprecated, one on the wishlist, and two currently active. Which of these did you use? https://github.com/clojupyter/clojupyter/blob/master/doc/usage-scenarios.md |
Beta Was this translation helpful? Give feedback.
-
Could I recommend moving discussion of clojupyter to a separate issue? This issue is about clojure-native repl/nrepl needed for traditional clojure development, and it only muddies the water to discuss jupyter-based solutions. |
Beta Was this translation helpful? Give feedback.
-
I've updated the title to make it more explicit about supporting nrepl. |
Beta Was this translation helpful? Give feedback.
-
+1 here for nREPL support. Thanks! |
Beta Was this translation helpful? Give feedback.
-
Hey! This is definitely an interesting idea and something worth discussing further. We've decided to move feature/enhancements like this to discussions so I'm going to move this there. |
Beta Was this translation helpful? Give feedback.
-
Summary:
Integration of Clojure REPL for Enhanced Development Experience
Title: Add Support for Clojure REPL to Enhance Clojure Development
Description:
Greetings, Zed development team,
I recently explored Zed for my Clojure projects and was truly impressed by its capabilities. The tool's intuitive design and robust feature set prompted me to consider transitioning my entire Clojure workflow into Zed. However, during my exploration, I identified a critical gap that significantly impacts the usability of Zed for Clojure development - the absence of Clojure REPL integration.
The Issue:
Clojure development is heavily reliant on the Read-Eval-Print Loop (REPL), a fundamental tool that enables developers to interactively write and test their code. The ability to connect to an already running REPL or initiate a new REPL session directly within the editor is not just a convenience; it's a necessity. This feature facilitates the execution of entire files (namespaces) or selective code snippets, allowing developers to immediately observe and analyze the outcomes of their code execution.
The Request:
I kindly urge the Zed development team to consider integrating Clojure REPL support into the editor. Such integration should enable:
For a practical example of this functionality, please refer to how the Spacemacs Clojure layer REPL is implemented. This feature set is a cornerstone of Spacemacs' popularity among Clojure developers, despite common performance grievances.
Why This Matters:
Spacemacs, a popular editor among Clojure developers, already incorporates these functionalities, resulting in its widespread adoption within the Clojure community. However, Spacemacs users often report performance issues, particularly on Mac systems, which are prevalent among our community. By integrating Clojure REPL support, Zed has the potential to attract a significant portion of these users, enhancing their development experience while addressing performance concerns.
Conclusion:
The integration of Clojure REPL would mark a significant step forward in making Zed a comprehensive tool for Clojure development. It addresses a crucial need within the community and could dramatically increase Zed's adoption among Clojure developers. Thank you for considering this request, and I am excited about the potential improvements in future versions of Zed.
If applicable, add mockups / screenshots to help present your vision of the feature
Beta Was this translation helpful? Give feedback.
All reactions