From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Yuan Fu Newsgroups: gmane.emacs.devel Subject: Re: Treesit says grammar is unavailable when it Date: Thu, 14 Dec 2023 00:14:01 -0800 Message-ID: References: <1b24fc47-f792-415c-ac59-fcf3a2f5eeb9@gmail.com> <83r0jqs46e.fsf@gnu.org> Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3731.700.6\)) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="19551"; mail-complaints-to="usenet@ciao.gmane.io" Cc: gernotk@gmail.com, emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Thu Dec 14 09:15:35 2023 Return-path: Envelope-to: ged-emacs-devel@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 1rDgsY-0004py-OZ for ged-emacs-devel@m.gmane-mx.org; Thu, 14 Dec 2023 09:15:34 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rDgrV-0008Vp-Sk; Thu, 14 Dec 2023 03:14:29 -0500 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 1rDgrU-0008Va-KO for emacs-devel@gnu.org; Thu, 14 Dec 2023 03:14:28 -0500 Original-Received: from mail-oa1-x2e.google.com ([2001:4860:4864:20::2e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rDgrH-00012n-FS; Thu, 14 Dec 2023 03:14:28 -0500 Original-Received: by mail-oa1-x2e.google.com with SMTP id 586e51a60fabf-20311257937so1710809fac.0; Thu, 14 Dec 2023 00:14:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1702541653; x=1703146453; darn=gnu.org; h=to:references:message-id:content-transfer-encoding:cc:date :in-reply-to:from:subject:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=ihi98A+mpou/fMqyF7UqL8B+QrKACrUfgUFy7YQ20/M=; b=mEhLu5EdC0c0hNfoz5r72gogy9Zau8/GR+C3v+oOESLZpmanxQhz61TAB4rRHJ0aNN U+W20L3oP3Bgh9aDEvQnOKOA4r7zfxuF8uGrqBWuAHsRAaLXYlb7ONPCZTDuR/qQp7hB iFPIXxlIZSlPU8QwAiDptIJ/YBJg21k8HqZMuQIDXbAiyIlgUjTNeoavLVnZ8d6b1Ibs DER/3XYTNezlZ5L263xmY3vADmOgoCu9sPAVMTR8qp0BhcW6qwWacsP9bLcXopG3/cof Z96ia6APtvl1+GXMYB2FK2fj8IjgNpYFzo7ZfYNrOkigt7ZSX8qpF5bjfJ3Ca3gtOfHT yLHg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1702541653; x=1703146453; h=to:references:message-id:content-transfer-encoding:cc:date :in-reply-to:from:subject:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=ihi98A+mpou/fMqyF7UqL8B+QrKACrUfgUFy7YQ20/M=; b=H5PSh5qnuG8JSChyIQUetPfvn3f3BYBZV6UiaCv/GzZpJwoyB1kjkepvgAah5bD5o/ Gjqp1Egm9yINALzp0oxciFyjqp6F4tHGIykB6f045rIFTdxLM3oevbYjJlGFveQqrNP5 xNmbtx3l1qvjSIDhmpfgfnw9FtDz37NNlu2dosHXzacWlrdghZS4lkYW9/icXhQ4wPg5 lajXHj5MOgeBB+O1mtSbassHH6rvqQJu8U2C0p2cV9dDO+9z1f5P9hxxwRyTkebT5ZvN qzZzLDvUMGLsSoWOmKHGbkJS3Nt/IC4JZPdZVRt5E3qE9rmhr/XAVsPizhtPMB8/72/V 9OcA== X-Gm-Message-State: AOJu0Yy57uJRxmqbHPLmO/f63MRKlr6fA0iJfxa4tEl/UO2SXVi94H1U nvcVilvBF9ypdShMfhdktuFjOxXIBupC/Q== X-Google-Smtp-Source: AGHT+IH4MG02H3Jj9FCGlrZh7O7WRO0Pcgu4Oki44hY5RtrGApywStML3O6lWf9mmNEwyhOvqBnxaw== X-Received: by 2002:a05:6870:65aa:b0:203:3741:6893 with SMTP id fp42-20020a05687065aa00b0020337416893mr2053987oab.47.1702541652969; Thu, 14 Dec 2023 00:14:12 -0800 (PST) Original-Received: from smtpclient.apple (172-117-161-177.res.spectrum.com. [172.117.161.177]) by smtp.gmail.com with ESMTPSA id x20-20020a631714000000b0058988954686sm10679348pgl.90.2023.12.14.00.14.12 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Thu, 14 Dec 2023 00:14:12 -0800 (PST) In-Reply-To: <83r0jqs46e.fsf@gnu.org> X-Mailer: Apple Mail (2.3731.700.6) Received-SPF: pass client-ip=2001:4860:4864:20::2e; envelope-from=casouri@gmail.com; helo=mail-oa1-x2e.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, 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-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:313759 Archived-At: > On Dec 13, 2023, at 4:00 AM, Eli Zaretskii wrote: >=20 >> Date: Tue, 12 Dec 2023 19:33:19 -0800 >> From: Yuan Fu >>=20 >> Thanks for sharing this! Eli, this sort of thing might be good = reasons=20 >> to also print the error message from ldopen, rather than simply = saying=20 >> not found? >=20 > I don't mind, but IME relying too much on these error messages is not > always a good idea, since sometimes they are too generic and say > nothing except "this failed". But if it will help in some cases, > let's do it. >=20 > However, I would like to see the patch, since we seem to be signaling > an error already, and the error includes the error message from > dynlib_open? So what am I missing? We were showing error messages from dlopen, and then removed them for = brevity, see e8df6c311fcf59bf23d31b9db2bb8fec9d78fbe7 Maybe we can fold the extra error messages by default? Yuan=