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

Add and populate :socket key on nrepl.server.Server #310

Conversation

chancerussell
Copy link
Contributor

This fixes an issue that occurs when using the --interactive option in concert with --socket PATH. Since the Server object has no :socket key, nrepl.cmdline/interactive-repl won't recognize that it should connect to the socket and will exit with an error message.

Also adjusts an existing test to exercise the code path in question.

Before submitting a PR make sure the following things have been done:

  • The commits are consistent with our contribution guidelines
  • You've added tests to cover your change(s)
  • All tests are passing
  • The new code is not generating reflection warnings
  • You've updated the changelog(that only applies to user-visible changes)

Thanks!

If you're just starting out to hack on nREPL you might find this section of its
manual
extremely useful.

This test currently passes a map of its own construction to run-repl, so
it's not testing the return value from start-server, and doesn't catch
the issue described at nrepl#309 .
This fixes an issue that occurs when using the `--interactive` option in
concert with `--socket PATH`. Since the Server object has no :socket
key, nrepl.cmdline/interactive-repl won't recognize that it should
connect to the socket and will exit with an error message.
@chancerussell
Copy link
Contributor Author

Closing in favor of #311

@chancerussell chancerussell deleted the fix-interactive-with-socket-file-minimal branch February 8, 2024 20:44
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

Successfully merging this pull request may close these issues.

--interactive doesn't work with --socket PATH
1 participant