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

Is there a way to get an nREPL message log? #210

Closed
PEZ opened this issue Sep 15, 2022 · 6 comments
Closed

Is there a way to get an nREPL message log? #210

PEZ opened this issue Sep 15, 2022 · 6 comments

Comments

@PEZ
Copy link

PEZ commented Sep 15, 2022

Hi! Thanks for providing REPL-y!

I'm debugging an nREPL related issue with Calva and use REPL-y for comparison when I want to remove Calva from the picture. In trying to figure out what REPL-y and Calva might be doing differently it would help a lot with a log of the nREPL messages sent and recieved from REPL-y. Is it possible to enable such a thing? And, if so, how do I do it?

@trptcolin
Copy link
Owner

It’s been a long time since I worked on this but I know there’s a concept of nrepl middleware at the nrepl server side - wonder if that could be helpful here? I don’t think there’s anything built in afaik, but I imagine for debugging purposes you could try tweaking https://github.com/trptcolin/reply/blob/main/src/clj/reply/eval_modes/nrepl.clj to add some println or something?

@PEZ
Copy link
Author

PEZ commented Sep 16, 2022

Thanks! I'll have a look.

@bbatsov
Copy link
Collaborator

bbatsov commented Sep 16, 2022

Experience has taught me that it's much easier to have this logging on the client side, than on the server. :-) See also nrepl/nrepl#85 and https://github.com/lambdaisland/nrepl-proxy

@PEZ
Copy link
Author

PEZ commented Sep 16, 2022

OMG. This in the announcements channel over at Clojurians slack an hour ago:

image

@bbatsov
Copy link
Collaborator

bbatsov commented Sep 16, 2022

@PEZ Coincidence or providence? ;-) (see lambdaisland/nrepl-proxy#1)

@PEZ
Copy link
Author

PEZ commented Sep 16, 2022

Haha, I see what you did there.

@PEZ PEZ closed this as completed Sep 16, 2022
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

3 participants