From debbugs-submit-bounces@debbugs.gnu.org Sat May 27 19:46:21 2023 Received: (at submit) by debbugs.gnu.org; 27 May 2023 23:46:21 +0000 Received: from localhost ([127.0.0.1]:52706 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1q33c5-0005hb-0V for submit@debbugs.gnu.org; Sat, 27 May 2023 19:46:21 -0400 Received: from lists.gnu.org ([209.51.188.17]:60782) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1q33c3-0005hR-0F for submit@debbugs.gnu.org; Sat, 27 May 2023 19:46:19 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1q33bx-0001jk-6x for bug-gnu-emacs@gnu.org; Sat, 27 May 2023 19:46:13 -0400 Received: from mail-wm1-x32e.google.com ([2a00:1450:4864:20::32e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1q33bv-0003he-8j for bug-gnu-emacs@gnu.org; Sat, 27 May 2023 19:46:12 -0400 Received: by mail-wm1-x32e.google.com with SMTP id 5b1f17b1804b1-3f6094cb2ebso13413545e9.3 for ; Sat, 27 May 2023 16:46:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1685231169; x=1687823169; h=mime-version:message-id:date:subject:to:from:from:to:cc:subject :date:message-id:reply-to; bh=Lyy9qA/IuABBpnDsmAlR0CEo4SnVllXr+PHR+pRkxHo=; b=dd5dESoWwRwV5/AbHyxhTXDOfDdI+8ibcNpIbMJfzeC0LQUfRYdKpRDSy7rJiuvJQY aYyW18r/bu497Uk9qVHxsJQZeX6A4eWOTcOVJLA9+q9a94I9llZVoYWOHUq7TaNGp/ti FbfRtJQYYoPgIrs+yhT3ay4ktm1wn6TsGc23bJw0xrCDrtVRh8xR9CXogqYAAA+rITvn uJyHjfLrQSTFrChnxlnlRgOWm+kX5cvudtuu51OomLDQ72k4I5PgLW9xfNa81++CSwWU peZHIQJeWDuqdDA55RTs/CgF2zp4eoyzpn4sSzksXQ1hE8y1KeX92NckC7Nqi6i62T1o Hygg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1685231169; x=1687823169; h=mime-version:message-id:date:subject:to:from:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=Lyy9qA/IuABBpnDsmAlR0CEo4SnVllXr+PHR+pRkxHo=; b=HjH+7bTThpwAM2qeqAZ/cbWZvRk28SAms1C108w/nCFnisVvAIY7jCtJ6lavz9gDS/ RHwUTQIkHbnSlhtImyDQp8FxYlHLHK8cnNn9eGeiXjEExmDgN0Bjxan9q4OYULSdEwxn wgdcv5+uktVHAIyWhK0SA0CZ9xQC55uwKEY3EV5pJ5icTwVGfpsYPNwe1LHkhYjphN8d zxPoiGT1H+atW3SxKfQLO3Bu4utHz5eF+qxfAfAUD2VT2kyi+mJ6vBg78zXT/yVF0xrM acnlMMtiN9oR+QBQ+rH1QA6v5ckFyZ+d3oPjUhufr6SH2P9GACo5xt1dk8l3h78Aak+a 07pA== X-Gm-Message-State: AC+VfDxandhAO9gMPMVqARa2BIG3TKkUQ/OIkgjt7KtGdyqcpnPgCoY3 /yhHXReT8V/9DBDHk0Z+TweAF5dnbLY= X-Google-Smtp-Source: ACHHUZ6+qQH+zJevKxc6Mu0Cj7EpL1/UKHsCgergWUU4XW7oMHXc5iY1NieLqe1dv7QNwS4cD/dTwQ== X-Received: by 2002:a1c:f616:0:b0:3f6:82a:5d1b with SMTP id w22-20020a1cf616000000b003f6082a5d1bmr5932789wmc.34.1685231168702; Sat, 27 May 2023 16:46:08 -0700 (PDT) Received: from MobileCat.localdomain ([2a01:4b00:89a0:2400:2475:e966:d579:bf7f]) by smtp.gmail.com with ESMTPSA id x21-20020a05600c21d500b003f6041f5a6csm9578106wmj.12.2023.05.27.16.46.07 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Sat, 27 May 2023 16:46:08 -0700 (PDT) From: Jimmy Yuen Ho Wong To: bug-gnu-emacs@gnu.org Subject: 29.0.91; tty emacs on macOS fail to load tree-sitter Date: Sun, 28 May 2023 00:46:08 +0100 Message-ID: MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=2a00:1450:4864:20::32e; envelope-from=wyuenho@gmail.com; helo=mail-wm1-x32e.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.3 (-) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.3 (--) This is a bit of a strange one. I'm testing 2 custom compiled emacs on macOS, both were built via [this recipe](https://github.com/macports/macports-ports/blob/master/editors/emacs/Portfile) but with the latest emacs-29 commit and its corresponding checksums. The NS port built from the emacs-app-devel port (I'm submitting this report from the TTY port), is able to find the tree-sitter language libraries, but not the TTY port, despite both were configured using the exact same prefix, CFLAGS, LDFLAGS and the --with-tree-sitter flag on. ## TTY emacs 29 on macOS: ESC M-: (treesit-language-available-p 'java t) RET ``` (nil not-found ("libtree-sitter-java.so" "libtree-sitter-java.so.0" "libtree-sitter-java.so.0.0" "libtree-sitter-java.dylib" "libtree-sitter-java.dylib.0" "libtree-sitter-java.dylib.0.0") "No such file or directory") ``` ## NS emacs 29: ESC M-: (treesit-language-available-p 'java t) RET ``` t ``` ## Installed MacPorts tree-sitter library versions: ``` tree-sitter @0.20.8_1 (active) tree-sitter-bash @0.19.0_0 (active) tree-sitter-c @0.20.2_0 (active) tree-sitter-c-sharp @0.20.0_0 (active) tree-sitter-cmake @0.1.0_0 (active) tree-sitter-cpp @0.20.0_0 (active) tree-sitter-css @0.19.0_0 (active) tree-sitter-dockerfile @0.1.2_0 (active) tree-sitter-go @0.19.1_0 (active) tree-sitter-go-mod @20220517_0 (active) tree-sitter-html @0.19.0_0 (active) tree-sitter-java @0.20.1_0 (active) tree-sitter-javascript @0.20.0_0 (active) tree-sitter-json @0.19.0_0 (active) tree-sitter-python @0.20.0_0 (active) tree-sitter-ruby @0.19.0_0 (active) tree-sitter-rust @0.20.3_0 (active) tree-sitter-toml @0.5.1_0 (active) tree-sitter-tsx @0.20.2_0 (active) tree-sitter-typescript @0.20.2_0 (active) tree-sitter-yaml @0.5.0_0 (active) ``` ## TTY emacs configuration In GNU Emacs 29.0.91 (build 1, aarch64-apple-darwin22.4.0) of 2023-05-27 built on MobileCat.localdomain System Description: macOS 13.3.1 Configured using: 'configure --prefix=/opt/local --disable-silent-rules --without-ns --without-x --without-dbus --without-gconf --without-libotf --without-m17n-flt --with-libgmp --with-gnutls --with-json --with-xml2 --with-modules --infodir /opt/local/share/info/emacs --with-sqlite3 --with-webp --with-tree-sitter --with-native-compilation=aot 'CFLAGS=-pipe -Os -Wno-attributes -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX13.sdk -arch arm64' 'CPPFLAGS=-I/opt/local/include -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX13.sdk' 'LDFLAGS=-L/opt/local/lib -Wl,-headerpad_max_install_names -Wl,-rpath /opt/local/lib/gcc12 -Wl,-no_pie -Wl,-syslibroot,/Library/Developer/CommandLineTools/SDKs/MacOSX13.sdk -arch arm64'' Configured features: ACL GMP GNUTLS JSON LCMS2 LIBXML2 MODULES NATIVE_COMP NOTIFY KQUEUE PDUMPER SQLITE3 THREADS TREE_SITTER ZLIB Important settings: value of $LANG: en_GB.UTF-8 locale-coding-system: utf-8-unix ## NS emacs configuration In GNU Emacs 29.0.91 (build 1, aarch64-apple-darwin22.4.0, NS appkit-2299.50 Version 13.3.1 (a) (Build 22E772610a)) of 2023-05-26 built on MobileCat.localdomain Windowing system distributor 'Apple', version 10.3.2299 System Description: macOS 13.3.1 Configured using: 'configure --prefix=/opt/local --disable-silent-rules --without-dbus --without-gconf --without-libotf --without-m17n-flt --with-libgmp --with-gnutls --with-json --with-xml2 --with-modules --infodir /opt/local/share/info/emacs --with-sqlite3 --with-webp --with-ns --with-lcms2 --without-harfbuzz --without-imagemagick --without-xaw3d --with-tree-sitter --with-rsvg --with-xwidgets --with-native-compilation=aot 'CFLAGS=-pipe -Os -Wno-attributes -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX13.sdk -arch arm64' 'CPPFLAGS=-I/opt/local/include -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX13.sdk' 'LDFLAGS=-L/opt/local/lib -Wl,-headerpad_max_install_names -Wl,-rpath /opt/local/lib/gcc12 -Wl,-no_pie -Wl,-syslibroot,/Library/Developer/CommandLineTools/SDKs/MacOSX13.sdk -arch arm64'' Configured features: ACL GIF GLIB GMP GNUTLS JPEG JSON LCMS2 LIBXML2 MODULES NATIVE_COMP NOTIFY KQUEUE NS PDUMPER PNG RSVG SQLITE3 THREADS TIFF TOOLKIT_SCROLL_BARS TREE_SITTER WEBP XWIDGETS ZLIB Important settings: value of $LANG: en_GB.UTF-8 locale-coding-system: utf-8-unix From debbugs-submit-bounces@debbugs.gnu.org Sun May 28 01:36:09 2023 Received: (at 63762) by debbugs.gnu.org; 28 May 2023 05:36:09 +0000 Received: from localhost ([127.0.0.1]:53005 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1q394b-0000k7-Dj for submit@debbugs.gnu.org; Sun, 28 May 2023 01:36:09 -0400 Received: from eggs.gnu.org ([209.51.188.92]:45140) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1q394Z-0000jv-4J for 63762@debbugs.gnu.org; Sun, 28 May 2023 01:36:08 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1q394T-0008Cc-Oq; Sun, 28 May 2023 01:36:01 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=5zCBg0oieqX6NxbjFsnBsngFtBZDL9QREnr5oR9Cdag=; b=pGw5ScCLf5TT 4i3tw1dV4bhY539M94AuIbi193BEoOX+ykVeGONyJ72pyHTPW5U4G1bg1D9E2f76/+3GBXNABipg1 cem3ZxQy5IBYA0BPMvYnXObJt+MK7sfuOWQsLuqq3+2d+ysIgIw52J2p5eF32KISJFtfGTilk5ZvZ 9uGmV/cgu8oI4H5mnqyrewOiOIhAZmhomL/ij123CRyaNBYx61G2GQTE88Vu6qtAQlx+n7sLVNrML RjgUI/agjYUqcSYlf/3SXtufecbKtJ3jcvyfuGo99npEzhzu6fhppCvrKWZ3KKlPudb30Opn9Oq6C sMFRaHy41Ab7v82wWrJaaw==; Received: from [87.69.77.57] (helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1q394C-0000Hv-6z; Sun, 28 May 2023 01:35:45 -0400 Date: Sun, 28 May 2023 08:36:18 +0300 Message-Id: <83mt1phval.fsf@gnu.org> From: Eli Zaretskii To: Jimmy Yuen Ho Wong In-Reply-To: (message from Jimmy Yuen Ho Wong on Sun, 28 May 2023 00:46:08 +0100) Subject: Re: bug#63762: 29.0.91; tty emacs on macOS fail to load tree-sitter References: X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 63762 Cc: 63762@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > From: Jimmy Yuen Ho Wong > Date: Sun, 28 May 2023 00:46:08 +0100 > > > This is a bit of a strange one. > > I'm testing 2 custom compiled emacs on macOS, both were built via [this > recipe](https://github.com/macports/macports-ports/blob/master/editors/emacs/Portfile) > but with the latest emacs-29 commit and its corresponding checksums. > > The NS port built from the emacs-app-devel port (I'm submitting this > report from the TTY port), is able to find the tree-sitter language > libraries, but not the TTY port, despite both were configured using the > exact same prefix, CFLAGS, LDFLAGS and the --with-tree-sitter flag on. > > > ## TTY emacs 29 on macOS: > > ESC M-: (treesit-language-available-p 'java t) RET > > ``` > (nil not-found ("libtree-sitter-java.so" "libtree-sitter-java.so.0" "libtree-sitter-java.so.0.0" "libtree-sitter-java.dylib" "libtree-sitter-java.dylib.0" "libtree-sitter-java.dylib.0.0") "No such file or directory") > ``` > > ## NS emacs 29: > > ESC M-: (treesit-language-available-p 'java t) RET > > ``` > t > ``` This probably means the TTY version uses a different list of directories to look for shared libraries, in which case this should be fixed on your end by a suitable system configuration. Emacs just uses the "normal" system procedures for loading shared libraries, AFAIK. Any macOS expert out there who could explain what is going on? From debbugs-submit-bounces@debbugs.gnu.org Sun May 28 04:15:58 2023 Received: (at 63762) by debbugs.gnu.org; 28 May 2023 08:15:59 +0000 Received: from localhost ([127.0.0.1]:53211 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1q3BZG-0005Ft-9d for submit@debbugs.gnu.org; Sun, 28 May 2023 04:15:58 -0400 Received: from mail-qk1-f181.google.com ([209.85.222.181]:46553) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1q3BZE-0005Ff-2J for 63762@debbugs.gnu.org; Sun, 28 May 2023 04:15:56 -0400 Received: by mail-qk1-f181.google.com with SMTP id af79cd13be357-75b0b5c9eb8so131584285a.1 for <63762@debbugs.gnu.org>; Sun, 28 May 2023 01:15:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1685261750; x=1687853750; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=Y4hPejZsQ2PxOsNERevp7EzyNGdaOO4we9MXCSgo1cg=; b=VDJpKkNobX6x/VHR9l9MOi0jeVQVXgboO+1M5jTz1D2WqEozVEG2wYvNEIUuO+CtLW lkN9QlZKQW8z1WMPzajUhfHXcPEi9g4omYlpyD/4/qDB8vBcdso0I3gu4OWW36OI45eX +A7nWt8BfiS+aAFKI7zygKfuazO9r/wmDGafyhLls/M2Bb0k/Gi5AZ1+4aqSk+4TEeb8 pGqNgEYa0Ao/a7NIVpQCiFj5KhT6NTkXNHlvJy1VtLYg6NAuO5wd2/ugwVTa/+Z8isCa AE/XryhKBqdhntI8qsRjNOI962d2/LxcPBE6TGw++dNIUprDjJVPT3sDThj7Y9N4NQfp 1g2A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1685261750; x=1687853750; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=Y4hPejZsQ2PxOsNERevp7EzyNGdaOO4we9MXCSgo1cg=; b=PFprOnGbAYEVrTAuUM2I7XlMejAvHzaX0iI0z6iJqCZTygwhiuaZXrQe//o8HsKNJx cAm/io/gFlmMzpQSxX3zCTrGBCr2t0UymxN1EV3Ck9PH6OEf15HXGaSEL0vlY/KIup2G 5OBqw17rcxQ+UWfU6YQju3VlmT+lswlGwKYM7ARHxypXKS+NrErObshh44YX74Akk9wo iMedHhzVRoSx3jREKyuX+WuJo6796tkRaoGTY52voAx+2P1duEaZAhuXPSggBtYoNBSx l9MMkIoR5dsEXoMrHEZsmC/t9ZA9oYyVZPoByict6r4FJfPOX2VpaO0GiluTeKBymui0 a3WQ== X-Gm-Message-State: AC+VfDzgeE5hxb0xJL6J3MWyCamEMoyJdXQJ3mBTeFlNXAEi1dPUGsAz S/8uRyEtODUymjUX+NBIoUCCcPSPoHv4KpKQRDF8fF258Zg= X-Google-Smtp-Source: ACHHUZ5qxLL7ZSigZG71wuaj/5I4gxx3hCIubsnFULiokHLVsPGj9LCHNTvLEe1FoTvWH3Lpe+xy0PaJw9hLJSFVEZ0= X-Received: by 2002:ad4:5ba3:0:b0:61b:6a44:5f03 with SMTP id 3-20020ad45ba3000000b0061b6a445f03mr6776120qvq.33.1685261750101; Sun, 28 May 2023 01:15:50 -0700 (PDT) MIME-Version: 1.0 References: <83mt1phval.fsf@gnu.org> In-Reply-To: <83mt1phval.fsf@gnu.org> From: Jimmy Yuen Ho Wong Date: Sun, 28 May 2023 09:15:15 +0100 Message-ID: Subject: Re: bug#63762: 29.0.91; tty emacs on macOS fail to load tree-sitter To: Eli Zaretskii Content-Type: multipart/alternative; boundary="000000000000f7edf105fcbc93ac" X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 63762 Cc: 63762@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) --000000000000f7edf105fcbc93ac Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable I only have 1 copy of those tree-sitter libraries in my entire system, and on both the TTY and NS ports, (treesit-available-p) returns t. All of the tree-sitter libraries are in /opt/local/lib, it's just the TTY port isn't able to pick them up. Here's a directory listing ``` rwxr-xr-x 1 root admin 471K 24 Feb 21:06 libtree-sitter-bash.dylib* -rwxr-xr-x 1 root admin 3.8M 24 Feb 21:05 libtree-sitter-c-sharp.dylib* -rwxr-xr-x 1 root admin 372K 24 Feb 21:05 libtree-sitter-c.dylib* -rwxr-xr-x 1 root admin 98K 24 Feb 21:06 libtree-sitter-cmake.dylib* -rwxr-xr-x 1 root admin 1.5M 24 Feb 21:05 libtree-sitter-cpp.dylib* -rwxr-xr-x 1 root admin 82K 24 Feb 21:05 libtree-sitter-css.dylib* -rwxr-xr-x 1 root admin 65K 24 Feb 21:06 libtree-sitter-dockerfile.dylib* -rwxr-xr-x 1 root admin 194K 24 Feb 21:06 libtree-sitter-go.dylib= * -rwxr-xr-x 1 root admin 33K 24 Feb 21:06 libtree-sitter-gomod.dylib* -rwxr-xr-x 1 root admin 72K 27 Feb 14:04 libtree-sitter-html.dylib* -rwxr-xr-x 1 root admin 372K 24 Feb 21:05 libtree-sitter-java.dylib* -rwxr-xr-x 1 root admin 324K 27 Feb 14:04 libtree-sitter-javascript.dylib* -rwxr-xr-x 1 root admin 33K 24 Feb 21:05 libtree-sitter-json.dylib* -rwxr-xr-x 1 root admin 277K 24 Feb 21:05 libtree-sitter-python.dylib* -rwxr-xr-x 1 root admin 1.0M 27 Feb 14:04 libtree-sitter-ruby.dylib* -rwxr-xr-x 1 root admin 760K 24 Feb 21:06 libtree-sitter-rust.dylib* -rwxr-xr-x 1 root admin 34K 24 Feb 21:06 libtree-sitter-toml.dylib* -rwxr-xr-x 1 root admin 1.1M 24 Feb 21:05 libtree-sitter-tsx.dylib* -rwxr-xr-x 1 root admin 1.1M 24 Feb 21:05 libtree-sitter-typescript.dylib* -rwxr-xr-x 1 root admin 213K 24 Feb 21:06 libtree-sitter-yaml.dylib* -rwxr-xr-x 1 root admin 184K 27 Apr 22:31 libtree-sitter.0.0.dylib* lrwxr-xr-x 1 root admin 24B 27 Apr 22:31 libtree-sitter.0.dylib@ -> libtree-sitter.0.0.dylib -rwxr-xr-x 1 root admin 199K 27 Apr 22:31 libtree-sitter.a* lrwxr-xr-x 1 root admin 24B 27 Apr 22:31 libtree-sitter.dylib@ -> libtree-sitter.0.0.dylib ``` Jimmy On Sun, May 28, 2023 at 6:36=E2=80=AFAM Eli Zaretskii wrote: > > From: Jimmy Yuen Ho Wong > > Date: Sun, 28 May 2023 00:46:08 +0100 > > > > > > This is a bit of a strange one. > > > > I'm testing 2 custom compiled emacs on macOS, both were built via [this > > recipe]( > https://github.com/macports/macports-ports/blob/master/editors/emacs/Port= file > ) > > but with the latest emacs-29 commit and its corresponding checksums. > > > > The NS port built from the emacs-app-devel port (I'm submitting this > > report from the TTY port), is able to find the tree-sitter language > > libraries, but not the TTY port, despite both were configured using the > > exact same prefix, CFLAGS, LDFLAGS and the --with-tree-sitter flag on. > > > > > > ## TTY emacs 29 on macOS: > > > > ESC M-: (treesit-language-available-p 'java t) RET > > > > ``` > > (nil not-found ("libtree-sitter-java.so" "libtree-sitter-java.so.0" > "libtree-sitter-java.so.0.0" "libtree-sitter-java.dylib" > "libtree-sitter-java.dylib.0" "libtree-sitter-java.dylib.0.0") "No such > file or directory") > > ``` > > > > ## NS emacs 29: > > > > ESC M-: (treesit-language-available-p 'java t) RET > > > > ``` > > t > > ``` > > This probably means the TTY version uses a different list of > directories to look for shared libraries, in which case this should be > fixed on your end by a suitable system configuration. Emacs just uses > the "normal" system procedures for loading shared libraries, AFAIK. > > Any macOS expert out there who could explain what is going on? > --000000000000f7edf105fcbc93ac Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
I only have 1 copy of those tree-sitter libraries in = my entire system, and on both the TTY and NS ports, (treesit-available-p) r= eturns t. All of the tree-sitter libraries are in /opt/local/lib, it's = just the TTY port isn't able to pick them up. Here's a directory li= sting

```
rwxr-xr-x =C2=A0 =C2=A01 root =C2=A0 =C2=A0 =C2= =A0admin =C2=A0 471K 24 Feb 21:06 libtree-sitter-bash.dylib*
-rwxr-xr-x = =C2=A0 =C2=A01 root =C2=A0 =C2=A0 =C2=A0admin =C2=A0 3.8M 24 Feb 21:05 libt= ree-sitter-c-sharp.dylib*
-rwxr-xr-x =C2=A0 =C2=A01 root =C2=A0 =C2=A0 = =C2=A0admin =C2=A0 372K 24 Feb 21:05 libtree-sitter-c.dylib*
-rwxr-xr-x = =C2=A0 =C2=A01 root =C2=A0 =C2=A0 =C2=A0admin =C2=A0 =C2=A098K 24 Feb 21:06= libtree-sitter-cmake.dylib*
-rwxr-xr-x =C2=A0 =C2=A01 root =C2=A0 =C2= =A0 =C2=A0admin =C2=A0 1.5M 24 Feb 21:05 libtree-sitter-cpp.dylib*
-rwxr= -xr-x =C2=A0 =C2=A01 root =C2=A0 =C2=A0 =C2=A0admin =C2=A0 =C2=A082K 24 Feb= 21:05 libtree-sitter-css.dylib*
-rwxr-xr-x =C2=A0 =C2=A01 root =C2=A0 = =C2=A0 =C2=A0admin =C2=A0 =C2=A065K 24 Feb 21:06 libtree-sitter-dockerfile.= dylib*
-rwxr-xr-x =C2=A0 =C2=A01 root =C2=A0 =C2=A0 =C2=A0admin =C2=A0 1= 94K 24 Feb 21:06 libtree-sitter-go.dylib*
-rwxr-xr-x =C2=A0 =C2=A01 root= =C2=A0 =C2=A0 =C2=A0admin =C2=A0 =C2=A033K 24 Feb 21:06 libtree-sitter-gom= od.dylib*
-rwxr-xr-x =C2=A0 =C2=A01 root =C2=A0 =C2=A0 =C2=A0admin =C2= =A0 =C2=A072K 27 Feb 14:04 libtree-sitter-html.dylib*
-rwxr-xr-x =C2=A0 = =C2=A01 root =C2=A0 =C2=A0 =C2=A0admin =C2=A0 372K 24 Feb 21:05 libtree-sit= ter-java.dylib*
-rwxr-xr-x =C2=A0 =C2=A01 root =C2=A0 =C2=A0 =C2=A0admin= =C2=A0 324K 27 Feb 14:04 libtree-sitter-javascript.dylib*
-rwxr-xr-x = =C2=A0 =C2=A01 root =C2=A0 =C2=A0 =C2=A0admin =C2=A0 =C2=A033K 24 Feb 21:05= libtree-sitter-json.dylib*
-rwxr-xr-x =C2=A0 =C2=A01 root =C2=A0 =C2=A0= =C2=A0admin =C2=A0 277K 24 Feb 21:05 libtree-sitter-python.dylib*
-rwxr= -xr-x =C2=A0 =C2=A01 root =C2=A0 =C2=A0 =C2=A0admin =C2=A0 1.0M 27 Feb 14:0= 4 libtree-sitter-ruby.dylib*
-rwxr-xr-x =C2=A0 =C2=A01 root =C2=A0 =C2= =A0 =C2=A0admin =C2=A0 760K 24 Feb 21:06 libtree-sitter-rust.dylib*
-rwx= r-xr-x =C2=A0 =C2=A01 root =C2=A0 =C2=A0 =C2=A0admin =C2=A0 =C2=A034K 24 Fe= b 21:06 libtree-sitter-toml.dylib*
-rwxr-xr-x =C2=A0 =C2=A01 root =C2=A0= =C2=A0 =C2=A0admin =C2=A0 1.1M 24 Feb 21:05 libtree-sitter-tsx.dylib*
-= rwxr-xr-x =C2=A0 =C2=A01 root =C2=A0 =C2=A0 =C2=A0admin =C2=A0 1.1M 24 Feb = 21:05 libtree-sitter-typescript.dylib*
-rwxr-xr-x =C2=A0 =C2=A01 root = =C2=A0 =C2=A0 =C2=A0admin =C2=A0 213K 24 Feb 21:06 libtree-sitter-yaml.dyli= b*
-rwxr-xr-x =C2=A0 =C2=A01 root =C2=A0 =C2=A0 =C2=A0admin =C2=A0 184K = 27 Apr 22:31 libtree-sitter.0.0.dylib*
lrwxr-xr-x =C2=A0 =C2=A01 root = =C2=A0 =C2=A0 =C2=A0admin =C2=A0 =C2=A024B 27 Apr 22:31 libtree-sitter.0.dy= lib@ -> libtree-sitter.0.0.dylib
-rwxr-xr-x =C2=A0 =C2=A01 root =C2= =A0 =C2=A0 =C2=A0admin =C2=A0 199K 27 Apr 22:31 libtree-sitter.a*
lrwxr-= xr-x =C2=A0 =C2=A01 root =C2=A0 =C2=A0 =C2=A0admin =C2=A0 =C2=A024B 27 Apr = 22:31 libtree-sitter.dylib@ -> libtree-sitter.0.0.dylib
``= `

Jimmy

On Sun, May 28, 2023 at 6:36=E2=80=AFAM Eli Zaretskii <eliz@gnu.org> wrote:
> From: Jimmy Yuen Ho Wong <wyuenho@gmail.com>
> Date: Sun, 28 May 2023 00:46:08 +0100
>
>
> This is a bit of a strange one.
>
> I'm testing 2 custom compiled emacs on macOS, both were built via = [this
> recipe](https://gi= thub.com/macports/macports-ports/blob/master/editors/emacs/Portfile) > but with the latest emacs-29 commit and its corresponding checksums. >
> The NS port built from the emacs-app-devel port (I'm submitting th= is
> report from the TTY port), is able to find the tree-sitter language > libraries, but not the TTY port, despite both were configured using th= e
> exact same prefix, CFLAGS, LDFLAGS and the --with-tree-sitter flag on.=
>
>
> ## TTY emacs 29 on macOS:
>
> ESC M-: (treesit-language-available-p 'java t) RET
>
> ```
> (nil not-found ("libtree-sitter-java.so" "libtree-sitte= r-java.so.0" "libtree-sitter-java.so.0.0" "libtree-sitt= er-java.dylib" "libtree-sitter-java.dylib.0" "libtree-s= itter-java.dylib.0.0") "No such file or directory")
> ```
>
> ## NS emacs 29:
>
> ESC M-: (treesit-language-available-p 'java t) RET
>
> ```
> t
> ```

This probably means the TTY version uses a different list of
directories to look for shared libraries, in which case this should be
fixed on your end by a suitable system configuration.=C2=A0 Emacs just uses=
the "normal" system procedures for loading shared libraries, AFAI= K.

Any macOS expert out there who could explain what is going on?
--000000000000f7edf105fcbc93ac-- From debbugs-submit-bounces@debbugs.gnu.org Sun May 28 04:31:11 2023 Received: (at 63762) by debbugs.gnu.org; 28 May 2023 08:31:11 +0000 Received: from localhost ([127.0.0.1]:53231 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1q3Bny-0005fI-Tw for submit@debbugs.gnu.org; Sun, 28 May 2023 04:31:11 -0400 Received: from eggs.gnu.org ([209.51.188.92]:35008) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1q3Bnx-0005f5-Qz for 63762@debbugs.gnu.org; Sun, 28 May 2023 04:31:10 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1q3Bns-00008t-HN; Sun, 28 May 2023 04:31:04 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=hKq2R2r34cZP9yb57X3pp/el3F2fmr4t2XU+E1dPGi4=; b=Z8Fal2ETGamx 0ybgTeDGeVJsWXiAH8ldNngDRcODyNr6EteMRfKn3UWTGiVoo6a068XKhaKEaRpifBdq8iVHqaDpx N1F+B7/69ydBt/HtUNI0BcgINa4uTyvpRdM01ioJC6U+mOSa32paaN+jpRP/iIkt9eppY1b4829Qs MCkKr9HYQRgGIy9dSZV6xWm/Gy1myUAVOVdG6g03tUpOnkuR7QDlrJEeduQ4j0srYK2DHFuafRN3n D51UMJfwUjHQw8cjJL+1Bi64FaSMKw32MZ38a2PWv/pK/mCjM+GZ4LKfE6aPEEW6QS/SXOJcwr9Cr 0apidFiJIRvPGm6g/26oUQ==; Received: from [87.69.77.57] (helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1q3Bnr-0008H7-SU; Sun, 28 May 2023 04:31:04 -0400 Date: Sun, 28 May 2023 11:31:39 +0300 Message-Id: <83cz2kj1qs.fsf@gnu.org> From: Eli Zaretskii To: Jimmy Yuen Ho Wong In-Reply-To: (message from Jimmy Yuen Ho Wong on Sun, 28 May 2023 09:15:15 +0100) Subject: Re: bug#63762: 29.0.91; tty emacs on macOS fail to load tree-sitter References: <83mt1phval.fsf@gnu.org> X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 63762 Cc: 63762@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > From: Jimmy Yuen Ho Wong > Date: Sun, 28 May 2023 09:15:15 +0100 > Cc: 63762@debbugs.gnu.org > > I only have 1 copy of those tree-sitter libraries in my entire system, and on both the TTY and NS ports, > (treesit-available-p) returns t. All of the tree-sitter libraries are in /opt/local/lib, it's just the TTY port isn't > able to pick them up. Here's a directory listing What I meant to say is that by macOS conventions, a console program looks for shared libraries in different places. But that's a guess; I don't really know how this works on macOS. All I can suggest is step in a debugger through the code in treesit_load_language, and see why the TTY version fails to find the grammar libraries. I don't have this problem on MS-Windows, FWIW. So it is something macOS-specific, and we need a macOS expert to investigate. From debbugs-submit-bounces@debbugs.gnu.org Sun May 28 05:27:59 2023 Received: (at 63762) by debbugs.gnu.org; 28 May 2023 09:28:00 +0000 Received: from localhost ([127.0.0.1]:53273 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1q3Cgx-00078Q-GM for submit@debbugs.gnu.org; Sun, 28 May 2023 05:27:59 -0400 Received: from mail-qv1-f52.google.com ([209.85.219.52]:57770) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1q3Cgv-000788-QK for 63762@debbugs.gnu.org; Sun, 28 May 2023 05:27:58 -0400 Received: by mail-qv1-f52.google.com with SMTP id 6a1803df08f44-6260a2522d9so10170546d6.3 for <63762@debbugs.gnu.org>; Sun, 28 May 2023 02:27:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1685266072; x=1687858072; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=MvxKqFWgVPgOTeCAdRUgWRQDVSWhflblWbh8rkZY1PM=; b=ZCkEdFDaOOokKIZlKt5hXKjIA3J0H9/usDYkNcaBl1dUslDe0p1B26HB3V+4Njw7K/ UQyEEyNRElvIlzwAElIcJa0GJawOlv6QP0NSjlJQRTgYJ4H8Py2o1sHPmDKTYwMEFKLE dyNJw/9NpXDHflMCpxUur2B72P5vE8faQc2c3Q4iSEGnoh0WhOVA5WJ6Vlbe5ZEBDZaT U9BiZ2PRFtFg7iFBq7OZGKm3+w5gRPAiWNDoBtqdFqgtfM4Ua93CSxOHTM0H+x0L3ttn Hd8kn4QsyAp/N0YuNvMk3JYeSlw/eAZmaVRhMJCcSiQSeCWz0GD9Y2R83RTrC5ivusWC i2ag== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1685266072; x=1687858072; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=MvxKqFWgVPgOTeCAdRUgWRQDVSWhflblWbh8rkZY1PM=; b=fb0nx3pvgNn1pB4h6XctaEwRPxT+g3lY2Ya139J9eGA+PBIHnMypQQOEgzEEVqr4KD 2ncaPHfMsErqCtcDju07wm0ZtDBZpWpSQ9ajpt8U1DKtr8z4rZw9+Rp/n+cmmyBzbNO+ p11k6Vc51/7h7PIhqwJ7B/gb8gh/0aHHm0Cn636TE14d5gvlSJvzDUTeLDE9aeoE0joi RU6nLNVlhGGQwrNhODPt76v21jI0q//E8lmyag0wz/pwztfXO9YHjVW5M6f8dkT0eCFm yUFv2vh2kIflEy+HbitwfaokQnTv3vrKI9uXm/fxNLuNKYfqDiu3bWttCOgixL6lRImP wnUA== X-Gm-Message-State: AC+VfDxETgETRXb3Vqmp/v4J7uiSWjRiyuTGfVbqdVk9std1/nadlICq CQi6jKcf0zkQnyiI3ylCJKGW+abWBmDEwN+rxFg= X-Google-Smtp-Source: ACHHUZ7sUqASb0HATbfJzVPjtUKdIeg6RNi7Z4mBXzWs8Lpy+/FYOuM6Z/cdo5FJobtbFRbTjYVQa16o4dropvPxokE= X-Received: by 2002:a05:6214:485:b0:618:e1d9:75b8 with SMTP id pt5-20020a056214048500b00618e1d975b8mr8253643qvb.34.1685266071665; Sun, 28 May 2023 02:27:51 -0700 (PDT) MIME-Version: 1.0 References: <83mt1phval.fsf@gnu.org> <83cz2kj1qs.fsf@gnu.org> In-Reply-To: <83cz2kj1qs.fsf@gnu.org> From: Jimmy Yuen Ho Wong Date: Sun, 28 May 2023 10:27:16 +0100 Message-ID: Subject: Re: bug#63762: 29.0.91; tty emacs on macOS fail to load tree-sitter To: Eli Zaretskii Content-Type: multipart/alternative; boundary="0000000000008dcc6705fcbd95b2" X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 63762 Cc: 63762@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) --0000000000008dcc6705fcbd95b2 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable gdb doesn't work with clang and I have a hard time using lldb, all I can say for sure is, for some reason, `treesit-extra-load-path' is nil when running TTY emacs on macOS, whereas it is set to '("/opt/local/lib") on the NS port. Can Alan help? Jimmy On Sun, May 28, 2023 at 9:31=E2=80=AFAM Eli Zaretskii wrote: > > From: Jimmy Yuen Ho Wong > > Date: Sun, 28 May 2023 09:15:15 +0100 > > Cc: 63762@debbugs.gnu.org > > > > I only have 1 copy of those tree-sitter libraries in my entire system, > and on both the TTY and NS ports, > > (treesit-available-p) returns t. All of the tree-sitter libraries are i= n > /opt/local/lib, it's just the TTY port isn't > > able to pick them up. Here's a directory listing > > What I meant to say is that by macOS conventions, a console program > looks for shared libraries in different places. But that's a guess; I > don't really know how this works on macOS. > > All I can suggest is step in a debugger through the code in > treesit_load_language, and see why the TTY version fails to find the > grammar libraries. I don't have this problem on MS-Windows, FWIW. So > it is something macOS-specific, and we need a macOS expert to > investigate. > --0000000000008dcc6705fcbd95b2 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
gdb doesn't work with clang and I have a hard tim= e using lldb, all I can say for sure is, for some reason, `treesit-extra-lo= ad-path' is nil when running TTY emacs on macOS, whereas it is set to &= #39;("/opt/local/lib") on the NS port.

Can Alan help?
Jimmy


On S= un, May 28, 2023 at 9:31=E2=80=AFAM Eli Zaretskii <eliz@gnu.org> wrote:
> From: Jimmy Yuen Ho Wong <wyuenho@gmail.com>
> Date: Sun, 28 May 2023 09:15:15 +0100
> Cc: 63762@d= ebbugs.gnu.org
>
> I only have 1 copy of those tree-sitter libraries in my entire system,= and on both the TTY and NS ports,
> (treesit-available-p) returns t. All of the tree-sitter libraries are = in /opt/local/lib, it's just the TTY port isn't
> able to pick them up. Here's a directory listing

What I meant to say is that by macOS conventions, a console program
looks for shared libraries in different places.=C2=A0 But that's a gues= s; I
don't really know how this works on macOS.

All I can suggest is step in a debugger through the code in
treesit_load_language, and see why the TTY version fails to find the
grammar libraries.=C2=A0 I don't have this problem on MS-Windows, FWIW.= =C2=A0 So
it is something macOS-specific, and we need a macOS expert to
investigate.
--0000000000008dcc6705fcbd95b2-- From debbugs-submit-bounces@debbugs.gnu.org Sun May 28 05:42:58 2023 Received: (at 63762) by debbugs.gnu.org; 28 May 2023 09:42:58 +0000 Received: from localhost ([127.0.0.1]:53286 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1q3CvS-0001YT-Iw for submit@debbugs.gnu.org; Sun, 28 May 2023 05:42:58 -0400 Received: from eggs.gnu.org ([209.51.188.92]:36142) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1q3CvQ-0001YE-BK for 63762@debbugs.gnu.org; Sun, 28 May 2023 05:42:56 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1q3CvK-00034L-Kn; Sun, 28 May 2023 05:42:51 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=N3ccgZMoEBucKGEOpcAOoQaBBpYht1LTT2My/rDIYDw=; b=dpFFD7GEixsS Zp4vFNI7kjAEdbhHUMwe+nX95ZZ5Wrl0FLi1nT/3vCDuZX1RbsMiGfWhBcbmSwb3rW3sRGaaI87Rl zjI+wBkxy8Wa2S6dSbc+YPyEESBwC7IJGuRvNxgEuz+TCZlLI64EysYVK4d+ok/hPC7XesZuxQ8O2 /zGMbJil5dsJdkMoymtP3pPhXjhTP826Fvx5oMVXwdeyTFJbMnrblBjfgafG3mNLRMy8Z/PJzBk/E SV71mZUi5LQXMuDNv10CKQQ/C/cAa3xhtsOjE5iHOTnNapbFkSRV8ny5UlIrsekiIq8jWM675BL6W CfxKW8daR/vc+JejZ/T7Hg==; Received: from [87.69.77.57] (helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1q3CvJ-0000cb-Mk; Sun, 28 May 2023 05:42:50 -0400 Date: Sun, 28 May 2023 12:43:24 +0300 Message-Id: <83bki4iyf7.fsf@gnu.org> From: Eli Zaretskii To: Jimmy Yuen Ho Wong In-Reply-To: (message from Jimmy Yuen Ho Wong on Sun, 28 May 2023 10:27:16 +0100) Subject: Re: bug#63762: 29.0.91; tty emacs on macOS fail to load tree-sitter References: <83mt1phval.fsf@gnu.org> <83cz2kj1qs.fsf@gnu.org> X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 63762 Cc: 63762@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > From: Jimmy Yuen Ho Wong > Date: Sun, 28 May 2023 10:27:16 +0100 > Cc: 63762@debbugs.gnu.org > > gdb doesn't work with clang and I have a hard time using lldb, all I can say for sure is, for some > reason, `treesit-extra-load-path' is nil when running TTY emacs on macOS, whereas it is set to ' > ("/opt/local/lib") on the NS port. treesit-extra-load-path is nil in my session, and that is its normal value. How did you get it set to something non-nil in the NS build? I see nothing in the sources, so maybe it's your customizations? From debbugs-submit-bounces@debbugs.gnu.org Sun May 28 05:48:23 2023 Received: (at 63762) by debbugs.gnu.org; 28 May 2023 09:48:24 +0000 Received: from localhost ([127.0.0.1]:53311 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1q3D0h-0001ms-Jn for submit@debbugs.gnu.org; Sun, 28 May 2023 05:48:23 -0400 Received: from mail-qv1-f45.google.com ([209.85.219.45]:54718) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1q3D0g-0001m9-5J for 63762@debbugs.gnu.org; Sun, 28 May 2023 05:48:22 -0400 Received: by mail-qv1-f45.google.com with SMTP id 6a1803df08f44-6261890b4d7so6030506d6.1 for <63762@debbugs.gnu.org>; Sun, 28 May 2023 02:48:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1685267296; x=1687859296; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=zskGhiVkBV7vV6BvKiUXDEvUAVknA7FDXPV1WfOkW6Q=; b=AllriUvCRDIBt48UGFPF7wQli/J1oV412F7pHuZ1UYOkHZUTlCCJarEpeB+0P0BL5/ Ce0XLnBFevlZzhm0b4k7WZpMhyVR/hSADMFARbVpgenKM74+EIS/22H1nhPfTbTT0E5z ZPVLgJivTAsev0wVfbKAJi+nYYgqTxcj+fbFl5CARLidstOzYsy+ZLg7DBLBvz8zO8Uk 7GBm5H2gtmROVk2j5pMmYRa+nmjOGzObDdGpjZiw1biypmYcbGmz9JtYV08XVY6q61F7 ceN4q4OzTQMMedR18IKcDFuvWcQiIwsmuDHfNJrzA2+9iI+9YAP1mVcsiKSRfIGTMRNy NSEw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1685267296; x=1687859296; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=zskGhiVkBV7vV6BvKiUXDEvUAVknA7FDXPV1WfOkW6Q=; b=OTrVcRRu4OMSnq++YVG6Zhh7OB7cOEdDHlf0ria+xSomsPiYFbJlQB0QlNgxWuPKlw Bq1Jor2JMs0jDWsTRTeTj5fQS3andOfcni6jMezR01tu9rCyk+Ic06l5Cx9FE/wi/Nyx lR/6FgLnaaiF4VCKx9wov0ntFmg5fCDZee/u0fZckimJClR3fL6sE5da1ZYp4vMwkbAD qgl+pYoia6dJZT84+ECgCHaTbs1CSDF2rtaUAlGIGRek7L2Rie6U1wwGw9OeRL9t1LOj YB0QOaUXFubv+XH5ZD416TtNajew7eyRnrUhL+v4hCEQnTmZRdpbUSiJVnV0eabceP8v eMmw== X-Gm-Message-State: AC+VfDz938tL2GnrLS2p1q2LQc4/9n2u1UMXSQjchyJlTTGr87TDiR+r a1Yfsn0jBX9/8dwDVvSSVa4v1c5We364a6B7ST2dlXaO X-Google-Smtp-Source: ACHHUZ6oCn4XQZeTT3FFiCutPBcbJGO3DAqAWKJtZYmFXCjkcglx0809zYaziu+ljoa1L7acId9f+dENao+Ll3GsRXo= X-Received: by 2002:ad4:4ea9:0:b0:626:94f:6044 with SMTP id ed9-20020ad44ea9000000b00626094f6044mr6756422qvb.2.1685267296528; Sun, 28 May 2023 02:48:16 -0700 (PDT) MIME-Version: 1.0 References: <83mt1phval.fsf@gnu.org> <83cz2kj1qs.fsf@gnu.org> <83bki4iyf7.fsf@gnu.org> In-Reply-To: <83bki4iyf7.fsf@gnu.org> From: Jimmy Yuen Ho Wong Date: Sun, 28 May 2023 10:47:41 +0100 Message-ID: Subject: Re: bug#63762: 29.0.91; tty emacs on macOS fail to load tree-sitter To: Eli Zaretskii Content-Type: multipart/alternative; boundary="0000000000008fabea05fcbdde3b" X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 63762 Cc: 63762@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) --0000000000008fabea05fcbdde3b Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Nope, it's all automatic. Something somewhere in the NS port is setting `treesit-extra-load-path' correctly, despite both ports were compiled with LDFLAGS=3D'-L/opt/local/lib' Jimmy On Sun, May 28, 2023 at 10:42=E2=80=AFAM Eli Zaretskii wrote= : > > From: Jimmy Yuen Ho Wong > > Date: Sun, 28 May 2023 10:27:16 +0100 > > Cc: 63762@debbugs.gnu.org > > > > gdb doesn't work with clang and I have a hard time using lldb, all I ca= n > say for sure is, for some > > reason, `treesit-extra-load-path' is nil when running TTY emacs on > macOS, whereas it is set to ' > > ("/opt/local/lib") on the NS port. > > treesit-extra-load-path is nil in my session, and that is its normal > value. How did you get it set to something non-nil in the NS build? > I see nothing in the sources, so maybe it's your customizations? > --0000000000008fabea05fcbdde3b Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Nope, it's all automatic. Something somewhere in = the NS port is setting `treesit-extra-load-path' correctly, despite bot= h ports were compiled with LDFLAGS=3D'-L/opt/local/lib'

Jimmy


=
On Sun, Ma= y 28, 2023 at 10:42=E2=80=AFAM Eli Zaretskii <eliz@gnu.org> wrote:
> From: Jimmy Yuen Ho Wong <wyuenho@gmail.com>
> Date: Sun, 28 May 2023 10:27:16 +0100
> Cc: 63762@d= ebbugs.gnu.org
>
> gdb doesn't work with clang and I have a hard time using lldb, all= I can say for sure is, for some
> reason, `treesit-extra-load-path' is nil when running TTY emacs on= macOS, whereas it is set to '
> ("/opt/local/lib") on the NS port.

treesit-extra-load-path is nil in my session, and that is its normal
value.=C2=A0 How did you get it set to something non-nil in the NS build? I see nothing in the sources, so maybe it's your customizations?
--0000000000008fabea05fcbdde3b-- From debbugs-submit-bounces@debbugs.gnu.org Sun May 28 05:51:14 2023 Received: (at 63762) by debbugs.gnu.org; 28 May 2023 09:51:14 +0000 Received: from localhost ([127.0.0.1]:53315 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1q3D3S-0001rk-5e for submit@debbugs.gnu.org; Sun, 28 May 2023 05:51:14 -0400 Received: from mail-qv1-f54.google.com ([209.85.219.54]:55792) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1q3D3Q-0001rY-Sv for 63762@debbugs.gnu.org; Sun, 28 May 2023 05:51:13 -0400 Received: by mail-qv1-f54.google.com with SMTP id 6a1803df08f44-62614a2ce61so7716776d6.3 for <63762@debbugs.gnu.org>; Sun, 28 May 2023 02:51:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1685267467; x=1687859467; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=QKU7H4sCWbLUwZGNS0yU6a3lpWlmqW+Ei+A55JF3tZU=; b=DYfJcILvbC2y8bz/lypyJ7Wq4Z8Bpu9FquenQjFxT+O/Ks0ksrb6e8gGj3d/L91cz4 +qoMNVTt5psXQVoOxTadX86k5ADASS80eRMYqcwNpftn+gYltxbTUPkt3wkowYG3lgtM hQzXrVf5oQ7Qhi8ABsPbF8hx+Rx7hO+BGqZrbOAKCh1uLp1Oe0X5aNLHjJjFX2oe1UIz QRAJ5ZFNKmbqmn0uotMfKAWpDVc9JQjUaeyqUiJoh84sisyXIpTLIEbcEcRhqhn3GQgM A+Af5mMxKpfVXlj7Etc6oXr8drO9upmjhljw0EHUpDkSsesdNN7xs98HMFIiv72M/cDh hvRg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1685267467; x=1687859467; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=QKU7H4sCWbLUwZGNS0yU6a3lpWlmqW+Ei+A55JF3tZU=; b=JB5sQUu4+tksvW9plZtuDvNQ9fLPtLMulcBQlax4zVOZT0N8sfaCE1t2A78hLHUhfu hshEVV60JLfGaAPY3bfnGmSplq/CektEOKm6G+ncWe+ORC5e/V0KWnoUOceK1uiMmO0F GVy1lwwfFRn6DOz7fJuGFv9iDCsWEkLTQyGr4NLl/VppE2i2hI9PBykR3hrq6b5aG6To Pp4qVe+Jibhq8DnwtsQNtC1bWj9499+lXmkHs9mYGpQmzxVf2bTNGUDnNTuAhevET2W1 NJBziV97tEsj32H1CJSxBh/2lANWCMHbU385LXLH+8cx7zAIfn0cBK6m4VYNRJdJFlSP 6oGA== X-Gm-Message-State: AC+VfDwaWbBg3yjSYSLn06nJkS0FGJO72e1WwuDr4XDxACCcTDn+LgtT Fgvbqw0bMpVriMaOmAXTa9tw0YJEaa56BLxSChfZAh+mI/4= X-Google-Smtp-Source: ACHHUZ7U60lnZ73Swsd5tNjJI11zbD43OkMl4gymMzJGwHZCuUofs27Q32icSOr+x0Q8RmaxJC2//i3/gE5TfGLXIDE= X-Received: by 2002:a05:6214:c6e:b0:625:aa49:ceb7 with SMTP id t14-20020a0562140c6e00b00625aa49ceb7mr7441839qvj.64.1685267467396; Sun, 28 May 2023 02:51:07 -0700 (PDT) MIME-Version: 1.0 References: <83mt1phval.fsf@gnu.org> <83cz2kj1qs.fsf@gnu.org> <83bki4iyf7.fsf@gnu.org> In-Reply-To: From: Jimmy Yuen Ho Wong Date: Sun, 28 May 2023 10:50:32 +0100 Message-ID: Subject: Re: bug#63762: 29.0.91; tty emacs on macOS fail to load tree-sitter To: Eli Zaretskii Content-Type: multipart/alternative; boundary="000000000000beecf705fcbde81f" X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 63762 Cc: 63762@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) --000000000000beecf705fcbde81f Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Actually, I take it back, it appears to be sit in this patch. https://github.com/macports/macports-ports/blob/master/editors/emacs/files/= site-start.el This appears to be a MacPorts packaging issue, you can close this. Jimmy On Sun, May 28, 2023 at 10:47=E2=80=AFAM Jimmy Yuen Ho Wong wrote: > Nope, it's all automatic. Something somewhere in the NS port is setting > `treesit-extra-load-path' correctly, despite both ports were compiled wit= h > LDFLAGS=3D'-L/opt/local/lib' > > Jimmy > > > On Sun, May 28, 2023 at 10:42=E2=80=AFAM Eli Zaretskii wro= te: > >> > From: Jimmy Yuen Ho Wong >> > Date: Sun, 28 May 2023 10:27:16 +0100 >> > Cc: 63762@debbugs.gnu.org >> > >> > gdb doesn't work with clang and I have a hard time using lldb, all I >> can say for sure is, for some >> > reason, `treesit-extra-load-path' is nil when running TTY emacs on >> macOS, whereas it is set to ' >> > ("/opt/local/lib") on the NS port. >> >> treesit-extra-load-path is nil in my session, and that is its normal >> value. How did you get it set to something non-nil in the NS build? >> I see nothing in the sources, so maybe it's your customizations? >> > --000000000000beecf705fcbde81f Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Actually, I take it back, it appears to be sit in thi= s patch.=C2=A0https://github.com/macports/macport= s-ports/blob/master/editors/emacs/files/site-start.el

This appea= rs to be a MacPorts packaging issue, you can close this.

Jimmy


On Sun, May 28, 20= 23 at 10:47=E2=80=AFAM Jimmy Yuen Ho Wong <wyuenho@gmail.com> wrote:
Nope, it's all automatic= . Something somewhere in the NS port is setting `treesit-extra-load-path= 9; correctly, despite both ports were compiled with LDFLAGS=3D'-L/opt/l= ocal/lib'

Jimmy


On Sun, May 28, 2023= at 10:42=E2=80=AFAM Eli Zaretskii <eliz@gnu.org> wrote:
> From: Jimmy Yuen Ho Wong <wyuenho@gmail.com>
> Date: Sun, 28 May 2023 10:27:16 +0100
> Cc: 63762@d= ebbugs.gnu.org
>
> gdb doesn't work with clang and I have a hard time using lldb, all= I can say for sure is, for some
> reason, `treesit-extra-load-path' is nil when running TTY emacs on= macOS, whereas it is set to '
> ("/opt/local/lib") on the NS port.

treesit-extra-load-path is nil in my session, and that is its normal
value.=C2=A0 How did you get it set to something non-nil in the NS build? I see nothing in the sources, so maybe it's your customizations?
--000000000000beecf705fcbde81f-- From debbugs-submit-bounces@debbugs.gnu.org Sun May 28 06:18:27 2023 Received: (at 63762-done) by debbugs.gnu.org; 28 May 2023 10:18:27 +0000 Received: from localhost ([127.0.0.1]:53328 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1q3DTn-0002XX-0N for submit@debbugs.gnu.org; Sun, 28 May 2023 06:18:27 -0400 Received: from eggs.gnu.org ([209.51.188.92]:36154) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1q3DTk-0002XK-Mn for 63762-done@debbugs.gnu.org; Sun, 28 May 2023 06:18:25 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1q3DTf-0003LW-EI; Sun, 28 May 2023 06:18:19 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=YWrDsjLYb+djeE8r2c3nfMIVY8vOVEeNLUZHnOA/IiI=; b=ADCC6TQ+0zTx 1BjMEHNUdWhxCgnM8+m2W13VJcs2boohIsZNbmiEgg7s1QQncrbNqnBAWzD21YspnNNWBi/lm4bku QLmDHfxEjpTKjEbcppKqEEmJCJ9BRgto55JEVwI1qediFsV3hLFtdXbM3B9ykdje4ptMlwC7pAwtf XJgTDyiqR2sw8mHayZzgWbAC1YW+StZbM3HBBH0S/7chgj7fInZUioGS52a2JSpIa5g9ffDAWeeYc tpYJzCUyalr6zJCWWi3LOAw5I705IGaHvN2zkFGGoLrIUrzYKy9ebwdZdxv+ZTRjUeSh93O2JeNhQ l6jv3oq13aPTLwgc9EU1WQ==; Received: from [87.69.77.57] (helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1q3DTe-0000Fe-Ua; Sun, 28 May 2023 06:18:19 -0400 Date: Sun, 28 May 2023 13:18:54 +0300 Message-Id: <83a5xoiws1.fsf@gnu.org> From: Eli Zaretskii To: Jimmy Yuen Ho Wong In-Reply-To: (message from Jimmy Yuen Ho Wong on Sun, 28 May 2023 10:50:32 +0100) Subject: Re: bug#63762: 29.0.91; tty emacs on macOS fail to load tree-sitter References: <83mt1phval.fsf@gnu.org> <83cz2kj1qs.fsf@gnu.org> <83bki4iyf7.fsf@gnu.org> X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 63762-done Cc: 63762-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > From: Jimmy Yuen Ho Wong > Date: Sun, 28 May 2023 10:50:32 +0100 > Cc: 63762@debbugs.gnu.org > > Actually, I take it back, it appears to be sit in this patch. > https://github.com/macports/macports-ports/blob/master/editors/emacs/files/site-start.el Now everything is clear. Thanks. > This appears to be a MacPorts packaging issue, you can close this. Done. From unknown Fri Aug 15 21:26:32 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Sun, 25 Jun 2023 11:24:05 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator