This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2023-04-04
Channels
- # announcements (1)
- # babashka (7)
- # beginners (25)
- # calva (38)
- # cider (2)
- # clerk (54)
- # clojure (21)
- # clojure-austin (1)
- # clojure-europe (11)
- # clojure-nl (1)
- # clojure-norway (5)
- # clojure-uk (2)
- # clr (16)
- # conjure (2)
- # cursive (15)
- # datalevin (1)
- # datomic (2)
- # emacs (3)
- # fulcro (1)
- # hoplon (14)
- # humbleui (9)
- # hyperfiddle (31)
- # improve-getting-started (12)
- # jobs (7)
- # off-topic (15)
- # reitit (3)
- # releases (1)
- # spacemacs (22)
- # squint (16)
- # tools-deps (8)
- # vim (50)
- # xtdb (33)
IntelliJ question as I couldn't find an answer on google: On a mac, how do you make intellij itself (not a run configuration etc.) aware of command line tools installed via homebrew? On windows I'd add the homebrew path to the user-level PATH and restart IntelliJ.
The usecase is that in some gitattributes files I have tools set up for some file types for filter/diff/merge and the git plugin errors out on them sometimes as it cannot find the tool referenced (it's installed via brew)
Maybe is similar to what these people are seeing: https://stackoverflow.com/questions/27651892/homebrew-installs-nvm-but-nvm-cant-be-found-afterwards Also this is a bug that is very relevant https://youtrack.jetbrains.com/issue/IDEA-162585
Thank you, I don't think they are relevant. I don't have any problem with running the tool from the command line, even the IJ built in terminal. It's only the IJ gui app that is unable to find it.
OK, I misunderstood. Wonder if you put some symbolic links in your home directory /bin folder to them if they’d error out less?
Does this stackoverflow question kinda match what your asking? How do you configure IntelliJ to use the Java, Scala, and SBT that were installed by Homebrew https://stackoverflow.com/questions/46026397/how-do-you-configure-intellij-to-use-the-java-scala-and-sbt-that-were-installe
I think maybe I understand your original question now. You want to make sure the commands installed by brew are known to IntelliJ in it’s terminal and other places. So since Mac OS is a UNIX, you can add the brew install path to your user path. Below is a line of code you can add to your .zshrc file that adds the things you have installed with brew to the users PATH.
export PATH=$PATH:/opt/homebrew/bin
Also, after you save that file, you need to
source ~/.zshrc
to get it to pick up that change. Or you can kill your terminal and open a new one.
You can do a
echo $PATH
to see if it got added correctly.Cheers, I have all that set up and it's working grand from the built-in terminal in IJ. It isn't working for the git plugin however.
Or the built-in Shell Script plugin which asks me from time to time whether I want to install shellcheck - when I already have it installed via brew and use it from terminals without problems
On my wishlist for Cursive is for the REPL window to support more ANSI terminal escape sequences, both more of the CSR codes (colors, bold, italic, etc.) but also some of the ones related to cursor movement (the stuff you need for even primitive Terminal UI functions). How much work is involved in supporting these features?
Might be able to use some of code from: https://github.com/xsc/jansi-clj depending on license