Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Exceptions and other output from gui thread end up in another buffer when using an Emacs/CIDER REPL #190

Open
m-r-hunt opened this issue Apr 11, 2015 · 1 comment

Comments

@m-r-hunt
Copy link

I'm not sure if this is the correct forum for this post but I want to share this on the off chance someone else has this problem and I can save them an hour's worth of frustration.

TL;DR If you're using Emacs and CIDER REPL with seesaw, exception messages and other output from the swing gui/event thread end up in the buffer named nrepl-server .

After a frustrating debugging session I finally discovered why my custom painting function wasn't working: I had missed an argument to a function and it was throwing an exception. I couldn't see this, or any other output from, for example, println, when running from a REPL. I finally figured out what was going on by running my project from the command line where I got an epic stack trace every time paint was called. After more poking about I finally found out that the output from the swing event thread ends up in another buffer, not in the REPL buffer. I then felt like an idiot.

@daveray
Copy link
Collaborator

daveray commented Apr 13, 2015

It seems like this could be helped with some emacs-specific notes in the documentation, but otherwise, it seems like a cider-specific issue that would affect any code that's printing or logging exceptions in a separate thread. Sorry to hear you had trouble with this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants