Comments (7)
I forked this off after contacting George; he said he didn't have any plans to maintain it: https://github.com/technomancy/limit-break
As is it works with a repl hooked up directly to stdin, so we need to figure out how to hook it into nrepl.
from cider.
In an nrepl.el buffer, evaluating *in*
repeatedly gives you a new object every time:
user> *in*
#<LineNumberingPushbackReader clojure.lang.LineNumberingPushbackReader@59542b5d>
user> *in*
#<LineNumberingPushbackReader clojure.lang.LineNumberingPushbackReader@7d90f66a>
user> *in*
#<LineNumberingPushbackReader clojure.lang.LineNumberingPushbackReader@5bdeaff7>
user> *in*
#<LineNumberingPushbackReader clojure.lang.LineNumberingPushbackReader@c8e4be2>
In lein repl
this returns the same one over and over. I'd guess this is why currently a breakpoint hangs; because it's expecting input on an inputstream that nrepl.el is discarded. Probably also related to the fact that *1
and friends are not being set; I would guess we aren't playing nicely with nREPL's session tracking?
from cider.
Yes, I do believe the sessions are getting discarded after each request. I think this is also why the interruptable-eval stuff in nREPL isn't working either. I have been looking at this and I am working on resolving this.
from cider.
I have version on my interrupt branch which solves the client session issue, because it was needed to be able to interrupt evaluations. Should have that committed within a day or two ... just want to do some refactoring on it. Hopefully this will help resolve the issues you outlined above.
from cider.
Just pushed a fix to the session related issues.
Seems to resolve the issues you mentioned above.
user> *in*
#<LineNumberingPushbackReader clojure.lang.LineNumberingPushbackReader@244c0d1a>
user> *in*
#<LineNumberingPushbackReader clojure.lang.LineNumberingPushbackReader@244c0d1a>
user> *in*
#<LineNumberingPushbackReader clojure.lang.LineNumberingPushbackReader@244c0d1a>
user>
from cider.
I have implemented a session-oriented repl that supports the debug repl and should be easy to integrate: https://github.com/dgrnbrg/redl
I'm still fixing up the API a bit (moving namespaces), but this supports debug-repl, nesting to arbitrary depths, sessions, and I'm working on automatic timeouts to recover from accidental infinite computations.
from cider.
That looks interesting, but I don't understand why a library based on providing a debug repl also contains completion functionality; it's completely unrelated.
I have a feeling that this would be better implemented entirely server-side using the discover endpoint rather than being hard-coded into the client.
from cider.
Related Issues (20)
- jack-in support for Basilisp
- Inconsistent indentation for custom threading macros HOT 7
- Inline error overlays not displaying HOT 21
- How do I cancel debugger-marked items? HOT 1
- State of CIDER survey? HOT 8
- Completion can trigger unwanted user prompts HOT 5
- `cider-docstring--format` breaks some formatting HOT 16
- Rename private functions in `cider-docstring.el` to have proper prefix HOT 4
- Unable to boot cider off a fresh corgi install? HOT 23
- cider using scittle nREPL doesn't send forms to REPL HOT 14
- Remove all code related to sideloading HOT 2
- Fringe indicators for sucessful/failed tests HOT 1
- Defining a now-deprecated variable `x-gtk-use-system-tooltips` HOT 8
- Issue with refresh operation after updating to nrepl `1.3.0-beta2` HOT 15
- cljs repl switches to previous ns after cider-repl-set-ns change followed by single eval (again) HOT 7
- Weird debugger behavior, not firing on some cases
- CIDER connects to remote nrepl server instead of localhost HOT 3
- `cider-pprint-eval-last-sexp-to-comment` forgets "Elapsed time"
- Remove support for sideloading HOT 3
- `cider-doc` not recognize the right function. HOT 3
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 cider.