This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2023-11-11
Channels
- # announcements (1)
- # aws (5)
- # beginners (8)
- # biff (7)
- # calva (32)
- # cider (26)
- # clj-kondo (6)
- # clojure (100)
- # clojure-europe (6)
- # clojure-greece (1)
- # clojurescript (15)
- # core-logic (3)
- # fulcro (2)
- # honeysql (4)
- # hoplon (39)
- # hyperfiddle (11)
- # lsp (12)
- # other-languages (2)
- # podcasts-discuss (1)
- # squint (30)
I need a Macos brew user willing to test a clojure-lsp-intellij fix, LMK in the 🧵 if wanna help
It's a issue with macos users where clojure-lsp-intellij can't find lein
or clojure
during classpath lookup on server startup
First thing is to confirm you have the issue:
• install latest clojure-lsp-intellij plugin from jetbrains marketplace
• make sure you have lein or clojure installed via brew
• run rm -rf .lsp/.cache
in a lein or deps.edn project
• open that project with intellij and confirm during classpath lookup you receive a message saying classpath lookup failed because can't find lein or clojure
Did you ever get the macOS testing help you needed here @UKFSJSM38?
I have encountered a similar sounding issue via Calva. Anything I had installed via brew seemed unavailable to calva on startup. It would give issues like the below picture. Even though /opt/homebrew/bin etc was on my path. And the relevant binaries were there. (And available in vscode’s inline terminal) The workaround solution for me was to add /opt/homebrew/bin to the /etc/paths file which then solved the problem. I still don’t fully follow how it all hooks together. But that might give you some breadcrumbs to follow? If I have a bit of time later I will install IntelliJ and see if I can replicate.
Thank you vry much @U0349R5BALA I haven't tried that yet and have no clue why that would work as well, but what I researched so far: MacOS launcher GUIs (finder, spotlight etc) launches apps with a completly empty shell, not even the bash one, and that cause programs to not have the same PATH env that you have on zsh, bash etc, that's why launching vscode, intellij etc from your terminal usually fixes the issue. This is explained on this Intellij class https://github.com/JetBrains/intellij-community/blob/master/platform/util/src/com/intellij/util/EnvironmentUtil.java#L72, I'm using that for clojure-lsp-intellij but it's not working yet, will try your suggestion (actually ask someone to try as I don't have a mac hehe)
Did you need to restart your mac @U0349R5BALA?
I think I did. And just to confirm did you add both /bin/ and /sbin/? like so:
robertwood@Roberts-MBP storage % cat /etc/paths
/opt/homebrew/bin
/opt/homebrew/sbin
/usr/local/bin
/System/Cryptexes/App/usr/bin
/usr/bin
/bin
/usr/sbin
/sbin
arthur.fucher<@U0EL66M19> ~ % cat /etc/paths
/usr/local/bin
/System/Cryptexes/App/usr/bin
/usr/bin
/bin
/usr/sbin
/sbin
/opt/homebrew/bin
/opt/homebrew/sbin