-
-
Notifications
You must be signed in to change notification settings - Fork 110
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
Conjure 4.40.x and Neovim 0.9.0 have 100% CPU by clojure-lsp when opening JAR using zipfile:/// scheme #494
Comments
Update: I'm not entirely sure this is related to Conjure. See related Slack discussion in Clojurians here: https://clojurians.slack.com/archives/CPABC1H61/p1684239469765269 |
😞 not good, I can open it just fine on the latest Conjure development commit and:
It could be LSP related, although that'd surprise me too tbh. The things that changed over some of these Conjure / Neovim transition periods were breaking changes in Neovim's APIs that Conjure had to handle and branch on, so that's the most likely candidate. So they changed some names of methods in the LSP API and I think a few things around how mappings and autocmds worked from the Lua side. So Conjure upgraded with those changes, moving off of the deprecated APIs and naming. Some parts had a switch where if you had an older Neovim it'd support the old approach for a while, so it gracefully degraded or at least supported older and newer Neovim versions. One thing I've run into in the past was that my Tree Sitter grammars were out of date, so when I updated Neovim it crashed or hung until I performed the |
Did you ever get to the bottom of this? Or even get any more clues? |
@Olical sorry for delay, I switch between Python and Clojure every few weeks which affects my responsiveness on these issues. Updating Treesitter parsers and queries has no effect on resolving. I'm running the same version as you. No idea what's causing this. Maybe if we could find a way to catch which neovim / lua calls are hanging it would help - but this has to be viewable outside of the neovim process since it hangs. |
Not a problem, no need to apologise! Thanks for trying those bits and ruling more out, I'll try to reproduce it myself and see if I can narrow it down. I still don't see how it'd be Conjure doing this, but your evidence of it going away at particular versions is quite convincing. |
Suggestion: Try installing Ubuntu on a VM and reproduce |
Update:
|
Similar Neovim setup as #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 thisDebug screenshot when hangs. I'm reached this zipfile via going to definition of component library:
The text was updated successfully, but these errors were encountered: