clojure-lsp / clojure-lsp-intellij

Intellij Plugin for Clojure & ClojureScript development via Language Server (LSP) made in Clojure
https://clojure-lsp.io
MIT License
76 stars 5 forks source link

LSP is stuck on "Initializing" step #41

Closed lucasfcoelho1 closed 3 months ago

lucasfcoelho1 commented 3 months ago

Describe the bug I've installed both Clojure LSP 2.3.1 and Clojure REPL 0.1.6. I was able to start a REPL, but cannot use the LSP. It is stuck on the LSP: Initializing step and I could not navigate through files or functions.

Screenshots image

Environment (please complete the following information):

Additional context Before install I removed the Cursive plugin to avoid any conflicts, but no success.

ericdallo commented 3 months ago

@lucasfcoelho1 can you provide intellij logs when this happens please as described in the issue template?

ericdallo commented 3 months ago

BTW could you try completely uninstalling and installing the plugin first?

abreumatheus commented 3 months ago

@ericdallo I'm having the same issue on latest version of the plugin. How can I provide the Intellij logs you required?

ericdallo commented 3 months ago

https://intellij-support.jetbrains.com/hc/en-us/articles/207241085-Locating-IDE-log-files

abreumatheus commented 3 months ago

@ericdallo Couldn't reproduce it being stuck on "Initializing" anymore, but now it's stuck on "Finding Cache". Important to note that it worked fine with this clojure-example project, but it won't work with bigger and more complex projects.

I've tried deleting the cache, which made me stuck on "Discovering Classpath" with no new info on the logs.

There is a lot of occurrences of this message here in all logs, could be related? INFO - STDOUT - Do not use URL connection as JarURLConnection

Logs: idea_redacted.log

ericdallo commented 3 months ago

Thanks for the info, it's weird indeed, I need to repro that somehow, I hope it's not a macos only issue again though.

There is a lot of occurrences of this message here in all logs, could be related?

It's not related

lgcanto commented 3 months ago

Same thing happened to me for both 2.3.2 and 2.3.1. Tried installing the 2.3.0 version from disk (download here) and it got back to work

ericdallo commented 3 months ago

As far as I manage to understand pairing with @afucher is:

I added sleeps and lots of logs but couldn't find the reason why yet.

abreumatheus commented 3 months ago

@ericdallo I tried downgrading to 2.3.0 like @lgcanto, but it still didn't work. Damn macOS. This is almost making me change to linux hahaha

ericdallo commented 3 months ago

@abreumatheus I'm testing different things in this branch and asking for a coworker that has mac to test, I'll keep this issue updated if any findings

abreumatheus commented 3 months ago

@ericdallo I'm also your coworker btw. If you need anything feel free to reach out. 😁

ericdallo commented 3 months ago

@abreumatheus #42 should fix it 🙌🏻 , I'll wait for any of you test and report

ericdallo commented 3 months ago

This will be fixed on 2.3.3 release