From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Holger Schurig Newsgroups: gmane.emacs.devel Subject: Re: tree-sitter: conceptional problem solvable at Emacs' level? Date: Fri, 10 Feb 2023 07:41:57 +0000 Message-ID: References: <20230209162559.dclnxg7j5bckx6db@Ergus> <06865b3b-9998-8152-1a53-691f0fa0651f@yandex.ru> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="35658"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Emacs-devel@gnu.org To: Dmitry Gutov , Ergus Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Fri Feb 10 08:42:47 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 1pQO3S-0009AK-N0 for ged-emacs-devel@m.gmane-mx.org; Fri, 10 Feb 2023 08:42:46 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pQO2u-0000pv-Go; Fri, 10 Feb 2023 02:42:12 -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 1pQO2k-0000ly-3C for Emacs-devel@gnu.org; Fri, 10 Feb 2023 02:42:02 -0500 Original-Received: from mail-ej1-x629.google.com ([2a00:1450:4864:20::629]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pQO2i-0003Wb-9X for Emacs-devel@gnu.org; Fri, 10 Feb 2023 02:42:01 -0500 Original-Received: by mail-ej1-x629.google.com with SMTP id jg8so13500032ejc.6 for ; Thu, 09 Feb 2023 23:41:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=cc:to:subject:message-id:date:mime-version:references:in-reply-to :from:from:to:cc:subject:date:message-id:reply-to; bh=DseJSjGLdv2D50Ix9o++c/mTmnMj5h6ITfjrn0y1pdo=; b=nb1FhIkXrK+gDJBAbwjKIIRrIIUxEepZHmSi8gNlE7txoa662UhF0sFvnKZ6eUl4/w WUH1C1sLsDkqdzen+SnVmY21HocrfOgbQddgzXmXR1CzvRI8To/SVLQW4+24I8qsD/3J fXiSyfhHkaMQgjzKN6OZgCDwLcYWayDspFNXQr/ZV+RiziRPL1WqKcdKOv1agfAJAkgc xeJ6wea12+cECtI8iZtTbyO6ohV9ICb/E+GfJrsaTPe0lhiqJiaN32pC8h+G5iETBO/a gPp7Mq3UaGmLR60i/mpS3rV99w4wCiZOT0i9QHHqLyHAiVg4iMyIhd8Dphj9RGnwE9ij rGCg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:mime-version:references:in-reply-to :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=DseJSjGLdv2D50Ix9o++c/mTmnMj5h6ITfjrn0y1pdo=; b=FnoAVREbJfvdFT31qjbHjR9K3F4pOg0IBn5NGG5paVKM2+Vh6OMybjSOBX0mWCdVWi /soOftbYpbKE7AZJQsp3CdwkphCkGuCtLbj9OTUwbTjFJgb+6Adb+tmnpBaHcqRimUPQ SjG1XRXUv0+PCzPyodw/ZDoAzcleumRutdJBfsWdygi2hBZJwUJgEA/KUH/x4fdRMI88 8Z1g+w/SyLveelAzk7YFWS9e62ANngcajvYyVhNyxcSIlr56gIkFVVaI0OvNBUaBm3vR aLh/EBNJdS7aZ+pfgBYDajCrtV5z/buMzhS5O/ndubT44TkyUgxNp/HUW65uEr92zQMr 11OA== X-Gm-Message-State: AO0yUKWF5KXZg2DEQbCzcPXRlwAWWkygjuTbUK0251kqg4EIgSxgcHxT FHRwkP+3dJqIrMtglbaxiNtuXZLWs2r0B14k9V4= X-Google-Smtp-Source: AK7set8wfftJhcg/gRdHoU2WtcNpNj5RQtirwEumzw39xsdwfPvf661vMiaDfunKaCEmbQ5D3VVV5U3H5P/oHxxWMdc= X-Received: by 2002:a17:906:1743:b0:877:7480:c75f with SMTP id d3-20020a170906174300b008777480c75fmr1103230eje.2.1676014918567; Thu, 09 Feb 2023 23:41:58 -0800 (PST) Original-Received: from 753933720722 named unknown by gmailapi.google.com with HTTPREST; Fri, 10 Feb 2023 07:41:57 +0000 In-Reply-To: <06865b3b-9998-8152-1a53-691f0fa0651f@yandex.ru> Received-SPF: pass client-ip=2a00:1450:4864:20::629; envelope-from=holgerschurig@gmail.com; helo=mail-ej1-x629.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 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:303097 Archived-At: > https://github.com/tree-sitter/tree-sitter-cpp/issues/85 >From January 2021 Inconclusive. > https://github.com/tree-sitter/tree-sitter-cpp/issues/40 >From June 2019 Speaks about regenerating the parser based on environment variabled. That means you'll have to have the whole NPM toolchain installed. Final suggestion is replacing things with spaces before feeding the data to tree-sitter. That would keep offsets intact. > https://github.com/tree-sitter/tree-sitter-cpp/issues/146 >From January 2022 Points to alternate parsers for C++ dialects, here for OpenFOAM code. Given that these bugs are sitting there for sometimes years, I can conclude that the tree-sitter project doesn't care at all. Or lacks the manpower. Or assigns it differently. Or that the core developers of it have different itches to scratch. Whatever the reason, I wouldn't hold my breath that anything changes on their side soon. The last idea from their bug 40 sounds like it could be implemented on Emacs side.