GNU bug report logs -
#72701
eglot crash when project-files-relative-names t
Previous Next
Reported by: Ship Mints <shipmints <at> gmail.com>
Date: Sun, 18 Aug 2024 15:47:02 UTC
Severity: normal
Done: Dmitry Gutov <dmitry <at> gutov.dev>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
[Message part 1 (text/plain, inline)]
João, I don't have Emacs git access so I'll write the equivalent comment
and commit message here.
-----
(project-files-relative-names nil) ; override global to ensure
directory components are retained
(dirs-to-watch
(delete-dups (mapcar #'file-name-directory
(project-files
(eglot--project server))))))
-----
"project.el has a global, project-files-relative-names, which influences
project-files to return results without parent directory prefixes and this
causes file-name-directory to fail to detect directories at the root of the
parent. We disable project-files-relative-names to ensure complete results."
On Thu, Aug 22, 2024 at 4:37 PM João Távora <joaotavora <at> gmail.com> wrote:
> If I understand the problem and the fix it's that `project-files` has
> its return value controlled by a global.
>
> Not sure that's a great API design (maybe it should change the end
> result some interactive commands instead).
> But adding the dynamic binding sounds fine, feel free to push, just
> add a good explanation in the commit message.
>
> João
>
> On Thu, Aug 22, 2024 at 6:52 PM Eli Zaretskii <eliz <at> gnu.org> wrote:
> >
> > > Cc: Dmitry Gutov <dmitry <at> gutov.dev>,
> > > João Távora <joaotavora <at> gmail.com>
> > > From: Ship Mints <shipmints <at> gmail.com>
> > > Date: Thu, 22 Aug 2024 13:04:23 -0400
> > >
> > > Greetings, just want to make sure this fix doesn't get lost...
> >
> > Fear not, patches don't get lost here.
>
>
>
> --
> João Távora
>
[Message part 2 (text/html, inline)]
This bug report was last modified 255 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.