Skip to content

Stop quoting REPL-buffer ports in cider-connect suggestions - #4188

Open
bbatsov wants to merge 1 commit into
masterfrom
fix-repl-buffer-port-suggestions
Open

bbatsov wants to merge 1 commit into
masterfrom
fix-repl-buffer-port-suggestions

Conversation

@bbatsov

@bbatsov bbatsov commented Sep 10, 2026

Copy link
Copy Markdown
Member

The port of an open REPL buffer went through prin1-to-string, which quotes a string, so since #4180 made all ports strings every suggestion from that source read proj:"1234" and got dropped by the liveness gate. The other port sources masked it. The server filter also still handed out a numeric port, so it's normalized there too.

@bbatsov
bbatsov force-pushed the fix-repl-buffer-port-suggestions branch from 2817f90 to 2d24db4 Compare September 10, 2026 08:55
cider--running-local-nrepl-paths turned the port into a string with
prin1-to-string, which is fine for a number but wraps a string in quotes.
Ports read from a REPL buffer were numbers for jack-in and strings for
cider-connect; since the port normalization they are always strings, so
every suggestion from that source came out as proj:"1234" and was then
discarded by the liveness gate, which made the breakage invisible.

Normalize the port there instead, and do the same in the server filter,
which was the last place still handing out a numeric port.
@bbatsov
bbatsov force-pushed the fix-repl-buffer-port-suggestions branch from 2d24db4 to 1044bba Compare September 15, 2026 10:35

This branch has not been deployed

No deployments
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.

1 participant