From: Basil Contovounesios via "Bug reports for GNU Emacs, the Swiss army knife of text editors" <bug-gnu-emacs@gnu.org>
To: "João Távora" <joaotavora@gmail.com>
Cc: Dmitry Gutov <dmitry@gutov.dev>, 62741-done@debbugs.gnu.org
Subject: bug#62741: 30.0.50; Eglot jdtls project test: pass on emacs-29, fail on master
Date: Mon, 10 Apr 2023 10:11:23 +0100 [thread overview]
Message-ID: <87zg7ggkzo.fsf@tcd.ie> (raw)
In-Reply-To: <87r0ssm9ra.fsf@gmail.com> ("João Távora"'s message of "Mon, 10 Apr 2023 09:17:29 +0100")
close 62741 30.1
severity 62741 minor
quit
João Távora [2023-04-10 09:17 +0100] wrote:
> Pasting the backtrace here for Dmitry to have a look.
>
> Test eglot-test-eclipse-connect backtrace:
> string-match("\0" nil 0)
> split-string(nil "\0" t)
> project--vc-list-files("/tmp/eglot--fixturernYTOR/project/" Git nil)
> #f(compiled-function (dir) #<bytecode -0xa5be45661654310>)("/tmp/eglot--fixturernYTOR/project/")
> mapcan(#f(compiled-function (dir) #<bytecode -0xa5be45661654310>) ("/tmp/eglot--fixturernYTOR/project/"))
> #f(compiled-function (project &optional dirs) #<bytecode 0x114f4cd06dfc2088>)((vc Git "/tmp/eglot--fixturernYTOR/project/"))
> apply(#f(compiled-function (project &optional dirs) #<bytecode 0x114f4cd06dfc2088>) (vc Git "/tmp/eglot--fixturernYTOR/project/") nil)
> project-files((vc Git "/tmp/eglot--fixturernYTOR/project/"))
>
> It would seem that the problem here is there are no files versioned yet,
> so this expression in project--vc-list-files
>
> (apply #'vc-git--run-command-string nil "ls-files" args)
>
> Returns nil.
>
> But I cannot reproduce this locally.
It's easy to reproduce the backtrace without Eglot, and it happens both
on master and emacs-29. From emacs -Q:
(let ((dir (make-nearby-temp-file "my-" t)))
(unwind-protect
(let ((default-directory (file-name-as-directory dir)))
(make-directory ".git")
(make-empty-file "file") ; Optional.
(require 'project)
(project-files (project-current)))
(delete-directory dir t)))
C-x C-e
Debugger entered--Lisp error: (wrong-type-argument stringp nil)
string-match("\0" nil 0)
split-string(nil "\0" t)
project--vc-list-files("/tmp/my-VHbIUg/" Git nil)
#f(compiled-function (dir) #<bytecode 0x12e526b1f733674a>)("/tmp/my-VHbIUg/")
mapcan(#f(compiled-function (dir) #<bytecode 0x12e526b1f733674a>) ("/tmp/my-VHbIUg/"))
#f(compiled-function (project &optional dirs) #<bytecode 0xea2b226a1860ab9>)((vc Git "/tmp/my-VHbIUg/"))
apply(#f(compiled-function (project &optional dirs) #<bytecode 0xea2b226a1860ab9>)
(vc Git "/tmp/my-VHbIUg/") nil)
project-files((vc Git "/tmp/my-VHbIUg/"))
> I'll leave it up to you, Basil, to decide whether to close or leave this
> bug open.
Closing, since the difference between master and emacs-29 materialised
in the context of Eglot.
If Dmitry thinks project-files is doing something unexpected, we can
open a new ticket if necessary.
Thanks,
--
Basil
next prev parent reply other threads:[~2023-04-10 9:11 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-04-09 17:46 bug#62741: 30.0.50; Eglot jdtls project test: pass on emacs-29, fail on master Basil Contovounesios via Bug reports for GNU Emacs, the Swiss army knife of text editors
2023-04-09 19:13 ` João Távora
2023-04-09 23:13 ` Basil Contovounesios via Bug reports for GNU Emacs, the Swiss army knife of text editors
2023-04-10 8:17 ` João Távora
2023-04-10 9:11 ` Basil Contovounesios via Bug reports for GNU Emacs, the Swiss army knife of text editors [this message]
2023-04-10 9:51 ` João Távora
2023-04-10 11:56 ` Dmitry Gutov
2023-04-10 12:00 ` João Távora
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87zg7ggkzo.fsf@tcd.ie \
--to=bug-gnu-emacs@gnu.org \
--cc=62741-done@debbugs.gnu.org \
--cc=contovob@tcd.ie \
--cc=dmitry@gutov.dev \
--cc=joaotavora@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.