calva

jasalt 2025-03-16T19:56:42.932679Z

Hi, I'm attempting to get Calva to connect to a custom nREPL server written in Phel (PHP lisp) after having basic functionality (clone, describe, eval, completions) working with Cider. However I'm getting stuck with ; Hooking up nREPL sessions ... when connecting with "Generic" setting even though the server does seemingly send expected response of the *ns* evaluation. I skimmed Calva connectToHost and create fn sources but didn't quite get it. Attaching some debug info in thread..

jasalt 2025-03-16T19:57:19.106369Z

- Calva 2.0.491 - VSCodium 1.97.2 - Debian 12 x86 computer Calva REPL buffer output:

; Connecting ...
; Reading port file: file:///home/user/dev/phel-nrepl/.nrepl-port ...
; Using host:port localhost:8888
;  ...
; Hooking up nREPL sessions ...
Calva nREPL Logging output:
1742149592951 -> sent 
{ op: 'eval', code: '*ns*', id: '1' }
Phel server log output:
$ vendor/bin/phel run src/nrepl.phel
: Listening for new connections on 127.0.0.1:8888 [] []
: Connect from a terminal, e.g.  [] []
: nc 127.0.0.1:8888 [] []
: accepted connection from 127.0.0.1:8888 [] []
server.debug: RECEIVED: d2:op4:eval4:code4:*ns*2:id1:1e [] []
server.debug: request: {:code "*ns*" :id "1" :op "eval"} [] []
server.debug: response: {:value "phel_nrepl\\nrepl" :status ["done"] :id "1"} [] []
server.debug: SENDING: d2:id1:16:statusl4:donee5:value16:phel_nrepl\nreple [] []
Does this sound like any known/expected (mis)behavior in such scenario, or could there be better ways to diagnose it? I'm not very familiar with VsCode so might be also a setup issue on my end but continuing testing soon.. WIP server code currently at https://gitlab.com/jasalt/phel-nrepl.