From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eason Huang Newsgroups: gmane.emacs.bugs Subject: bug#55396: 29.0.50; project-find-file don't work on a project with many submodules Date: Fri, 13 May 2022 20:56:12 +0800 Message-ID: Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="32443"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (darwin) To: 55396@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri May 13 15:04:44 2022 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 1npUyK-0008Gs-0g for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 13 May 2022 15:04:44 +0200 Original-Received: from localhost ([::1]:48430 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1npUyI-0002p3-M6 for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 13 May 2022 09:04:42 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:35934) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1npUxe-0002iE-SH for bug-gnu-emacs@gnu.org; Fri, 13 May 2022 09:04:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:49290) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1npUxe-00069I-Ht for bug-gnu-emacs@gnu.org; Fri, 13 May 2022 09:04:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1npUxe-0003mY-D6 for bug-gnu-emacs@gnu.org; Fri, 13 May 2022 09:04:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eason Huang Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 13 May 2022 13:04:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 55396 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.165244703714522 (code B ref -1); Fri, 13 May 2022 13:04:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 13 May 2022 13:03:57 +0000 Original-Received: from localhost ([127.0.0.1]:43187 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1npUxY-0003m9-Oc for submit@debbugs.gnu.org; Fri, 13 May 2022 09:03:57 -0400 Original-Received: from lists.gnu.org ([209.51.188.17]:56824) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1npUxV-0003ly-FL for submit@debbugs.gnu.org; Fri, 13 May 2022 09:03:55 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:35892) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1npUxU-00024g-Py for bug-gnu-emacs@gnu.org; Fri, 13 May 2022 09:03:53 -0400 Original-Received: from out162-62-57-64.mail.qq.com ([162.62.57.64]:38895) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1npUxN-00065T-Da for bug-gnu-emacs@gnu.org; Fri, 13 May 2022 09:03:48 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=foxmail.com; s=s201512; t=1652447015; bh=JVoFH5WBrEPpIXqYh/0hfJAKFnxoen9jmyvUxc8ZZEk=; h=From:To:Subject:Date; b=e7g6SpNLLXeV9ijOX7O7LEHhqkkkca83t4713sNOkzoZIWPsZbDauD175ZRN7TmYW BBwzEV8hobF6qnm3gbvRkm5Y7DR80WF+ekHjRbK34VzfiKLD1xmjil0/l9L2hDUe6S 6+nEOggr14yX8qFpxGmTVh7RfxtiK/qPjKeBvWg8= Original-Received: from MacBook ([180.162.211.86]) by newxmesmtplogicsvrszc11.qq.com (NewEsmtp) with SMTP id E0D02CDD; Fri, 13 May 2022 20:56:13 +0800 X-QQ-mid: xmsmtpt1652446573ta2bh7lzo X-QQ-XMAILINFO: M6hcvg9P9OAZiYC4P0ZN4aDLYvo4hqYgfwLTLPamf1qNuS+hv59gDaSD+1n/w9 bD3cOsBDovpYoOC0DBRFPGPHBgEjQbWFk2zdDget9O+WOQu+5EwQiYe6LnT9UAF6iIBhUa4wN/BZ 2z+qiMXcpCnJ3ydTb+tz5mPLu94DZQUcI7UzwXvlJkrQAL6GTjjBmjj6BWMtr4eqGOO2WKkeKZvG TvdzAKUr5QvwcsAxISawnjpWoiwmhy1g+AeKLix76yLJ5KWNfmQ7JDLKMUWGonCunQNfebuvCTHP 0ddaJj3b2LVxhrF8wllBLPgeiql1p6zSiq52h8tv8TLoffTqZ9XYjZt7su7qTZPH9jk9of4cvh37 zxIZVh26QzBkfDE2cybXKm8tHaiT5xQXGi5rS8hDptJeE7+uWd9NbYPZeHeyg2g3OiyPvSQLzJMm FY0Gk8H93Dz1LpXotWmWfa4W6D9ifT/d/wS1tPwRdSorUN09u2GcOo0Rq32ik8FOKuOW6cnLSLhf nS691+atK0YIF46ovSIECI0TKECfXuy0XUMTC6t6+zGLSanxoDN45x/AD+KFLXmsGE2a7SCgTm8B vl9GuTpGXSX4WeQihcl/lHu1X06iCUN4IS1ZDVlf79ZwYRunuWaYQleNxJdfL4t7RL+jT3p7dCAS NRNMHDFbR3kMWjrteZFiqMESgfdwKeGPhfukqSOokGuMzxhqbQY3MuvBg53mnpAVag603XOlnvEx h5hJlA22PSinzcvaiqZWlmvo5VZG4XHH0ZcFH3PJ5t9fx2j+2dAwlJPzWNnTJBx9u6hjywgGy6NN 1omGW1xJka9aTnodnSR8JE6a+LgJ3zh5l5a0zz6Y Original-Message-ID: Received-SPF: pass client-ip=162.62.57.64; envelope-from=aqua0210@foxmail.com; helo=out162-62-57-64.mail.qq.com X-Spam_score_int: 11 X-Spam_score: 1.1 X-Spam_bar: + X-Spam_report: (1.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_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, HELO_DYNAMIC_IPADDR=1.951, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, RDNS_DYNAMIC=0.982, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=no 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" Xref: news.gmane.io gmane.emacs.bugs:232141 I try to use `M-x project-find-file` in my `.emacs.d` config project. It takes a long time(about 1 minutes), and finally get a error as bellow: ``` process-file: Variable binding depth exceeds max-specpdl-size ``` The .emacs.d project include 95 submudules of Git, is this too huge for project.el? You can visit my config: https://github.com/Eason0210/emacs.d On other git project with a few submodules(about 14), it works well. For exmaple this one: https://github.com/emacscollective/emacs.g And I try to start emacs with `emacs -q`, set `(setq debug-on-errort)`. Then reproduce the issue, will get the following debug error: Debugger entered--Lisp error: (excessive-variable-binding) call-process("git" nil (t nil) nil "--no-pager" "ls-files" "-z" "-c" "-o" "--exclude-standard") process-file("git" nil (t nil) nil "--no-pager" "ls-files" "-z" "-c" "-o" "--exclude-standard") vc-git--call((t nil) "ls-files" "-z" "-c" "-o" "--exclude-standard") vc-git--out-ok("ls-files" "-z" "-c" "-o" "--exclude-standard") vc-git--run-command-string(nil "ls-files" "-z" "-c" "-o" "--exclude-standard") project--vc-list-files("/Users/eason/.emacs.d/lib/aggressive-indent" Git nil) #f(compiled-function (module) #)("lib/aggressive-indent") project--vc-list-files("/Users/eason/.emacs.d/." Git nil) #f(compiled-function (module) #)(".") project--vc-list-files("/Users/eason/.emacs.d/." Git nil) #f(compiled-function (module) #)(".") project--vc-list-files("/Users/eason/.emacs.d/." Git nil) #f(compiled-function (module) #)(".") project--vc-list-files("/Users/eason/.emacs.d/." Git nil) #f(compiled-function (module) #)(".") project--vc-list-files("/Users/eason/.emacs.d/." Git nil) #f(compiled-function (module) #)(".") project--vc-list-files("/Users/eason/.emacs.d/." Git nil) #f(compiled-function (module) #)(".") .... there are 1100 lines more here ... project--vc-list-files("/Users/eason/.emacs.d/." Git nil) #f(compiled-function (module) #)(".") project--vc-list-files("/Users/eason/.emacs.d/." Git nil) #f(compiled-function (module) #)(".") project--vc-list-files("~/.emacs.d/" Git nil) #f(compiled-function (dir) #)("~/.emacs.d/") mapcan(#f(compiled-function (dir) #) ("~/.emacs.d/")) #f(compiled-function (project &optional dirs) #)((vc Git "~/.emacs.d/") ("~/.emacs.d/")) apply(#f(compiled-function (project &optional dirs) #) (vc Git "~/.emacs.d/") ("~/.emacs.d/")) project-files((vc Git "~/.emacs.d/") ("~/.emacs.d/")) project-find-file-in(#("init.el" 0 7 (fontified t help-echo "mouse-2: visit this file in other window" mouse-face highlight dired-filename t)) ("~/.emacs.d/") (vc Git "~/.emacs.d/") nil) project-find-file(nil) funcall-interactively(project-find-file nil) command-execute(project-find-file record) execute-extended-command(nil "project-find-file" "project-find-fi") funcall-interactively(execute-extended-command nil "project-find-file" "project-find-fi") command-execute(execute-extended-command) My platfrom informations: In GNU Emacs 29.0.50 (build 1, x86_64-apple-darwin21.4.0, NS appkit-2113.40 Version 12.3.1 (Build 21E258)) of 2022-05-09 built on macbook Repository revision: 4f1e748df208ced08c7cda8f96e6a5638ad14240 Repository branch: master Windowing system distributor 'Apple', version 10.3.2113 System Description: macOS 12.3.1 Configured using: 'configure --with-ns --with-modules '--enable-locallisppath=/Library/Application Support/Emacs/${version}/site-lisp:/Library/Application Support/Emacs/site-lisp:/usr/local/share/emacs/site-lisp' --with-xwidgets --with-native-compilation 'CFLAGS=-I/usr/local/opt/gcc/include -I/usr/local/opt/libgccjit/include -O2' 'LDFLAGS=-L/usr/local/opt/gcc/lib/gcc/11 -L/usr/local/opt/gcc/lib/gcc/11/gcc/x86_64-apple-darwin21/11 -L/usr/local/opt/libgccjit/lib/gcc/11 -I/usr/local/opt/gcc/include -I/usr/local/opt/libgccjit/include -Wl,-headerpad_max_install_names'' Configured features: ACL DBUS GIF GLIB GMP GNUTLS JPEG JSON LCMS2 LIBXML2 MODULES NATIVE_COMP NOTIFY KQUEUE NS PDUMPER PNG RSVG SQLITE3 THREADS TIFF TOOLKIT_SCROLL_BARS WEBP XIM XWIDGETS ZLIB Important settings: value of $LC_CTYPE: en_US.UTF-8 value of $LANG: en_US.UTF-8 locale-coding-system: utf-8-unix Major mode: ELisp/d Minor modes in effect: tooltip-mode: t global-eldoc-mode: t eldoc-mode: t show-paren-mode: t electric-indent-mode: t mouse-wheel-mode: t tool-bar-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t line-number-mode: t indent-tabs-mode: t transient-mark-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t Load-path shadows: None found. Features: (shadow sort mail-extr emacsbug message mailcap yank-media rmc puny rfc822 mml mml-sec password-cache epa derived epg rfc6068 epg-config gnus-util text-property-search time-date mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils help-fns radix-tree cl-print debug backtrace help-mode find-func thingatpt vc-mtn vc-hg vc-git diff-mode vc-bzr vc-src vc-sccs vc-svn vc-cvs vc-rcs log-view easy-mmode pcvs-util vc vc-dispatcher project seq gv subr-x byte-opt bytecomp byte-compile cconv dired-aux cl-loaddefs cl-lib dired dired-loaddefs iso-transl tooltip eldoc paren electric uniquify ediff-hook vc-hooks lisp-float-type elisp-mode mwheel term/ns-win ns-win ucs-normalize mule-util term/common-win 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 simple cl-generic 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 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 xwidget-internal dbusbind kqueue cocoa ns lcms2 multi-tty make-network-process native-compile emacs) Memory information: ((conses 16 765142 20103) (symbols 48 9014 0) (strings 32 215443 3200) (string-bytes 1 8854733) (vectors 16 21867) (vector-slots 8 482129 32483) (floats 8 30 306) (intervals 56 31551 79) (buffers 992 17)) -- Eason Huang