From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: =?UTF-8?Q?Jo=C3=A3o_?= =?UTF-8?Q?T=C3=A1vora?= Newsgroups: gmane.emacs.bugs Subject: bug#65810: 30.0.50; C-M-f and related functions error out in c++-ts-mode Date: Thu, 07 Sep 2023 18:48:07 +0100 Message-ID: <87bkedlvs8.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="10680"; mail-complaints-to="usenet@ciao.gmane.io" Cc: eliz@gnu.org To: 65810@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Sep 07 19:46:18 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 1qeJ58-0002Uj-8q for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 07 Sep 2023 19:46:18 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qeJ4r-0000Uf-Va; Thu, 07 Sep 2023 13:46:01 -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 1qeJ4q-0000UC-Ny for bug-gnu-emacs@gnu.org; Thu, 07 Sep 2023 13:46:00 -0400 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qeJ4q-0001Xa-FQ for bug-gnu-emacs@gnu.org; Thu, 07 Sep 2023 13:46:00 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qeJ4s-0005hC-7v for bug-gnu-emacs@gnu.org; Thu, 07 Sep 2023 13:46:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: =?UTF-8?Q?Jo=C3=A3o_?= =?UTF-8?Q?T=C3=A1vora?= Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 07 Sep 2023 17:46:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 65810 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.169410874121865 (code B ref -1); Thu, 07 Sep 2023 17:46:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 7 Sep 2023 17:45:41 +0000 Original-Received: from localhost ([127.0.0.1]:41341 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qeJ4W-0005gZ-FI for submit@debbugs.gnu.org; Thu, 07 Sep 2023 13:45:41 -0400 Original-Received: from lists.gnu.org ([2001:470:142::17]:47530) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qeJ4S-0005gL-U6 for submit@debbugs.gnu.org; Thu, 07 Sep 2023 13:45:39 -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 1qeJ4L-0008Vo-B1 for bug-gnu-emacs@gnu.org; Thu, 07 Sep 2023 13:45:29 -0400 Original-Received: from mail-wm1-x32b.google.com ([2a00:1450:4864:20::32b]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qeJ4H-0000Yv-Py; Thu, 07 Sep 2023 13:45:28 -0400 Original-Received: by mail-wm1-x32b.google.com with SMTP id 5b1f17b1804b1-401d6f6b2e0so15843445e9.1; Thu, 07 Sep 2023 10:45:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1694108723; x=1694713523; darn=gnu.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=mAlxGgM2/9Pi6MbpZrocvin2Aty97OEb3zs/tFsnOM0=; b=R/JcrPQylK5Vw7KSVhoyX2Kd6MzGUgECBiOWJygQn3e7zIVk7rRIOiNxH6Qn2W1Hqn XJxE+gjg9Vr0FR+0GlzGjz0YfYK1JB88i+J6ZO+EzhSdHpmkVtmcHB0jsok3/oYH5sX4 1swCSvBtXx/EO+EjuLAriAcd0xD2dn/SVRuLoI/ZXlALhYKibculDnSLijqtdER7t1em FrNARJ8/qCCkW9nUXo+PaQmqG1d7h9iW+0+T60Lul9EisrEmDCMguqykrius8+FrPL7k Es7zeCOeziJR6Pi7aKA1yuFPeKcrTtlBMwJabxpALLE8mF8Ot7aPhrU1/kTGsTgRMhmV H+wg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1694108723; x=1694713523; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=mAlxGgM2/9Pi6MbpZrocvin2Aty97OEb3zs/tFsnOM0=; b=L0pzFoBPSwnoJyXGNRl18wUkTzO4Sar3nEov3oFmIhDpeCKXvfmc3wE5BwuPhaoVxu rqwLSzG9/um8YTXBqeiUJMqbYa7ISj2oC1lNQq1NUATNiL/pN0U30DNf3zbElH06aEx4 MZ0OjRH04ihuNqzBpPsg+7N1k994nXDqxQEKh8zPiA+1MoqHPL6vJ0FXaK3XHoqt7A2D ZPs+xIBLTMFTSR8QMe5NUyJsSF+L8U+i4uCPXdTBmZ5Rmek+IQu3ogwnBsCcseoLnnWr pxdswog3CGaO82N+3JBDDkIN3W5MGa/KpcRsfgjFSbOM5NryEdqs8Yxe13JjEFWeLkxO t1GQ== X-Gm-Message-State: AOJu0YxE0cBv8CkWaKjydqlMs3t8YS6n9VBXNkev9QiFR3UyMZ3WguBT /7y1SH8NQhvyInSbxwdnPw0gU0BbDX/ICw== X-Google-Smtp-Source: AGHT+IEC4ywoxPPesFFLbgD+aBS7E81b/IFYOFP7DRwsh175oInJhzEPn3e/XVy1+bXIu2L75aAoPg== X-Received: by 2002:adf:ed90:0:b0:31c:8c5f:877e with SMTP id c16-20020adfed90000000b0031c8c5f877emr2802699wro.33.1694108722944; Thu, 07 Sep 2023 10:45:22 -0700 (PDT) Original-Received: from krug ([87.196.73.130]) by smtp.gmail.com with ESMTPSA id s14-20020a7bc38e000000b00401d8181f8bsm3117059wmj.25.2023.09.07.10.45.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 07 Sep 2023 10:45:22 -0700 (PDT) Received-SPF: pass client-ip=2a00:1450:4864:20::32b; envelope-from=joaotavora@gmail.com; helo=mail-wm1-x32b.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: 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:269685 Archived-At: Hi maintainers, This is simple to reproduce, I think: > ~/Source/Emacs/emacs/src/emacs --version GNU Emacs 30.0.50 Development version 59c35bf16fbe on master branch; build date 2023-09-04. > ~/Source/Emacs/emacs/src/emacs -nw -Q ~/tmp/simple.cpp -f c++-ts-mode Now just type C-M-f or any C-M-something command. Debugger entered--Lisp error: (treesit-invalid-predicate nil) treesit-node-match-p(# sexp t) #f(compiled-function (node) #)(#) treesit-node-match-p(# #f(compiled-function (n= ode) #) t) treesit-node-top-level(# #f(compiled-function = (node) #) t) treesit--things-around(5 sexp) treesit--navigate-thing(5 -1 beg sexp restricted) treesit-beginning-of-thing(sexp 1 restricted) treesit-forward-sexp(-1) forward-sexp(-1 nil) forward-sexp(-1 5) backward-sexp(1 5) funcall-interactively(backward-sexp 1 5) call-interactively(backward-sexp nil nil) command-execute(backward-sexp) simple.cpp can be any C++ file, from a simple int main() {return 0;} to a completely empty file. When debug-on-error is nil, there is an further error message in *Messages*, but I don't know what it means: Invalid predicate, see `treesit-thing-settings' for valid forms for a pr= edicate: nil [4 times] I installed my C++ grammar with M-x treesit-install-language-grammar, entered 'cpp' (treesit's nickname for C++) and everything else default. The grammar and treesitter seems to be working, I get indentation and font-locking, for example. Furthermore I can confirm this same behavior with a version of the grammar installed today and installed some months ago. Thanks, Jo=C3=A3o In GNU Emacs 30.0.50 (build 4, x86_64-pc-linux-gnu, GTK+ Version 3.24.36, cairo version 1.17.8) of 2023-09-04 built on krug Repository revision: 40514ebf7de644bad984acaeb3ea72b973dae18f Repository branch: master System Description: Arch Linux Configured features: ACL CAIRO DBUS FREETYPE GIF GLIB GMP GNUTLS GPM GSETTINGS HARFBUZZ JPEG JSON LCMS2 LIBOTF LIBSYSTEMD LIBXML2 M17N_FLT MODULES NOTIFY INOTIFY PDUMPER PNG RSVG SECCOMP SOUND SQLITE3 THREADS TIFF TOOLKIT_SCROLL_BARS TREE_SITTER WEBP X11 XDBE XIM XINPUT2 XPM GTK3 ZLIB Important settings: value of $LC_ALL: en_US.UTF-8 value of $LC_CTYPE: en_US.UTF-8 value of $LANG: C value of $XMODIFIERS: @im=3Dibus locale-coding-system: utf-8-unix Major mode: C++// Minor modes in effect: whitespace-mode: t server-mode: t yas-global-mode: t yas-minor-mode: t savehist-mode: t windmove-mode: t winner-mode: t fido-vertical-mode: t icomplete-vertical-mode: t icomplete-mode: t fido-mode: t electric-pair-mode: t delete-selection-mode: t global-auto-revert-mode: t global-company-mode: t company-mode: t xclip-mode: t xterm-mouse-mode: t global-eldoc-mode: t show-paren-mode: t electric-indent-mode: t mouse-wheel-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t window-divider-mode: t line-number-mode: t transient-mark-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t hs-minor-mode: t Features: (shadow emacsbug c-ts-mode descr-text ob-ditaa ob-plantuml org-clock org-colview org-crypt org-ctags org-habit org-mouse org-plot org-protocol mhtml-mode css-mode sgml-mode facemenu rst htmlize yas-doc-helper htmlize-autoloads loaddefs-gen lisp-mnt tar-mode arc-mode archive-mode mm-archive ox-odt rng-loc rng-uri rng-parse rng-match rng-dt rng-util rng-pttrn nxml-parse nxml-ns nxml-enc xmltok nxml-util ox-latex ox-icalendar org-agenda ox-html table ox-ascii ox-publish ox pcmpl-unix pcmpl-gnu markdown-mode novice edebug js-flymake-eslint js c-ts-common edmacro kmacro org-element org-persist org-id org-refile avl-tree oc-basic ol-eww ol-rmail ol-mhe ol-irc ol-info ol-gnus nnselect ol-docview doc-view jka-compr image-mode exif ol-bibtex bibtex ol-bbdb ol-w3m ol-doi org-link-doi yasnippet-tests org ob ob-tangle ob-ref ob-lob ob-table ob-exp org-macro org-src ob-comint org-pcomplete org-list org-footnote org-faces org-entities noutline outline ob-emacs-lisp ob-core ob-eval org-cycle org-table ol org-fold org-fold-core org-keys oc org-loaddefs cal-menu calendar cal-loaddefs org-version org-compat org-macs ert-x ruby-mode yaml-mode vc-hg vc-bzr vc-src vc-sccs vc-svn vc-cvs vc-rcs log-view vc-dir tramp-cache time-stamp tramp-sh tramp trampver tramp-integration tramp-message tramp-compat tramp-loaddefs tabify eglot external-completion jsonrpc ert ewoc debug backtrace timezone quail gnus-cite gnus-bcklg sh-script smie treesit shell pcomplete gnus-async qp gnus-ml disp-table nndraft nnmh utf-7 nnfolder nnnil gnus-agent gnus-srvr gnus-score score-mode nnvirtual gnus-msg gnus-art mm-uu mml2015 mm-view mml-smime smime dig nntp gnus-cache gnus-sum gnus-group gnus-undo gnus-start gnus-dbus dbus gnus-cloud nnimap nnmail mail-source utf7 nnoo gnus-spec gnus-int gnus-range gnus-win mailalias smtpmail sort mail-extr shr-color textsec uni-scripts idna-mapping ucs-normalize uni-confusable textsec-check parse-time iso8601 gnutls network-stream url-http url-gw nsm url-cache url-auth eww xdg url-queue shr pixel-fill kinsoku url-file svg xml dom mm-url gnus nnheader range ffap bug-reference dired-aux cl-print find-func shortdoc comp comp-cstr help-fns radix-tree log-edit message sendmail yank-media puny dired-x dired dired-loaddefs rfc822 mml mml-sec gnus-util mm-decode mm-bodies mm-encode mail-parse rfc2231 rfc2047 rfc2045 mm-util ietf-drums mail-prsvr mailabbrev mail-utils gmm-utils mailheader pcvs-util hippie-exp add-log misearch multi-isearch smerge-mode diff vc display-line-numbers cc-mode cc-fonts cc-guess cc-menus cc-cmds breadcrumb imenu term/xterm xterm time-date flymake-proc flymake hideshow whitespace executable vc-git diff-mode vc-dispatcher cus-edit pp cus-start cus-load wid-edit diminish git-rebase-mode server yow cookie1 yasnippet wombat-theme hyperspec sly-autoloads rust-utils rust-mode rx rust-rustfmt rust-playpen rust-compile rust-cargo epa-file epa derived epg rfc6068 epg-config savehist windmove ediff ediff-merg ediff-mult ediff-wind ediff-diff ediff-help ediff-init ediff-util winner icomplete elec-pair delsel autorevert filenotify erc format-spec erc-backend erc-networks erc-common erc-compat compat erc-loaddefs ibuf-ext ibuffer ibuffer-loaddefs auth-source-pass company-oddmuse company-keywords make-mode company-etags etags fileloop generator xref project company-gtags files-x company-dabbrev-code company-dabbrev company-files company-clang company-capf company-cmake company-semantic company-template company-bbdb company cc-styles cc-align cc-engine cc-vars cc-defs beardbolt pulse disass aggressive-indent easy-mmode ack thingatpt pcase compile text-property-search comint ansi-osc ansi-color ring cl-extra help-mode warnings icons xclip finder-inf xt-mouse color mule-util holy color-theme-sanityinc-tomorrow-autoloads corfu-terminal-autoloads corfu-autoloads compat-autoloads debbugs-autoloads diminish-autoloads dts-mode-autoloads go-mode-autoloads lua-mode-autoloads lv-autoloads markdown-mode-autoloads popon-autoloads pos-tip-autoloads pyvenv-autoloads reformatter-autoloads rust-mode-autoloads spinner-autoloads info transient-autoloads xclip-autoloads package browse-url url url-proxy url-privacy url-expand url-methods url-history url-cookie generate-lisp-file url-domsuf url-util mailcap url-handlers url-parse auth-source cl-seq eieio eieio-core cl-macs password-cache json subr-x map byte-opt gv bytecomp byte-compile url-vars cl-loaddefs cl-lib rmc iso-transl tooltip cconv eldoc paren electric uniquify ediff-hook vc-hooks lisp-float-type elisp-mode mwheel term/x-win x-win term/common-win x-dnd touch-screen tool-bar dnd fontset image regexp-opt fringe tabulated-list replace newcomment text-mode lisp-mode prog-mode register page tab-bar menu-bar rfn-eshadow isearch easymenu timer select scroll-bar mouse jit-lock font-lock syntax font-core term/tty-colors frame minibuffer nadvice seq simple cl-generic indonesian philippine cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese composite emoji-zwj charscript charprop case-table epa-hook jka-cmpr-hook help abbrev obarray oclosure cl-preloaded button loaddefs theme-loaddefs faces cus-face macroexp files window text-properties overlay sha1 md5 base64 format env code-pages mule custom widget keymap hashtable-print-readable backquote threads dbusbind inotify lcms2 dynamic-setting system-font-setting font-render-setting cairo gtk x-toolkit xinput2 x multi-tty move-toolbar make-network-process emacs) Memory information: ((conses 16 1068497 236334) (symbols 48 55213 15) (strings 32 280969 46949) (string-bytes 1 7753809) (vectors 16 147167) (vector-slots 8 2762875 94473) (floats 8 1059 16219) (intervals 56 23001 4930) (buffers 992 102))