emacs-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#77480: closed (31.0.50; Flymake: impossible to show multiline diagno


From: GNU bug Tracking System
Subject: bug#77480: closed (31.0.50; Flymake: impossible to show multiline diagnostics in echo area)
Date: Thu, 24 Apr 2025 08:10:02 +0000

Your message dated Thu, 24 Apr 2025 10:09:10 +0200
with message-id 
<CAPunWhCAqO0sUrHrK_0AO06A7J9kZsjKAvMFW4egXQDod8OUZA@mail.gmail.com>
and subject line Re: bug#77480: 31.0.50; Flymake: impossible to show multiline 
diagnostics in echo area
has caused the debbugs.gnu.org bug report #77480,
regarding 31.0.50; Flymake: impossible to show multiline diagnostics in echo 
area
to be marked as done.

(If you believe you have received this mail in error, please contact
help-debbugs@gnu.org.)


-- 
77480: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=77480
GNU Bug Tracking System
Contact help-debbugs@gnu.org with problems
--- Begin Message --- Subject: 31.0.50; Flymake: impossible to show multiline diagnostics in echo area Date: Thu, 03 Apr 2025 09:43:43 +0200
Dear Flymake maintainers (Cc: João Távora),

While using Eglot and its default Flymake integration, it seems
impossible to make Flymake display multi-line diagnostics in the echo
area: diagnostic messages are systematically truncated and only their
first line is shown.

While this may work well with certain language and diagnostic styles (eg
Lisp), it is wholly inadecuate for other types of languages where
diagnostics are routinely multiline and the first line offers no useful
information (because it is only part of sentence). This is the case of
OCaml, which I am using.

Furthermore, Flymake uses Eldoc to render diagnostics in the echo area,
and there is a variable eldoc-echo-area-use-multiline-p that looks like
it could be used to control this behaviour, but unfortunately Flymake
does not honour it.

Looking at the Git history, this behaviour seems to have changed or
introduced recently, in commit 560950468588117b264a9f916fb578e0eb2a124a.

Some possible approaches for improvement:

- Do not have Flymake truncate the message and instead delegate to Eldoc
  (supposedly, via the eldoc-echo-area-use-multiline-p variable, but I
  have not been able to test this variable so am not 100% sure of what
  its expected semantics are).

- Honour the variable eldoc-echo-area-use-multiline-p in the Flymake
  code (this seems strictly worse than the previous point as it would
  entail some code duplication).

- Add a variable to Flymake to specify whether to truncate or not
  diagnostics shown in the echo area. This could be useful if we want a
  separate mechanism than Eldoc's to control how diagnostics are shown
  in the echo area.

I am happy to prepare a patch if we can agree on a way forward.

Thank you!

Cheers,
Nicolas



--- End Message ---
--- Begin Message --- Subject: Re: bug#77480: 31.0.50; Flymake: impossible to show multiline diagnostics in echo area Date: Thu, 24 Apr 2025 10:09:10 +0200
Closing bug.

Nicolas

On Thu, Apr 24, 2025 at 10:00 AM Nicolás Ojeda Bär <n.oje.bar@gmail.com> wrote:
>
> Hello,
>
> On Mon, Apr 21, 2025 at 10:02 AM João Távora <joaotavora@gmail.com> wrote:
> >
> > I've pushed these changes to master.  They should also be available shortly
> > in Flymake 1.4.0 from GNU ELPA.
> >
> > Please test and then this bug can be closed.
>
> Tested. I confirm it fixes the bug. Thanks!
>
> Cheers,
> Nicolas
>
> > João


--- End Message ---

reply via email to

[Prev in Thread] Current Thread [Next in Thread]