GithubHelp home page GithubHelp logo

Comments (4)

purcell avatar purcell commented on June 28, 2024

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.

samaaron avatar samaaron commented on June 28, 2024

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.

purcell avatar purcell commented on June 28, 2024

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.

samaaron avatar samaaron commented on June 28, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.