conjure icon indicating copy to clipboard operation
conjure copied to clipboard

Conjure 4.40.x and Neovim 0.9.0 have 100% CPU by clojure-lsp when opening JAR using zipfile:/// scheme

Open oryband opened this issue 1 year ago • 7 comments

Similar Neovim setup as https://github.com/Olical/conjure/issues/481 , except I updated to Neovim 0.9.0 ; Opening the following file hangs the process entirely due to 100% CPU. Downgrading to Conjure 4.39.x or Neovim 0.8.3 resolves the issue. This also occurs if I install Neovim without snap, using apt install with the latest version (0.10.0-dev)

# this is a dependency library for one of my projects, managed via `lein deps`
$ nvim zipfile:///home/ory/.m2/repository/com/stuartsierra/component/1.0.0/component-1.0.0.jar::com/stuartsierra/component.cljc

Calling htop shows this

    PID  CPU%▽MEM%  DISK READ   DISK WRITE Command
 148218 291.3 16.9   58.99 M/s    0.00 B/s /snap/nvim/2801/usr/bin/nvim --embed
 148398 103.0  4.6    0.00 B/s    0.00 B/s /home/ory/.local/share/nvim/mason/bin/clojure-lsp
 148555 103.0  4.6    0.00 B/s    0.00 B/s pool-3-thread-1

Debug screenshot when hangs. I'm reached this zipfile via going to definition of component library:

; Assumed session: Sloughi (Clojure)
; debug: receive
{:id "51a2e239-03c0-450b-a688-2a71ebdc3ebe"
 :ns "user"
 :session "c4ec88da-16c5-4c5c-ae64-826602d463d1"
 :value "nil"}
; debug: receive
{:id "51a2e239-03c0-450b-a688-2a71ebdc3ebe"
 :session "c4ec88da-16c5-4c5c-ae64-826602d463d1"
 :status ["done"]}
; debug: send
{:code "(require 'component.core)"
 :id "485d9f3b-e0ea-4b29-9669-2a81c22402cb"
 :nrepl.middleware.print/options {:associative 1 :length 500 :level 50}
 :nrepl.middleware.print/print "conjure.internal/pprint"
 :op "eval"
 :session "e6a1b3af-bf5f-4b6e-9a93-f6baa713ce49"}
; debug: receive
{:id "485d9f3b-e0ea-4b29-9669-2a81c22402cb"
 :ns "some.ns.from.my.project"
 :session "e6a1b3af-bf5f-4b6e-9a93-f6baa713ce49"
 :value "nil"}
; debug: receive
{:id "485d9f3b-e0ea-4b29-9669-2a81c22402cb"
 :session "e6a1b3af-bf5f-4b6e-9a93-f6baa713ce49"
 :status ["done"]}

oryband avatar May 17 '23 09:05 oryband