From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: Treesit says grammar is unavailable when it Date: Wed, 13 Dec 2023 14:00:25 +0200 Message-ID: <83r0jqs46e.fsf@gnu.org> References: <1b24fc47-f792-415c-ac59-fcf3a2f5eeb9@gmail.com> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="4186"; mail-complaints-to="usenet@ciao.gmane.io" Cc: gernotk@gmail.com, emacs-devel@gnu.org To: Yuan Fu Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Wed Dec 13 13:01:42 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 1rDNvp-0000sx-6S for ged-emacs-devel@m.gmane-mx.org; Wed, 13 Dec 2023 13:01:41 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rDNv3-0005Uk-Kq; Wed, 13 Dec 2023 07:00:53 -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 1rDNv0-0005Q7-H4 for emacs-devel@gnu.org; Wed, 13 Dec 2023 07:00:51 -0500 Original-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 1rDNuv-0003sm-Lv; Wed, 13 Dec 2023 07:00:47 -0500 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=k1v+hXC773GobBwekV+CyUKDOg+ARk/2NjvAmArrHuU=; b=mjQwNIKxFQ+0 tZalYpIXC2OPI7XcuI0mA6oFl8agoHMzNakKV4DmZxUNbgYVayRfqQ/yaThBrCqb+omInq6eqaONf elpuh81/j0zenB1fIO9939C4PiuFDJButhvma4yHsiHEszdwDxcI9AOvqlym5d73dcD8RPPpueRxY 5WAFYTMzGVKhAK6enuPOwPwnWYFwJhBSb3rbsmZh91BYPthRtjk1YHiNxv0gxWCNBw10ikNHkHHQ1 YeNFCyalrEq7LNyqY5+w25xM/pqqLF0wGxc661lFvNyJfeNhDGzlyhXzl1EJEw872EYYkyfJLk8R3 ZUSCOa4IL/e7ZN/oYrPRqg==; In-Reply-To: <1b24fc47-f792-415c-ac59-fcf3a2f5eeb9@gmail.com> (message from Yuan Fu on Tue, 12 Dec 2023 19:33:19 -0800) 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:313745 Archived-At: > Date: Tue, 12 Dec 2023 19:33:19 -0800 > From: Yuan Fu > > Thanks for sharing this! Eli, this sort of thing might be good reasons > to also print the error message from ldopen, rather than simply saying > not found? 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. 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?