From 9e3f92a3a47bf94949272cc7eb928a206635d191 Mon Sep 17 00:00:00 2001 From: Manny Schneck Date: Wed, 31 Jul 2019 12:01:02 -0500 Subject: [PATCH] fix: bump languagetool jar search depth on macos MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit On macos, the libexec directory for languagetool, as installed by brew, lives in a version directory. To find the jar, we need to increase the search depth, since the version directory will change with every version. Example of brew-installed languagetool: -------- $ tree -L 2 /usr/local/Cellar/languagetool => /usr/local/Cellar/languagetool └── 4.6 ├── CHANGES.md ├── CHANGES.txt ├── COPYING.txt ├── INSTALL_RECEIPT.json ├── README.md ├── bin └── libexec --- modules/app/write/config.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/app/write/config.el b/modules/app/write/config.el index e82a0137c..a367a3701 100644 --- a/modules/app/write/config.el +++ b/modules/app/write/config.el @@ -23,7 +23,7 @@ (locate-file "libexec/languagetool-commandline.jar" (doom-files-in "/usr/local/Cellar/languagetool" :type 'dirs - :depth 1))) + :depth 2))) (IS-LINUX "/usr/share/java/languagetool/languagetool-commandline.jar")))))