Comments (4)
That doesn't look like anything a timeout would mitigate. Looks like a crash inside nrepl, and not specific to ac-nrepl
. There might be more details in the stacktrace of the wrapped NPE, but getting at it is another issue...
When nrepl.el fires off a request, it's perfectly capable of detecting exceptions thrown in the code it sent. In the above case, nrepl itself has obviously crapped out and so the async "done" response never got to nrepl.el.
FWIW, there was never any support in Slime for timeouts, because it was perfectly valid (if ill-advised) to execute a long-running synchronous command.
from ac-nrepl.
A timeout might allow me to get control of Emacs back - rather than having to totally kill it and restart it (which seems to be my only option when it hangs like that).
Do you know how we can get at the NPE?
from ac-nrepl.
I agree that the timeout would help in this case, but if the backend is broken like this, then all bets are off. I believe that's why Slime never had any safeguards against implementation bugs in the swank backends.
If I were trying to track down the NPE, I'd open up the source of one of the functions in the above stacktrace (e.g. clojure.tools.nrepl.middleware.interruptible_eval/evaluate
), add a catch
and println
there, and then evaluate the new function definition from within nrepl. With any luck it would take effect immediately.
from ac-nrepl.
Through a combination of nrepl.el updates and upgrading lein to the latest preview, this issue seems to have disappeared. Happy happy joy joy!
from ac-nrepl.
Related Issues (20)
- Long docstrings in ac-nrepl-popup-doc get cut off HOT 3
- nrepl.el needs huge amounts of time to do autocompletion HOT 7
- nrepl.el needs huge amounts of time to do autocompletion HOT 1
- Support company-mode? HOT 44
- Is it possible to use ac-nrepl with ritz? HOT 5
- Intermittent error HOT 16
- ac-source-nrepl-vars conflict with yasnippet? HOT 3
- ac-nrepl displays nothing, java hogs cpu HOT 2
- ac-nrepl-popop-doc causes "Wrong type argument"
- ac-nrepl perceptibly slow. Any way to speed up? HOT 5
- Namespace hint gets expanded into the code HOT 12
- No completion for unsourced namespace HOT 3
- references to nrepl-current-ns break when used with cider HOT 1
- Documentation pop-up only in repl, not in file buffers HOT 12
- ac-nrepl makes auto-complete very slow HOT 1
- Solved: ac-nrepl installed via package.el doesn't work because `cider-0.1' is unavailable HOT 2
- Remove eval'd clojure code in favor of cider's cider-dispatch-complete-symbol HOT 9
- ac-fuzzy-complete not works HOT 5
- .emacs slowdown HOT 5
- No pop up document is showing 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 ac-nrepl.