From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Jimmy Yuen Ho Wong Newsgroups: gmane.emacs.bugs Subject: bug#63762: 29.0.91; tty emacs on macOS fail to load tree-sitter Date: Sun, 28 May 2023 10:27:16 +0100 Message-ID: References: <83mt1phval.fsf@gnu.org> <83cz2kj1qs.fsf@gnu.org> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="0000000000008dcc6705fcbd95b2" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="22946"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 63762@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun May 28 11:28:19 2023 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1q3ChG-0005nS-B0 for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 28 May 2023 11:28:18 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1q3Ch2-0006NE-Fx; Sun, 28 May 2023 05:28:04 -0400 Original-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 1q3Ch0-0006Mp-Lz for bug-gnu-emacs@gnu.org; Sun, 28 May 2023 05:28:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1q3Ch0-0000Q9-E9 for bug-gnu-emacs@gnu.org; Sun, 28 May 2023 05:28:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1q3Ch0-00078h-9s for bug-gnu-emacs@gnu.org; Sun, 28 May 2023 05:28:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Jimmy Yuen Ho Wong Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 28 May 2023 09:28:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 63762 X-GNU-PR-Package: emacs Original-Received: via spool by 63762-submit@debbugs.gnu.org id=B63762.168526608027434 (code B ref 63762); Sun, 28 May 2023 09:28:02 +0000 Original-Received: (at 63762) by debbugs.gnu.org; 28 May 2023 09:28:00 +0000 Original-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 Original-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 Original-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) In-Reply-To: <83cz2kj1qs.fsf@gnu.org> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:262521 Archived-At: --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--