calva

Magnus 2026-02-01T13:33:04.500039Z

I have problems getting "Interrupt Running Evaluations" to work in a plain project. I've confirmed that the jvm option is applied -Djdk.attach.allowAttachSelf . deps.edn: {:extra-paths ["src"] :aliases {:allow-attach-self {:jvm-opts ["-Djdk.attach.allowAttachSelf"]}}} jack in command: clojure -Sdeps '{:deps {nrepl/nrepl {:mvn/version,"1.5.1"},cider/cider-nrepl {:mvn/version,"0.58.0"}}}' -M:allow-attach-self -m nrepl.cmdline --middleware "[cider.nrepl/cider-middleware]" forever.clj: (ns forever) (comment (while true) ;; cannot be interrupted ) JVM: OpenJDK 64-Bit Server VM (24+36-3646, mixed mode, sharing) Java: version 24 2025-03-18, vendor Oracle Corporation running wsl2 ubuntu on windows 11. when nothing is running and i call "Interrupt Running Evaluations" I get a popup with: 'Interruption command finished (unknown results)' But when (while true) is running there is no such popup, and I need to restart the repl process. Tried re-installing the calva extension, no change. Any suggestions?

pez 2026-02-01T13:39:40.956629Z

Maybe (while true) never returns the repl connection back so the interrupt is never sent… You can check what the nrepl message log says. There’s a command for enabling that log.

Magnus 2026-02-01T16:40:42.800909Z

Think this is it?:

;; normal operation:

1769963937581 -> sent 
{
  id: '35',
  op: 'eval',
  ns: 'forever',
  session: 'a1762fd6-c81e-4a8b-bb07-7604815b0eb9',
  code: '(println "hello world")',
  file: 'src/forever.clj',
  line: 5,
  column: 3,
  pprint: false
}

1769963937584 <- received 3ms
{
  id: '35',
  out: 'hello world\n',
  session: 'a1762fd6-c81e-4a8b-bb07-7604815b0eb9'
}
;; forever code:
1769963712678 -> sent 
{
  id: '23',
  op: 'eval',
  ns: 'forever',
  session: '2b5f9390-89d6-465e-b7fd-5508b38491fc',
  code: '(while true)',
  file: 'src/forever.clj',
  line: 4,
  column: 3,
  pprint: false
}
;; THIS is the log when doing the interrupt running command
1769963717575 -> sent 
{
  id: '24',
  op: 'eval',
  ns: 'user',
  session: '2b5f9390-89d6-465e-b7fd-5508b38491fc',
  code: '(System/getProperty "java.version")',
  pprint: false
}

seancorfield 2026-02-01T15:50:12.178959Z

Has anyone been able to repro https://github.com/BetterThanTomorrow/calva/issues/2979 or have any insight into it? Calva is still reporting nREPL 1.5.1 as the latest version at startup...

michaelwhitford 2026-02-01T16:40:49.293609Z

I see the same issue on my mac.