From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Aidan Beggs Newsgroups: gmane.emacs.bugs Subject: bug#40529: 26.3; global-display-line-numbers-mode and flymake-show-diagnostics-buffer error Date: Thu, 9 Apr 2020 16:55:44 -0400 Message-ID: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="000000000000503ecc05a2e1d905" Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="30731"; mail-complaints-to="usenet@ciao.gmane.io" To: 40529@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Apr 10 00:07:17 2020 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 1jMfKO-0007tY-Ub for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 10 Apr 2020 00:07:17 +0200 Original-Received: from localhost ([::1]:56098 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jMfKO-0006fC-0p for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 09 Apr 2020 18:07:16 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:47784) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jMfKC-0006da-8E for bug-gnu-emacs@gnu.org; Thu, 09 Apr 2020 18:07:05 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1jMfKA-0006tl-Sr for bug-gnu-emacs@gnu.org; Thu, 09 Apr 2020 18:07:04 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:43067) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1jMfKA-0006te-QG for bug-gnu-emacs@gnu.org; Thu, 09 Apr 2020 18:07:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jMfKA-0005Ow-MP for bug-gnu-emacs@gnu.org; Thu, 09 Apr 2020 18:07:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Aidan Beggs Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 09 Apr 2020 22:07:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 40529 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.158647000520713 (code B ref -1); Thu, 09 Apr 2020 22:07:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 9 Apr 2020 22:06:45 +0000 Original-Received: from localhost ([127.0.0.1]:54604 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jMfJt-0005O1-07 for submit@debbugs.gnu.org; Thu, 09 Apr 2020 18:06:45 -0400 Original-Received: from lists.gnu.org ([209.51.188.17]:52221) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jMeDp-0003dQ-QV for submit@debbugs.gnu.org; Thu, 09 Apr 2020 16:56:26 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:39476) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jMeDo-0004et-8X for bug-gnu-emacs@gnu.org; Thu, 09 Apr 2020 16:56:25 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1jMeDm-0003qT-SI for bug-gnu-emacs@gnu.org; Thu, 09 Apr 2020 16:56:24 -0400 Original-Received: from mail-qk1-x733.google.com ([2607:f8b0:4864:20::733]:41728) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1jMeDm-0003q0-OJ for bug-gnu-emacs@gnu.org; Thu, 09 Apr 2020 16:56:22 -0400 Original-Received: by mail-qk1-x733.google.com with SMTP id y3so178057qky.8 for ; Thu, 09 Apr 2020 13:56:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=V612K3m05fv3Iik63LoNoPTEkvLNE9Lqw/oh6WNm6s4=; b=Nn3sRwtk5aon/H5zdKm5fdxIX+TZ5qiG0sTkcDaIYhfL3QO6II8/BEHQsE9cmLGWfX VtRdcf+jFKgRG3OanpOlPcErVYX4NHUQxuHs0L1l+wnOH4shKB8QBAOhZHxAFRWZACOk Ykv5hTiBT1VPyl1mlpKq3LuboP8g2sPXBWdXKQ/T6V8KfBe06+0fKuYR3TjKXCmGrt/k F1NKecgQaKMWjOpjKdzcIPaWq60duvlZ7ZHhd7j8SFXKeI+muOPpyLayv7lITkJOp6eu uor04tffX7hfY4bmwB0jEUqDh984QYF/Y20jBLRHaIYFaNqhqoybHv12dQok5hMhpuzk 1FsA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=V612K3m05fv3Iik63LoNoPTEkvLNE9Lqw/oh6WNm6s4=; b=H90TlqmekqY0flgBW/CRVZ5NhqcvIZWKqLnb30Dhm2rxxOWK3HcmxcUAixrgxP6wWo u6wuTZ/D1bFxtq3vJ7r6wYU0z5/Tzchpg9fSoBYHq8okb77t7F5ln7Ff0Zjll8/jFi3u j2oz6CTYVyI5ICGUs2RQRscjROy4o5HDuHNaggXjMjOk2AWoaeRj3o6WTJHLzAuJEUZa N9CmhhPTwqAm+WOTWQUVUjkBBpftLnSKR4m6wMEmfy6yb8rA9UTW+Y/3ORos1JeN67s9 yjsG70cGsjmAOsDloIXvKO0CEJyQ+Gv7tiFZWbIaXVVMnXi78XJsn7KqFafEmP80LTO9 tZxA== X-Gm-Message-State: AGi0PuaDCO4aATQ/zm/If2zInovvqOytsXYouAxVQcPktl/F+VeLAHfW pmlXexhWppOLVsfFy3SeIx8BBC3UGoM4e6YMwKXaGzVe74w= X-Google-Smtp-Source: APiQypI4hgm8CLcopXpdsnieq9PZXesWrJIrcQeTWPIlHelRx/zlzZIzRfZECUZvuiiGP9ZzwrqqygbsYWpolunznaY= X-Received: by 2002:a05:620a:1187:: with SMTP id b7mr809696qkk.272.1586465780808; Thu, 09 Apr 2020 13:56:20 -0700 (PDT) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Mailman-Approved-At: Thu, 09 Apr 2020 18:06:43 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 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:178180 Archived-At: --000000000000503ecc05a2e1d905 Content-Type: text/plain; charset="UTF-8" I'm running into errors when attempting to run flymake-show-diagnostics-buffer. If run after I've enabled line numbers via global-display-line-numbers-mode, I get the following stack trace: Debugger entered--Lisp error: (wrong-type-argument stringp nil) flymake--diagnostics-buffer-entries() tabulated-list-print(t) tabulated-list-revert() run-hooks(display-line-numbers-mode-hook display-line-numbers-mode-on-hook) display-line-numbers-mode() display-line-numbers--turn-on() global-display-line-numbers-mode-enable-in-buffers() run-hooks(after-change-major-mode-hook) run-mode-hooks(flymake-diagnostics-buffer-mode-hook) flymake-diagnostics-buffer-mode() flymake-show-diagnostics-buffer() funcall-interactively(flymake-show-diagnostics-buffer) call-interactively(flymake-show-diagnostics-buffer record nil) command-execute(flymake-show-diagnostics-buffer record) execute-extended-command(nil "flymake-show-diagnostics-buffer" "flymake-show-diagnostics") funcall-interactively(execute-extended-command nil "flymake-show-diagnostics-buffer" "flymake-show-diagnostics") call-interactively(execute-extended-command nil nil) command-execute(execute-extended-command) Once this has been thrown once, running flymake-show-diagnostics-buffer works properly. The only thing in my config file is (global-display-line-numbers-mode). To repro: emacs -Q C-x b *scratch* M-x global-display-line-numbers-mode M-x flymake-mode M-x flymake-show-diagnostics-buffer Recent messages: For information about GNU Emacs and the GNU system, type C-h C-a. Flymake mode enabled in current buffer tabulated-list-print: Wrong type argument: stringp, nil Making completion list... Configured using: 'configure --prefix=/usr --sysconfdir=/etc --libexecdir=/usr/lib --localstatedir=/var --with-x-toolkit=gtk3 --with-xft --with-modules 'CFLAGS=-march=x86-64 -mtune=generic -O2 -pipe -fno-plt' CPPFLAGS=-D_FORTIFY_SOURCE=2 LDFLAGS=-Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now' Configured features: XPM JPEG TIFF GIF PNG RSVG IMAGEMAGICK SOUND GPM DBUS GSETTINGS GLIB NOTIFY ACL GNUTLS LIBXML2 FREETYPE M17N_FLT LIBOTF XFT ZLIB TOOLKIT_SCROLL_BARS GTK3 X11 XDBE XIM MODULES THREADS LIBSYSTEMD LCMS2 Important settings: value of $LANG: en_US.UTF-8 locale-coding-system: utf-8-unix Major mode: Lisp Interaction Minor modes in effect: flymake-mode: t global-display-line-numbers-mode: t display-line-numbers-mode: t tooltip-mode: t global-eldoc-mode: t eldoc-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 auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t transient-mark-mode: t --000000000000503ecc05a2e1d905 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
I'm running into errors when attempting to run flymake= -show-diagnostics-buffer. If run after I've enabled line numbers via gl= obal-display-line-numbers-mode, I get the following stack trace:

Deb= ugger entered--Lisp error: (wrong-type-argument stringp nil)
=C2=A0 flym= ake--diagnostics-buffer-entries()
=C2=A0 tabulated-list-print(t)
=C2= =A0 tabulated-list-revert()
=C2=A0 run-hooks(display-line-numbers-mode-h= ook display-line-numbers-mode-on-hook)
=C2=A0 display-line-numbers-mode(= )
=C2=A0 display-line-numbers--turn-on()
=C2=A0 global-display-line-n= umbers-mode-enable-in-buffers()
=C2=A0 run-hooks(after-change-major-mode= -hook)
=C2=A0 run-mode-hooks(flymake-diagnostics-buffer-mode-hook)
= =C2=A0 flymake-diagnostics-buffer-mode()
=C2=A0 flymake-show-diagnostics= -buffer()
=C2=A0 funcall-interactively(flymake-show-diagnostics-buffer)<= br>=C2=A0 call-interactively(flymake-show-diagnostics-buffer record nil)=C2=A0 command-execute(flymake-show-diagnostics-buffer record)
=C2=A0 e= xecute-extended-command(nil "flymake-show-diagnostics-buffer" &qu= ot;flymake-show-diagnostics")
=C2=A0 funcall-interactively(execute-= extended-command nil "flymake-show-diagnostics-buffer" "flym= ake-show-diagnostics")
=C2=A0 call-interactively(execute-extended-c= ommand nil nil)
=C2=A0 command-execute(execute-extended-command)
=C2= =A0
Once this has been thrown once, running flymake-show-diagnostics-bu= ffer
works properly. The only thing in my config file is
(global-disp= lay-line-numbers-mode).

To repro:

emacs -Q
C-x b *scratch*=
M-x global-display-line-numbers-mode
M-x flymake-mode
M-x fl= ymake-show-diagnostics-buffer

Recent messages:
= For information about GNU Emacs and the GNU system, type C-h C-a.
Flymak= e mode enabled in current buffer
tabulated-list-print: Wrong type argume= nt: stringp, nil
Making completion list...

Configured using:
= =C2=A0'configure --prefix=3D/usr --sysconfdir=3D/etc --libexecdir=3D/us= r/lib
=C2=A0--localstatedir=3D/var --with-x-toolkit=3Dgtk3 --with-xft --= with-modules
=C2=A0'CFLAGS=3D-march=3Dx86-64 -mtune=3Dgeneric -O2 -p= ipe -fno-plt'
=C2=A0CPPFLAGS=3D-D_FORTIFY_SOURCE=3D2
=C2=A0LDFLAG= S=3D-Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now'

Configure= d features:
XPM JPEG TIFF GIF PNG RSVG IMAGEMAGICK SOUND GPM DBUS GSETTI= NGS GLIB
NOTIFY ACL GNUTLS LIBXML2 FREETYPE M17N_FLT LIBOTF XFT ZLIB
= TOOLKIT_SCROLL_BARS GTK3 X11 XDBE XIM MODULES THREADS LIBSYSTEMD LCMS2
<= br>Important settings:
=C2=A0 value of $LANG: en_US.UTF-8
=C2=A0 loca= le-coding-system: utf-8-unix

Major mode: Lisp Interaction

Min= or modes in effect:
=C2=A0 flymake-mode: t
=C2=A0 global-display-line= -numbers-mode: t
=C2=A0 display-line-numbers-mode: t
=C2=A0 tooltip-m= ode: t
=C2=A0 global-eldoc-mode: t
=C2=A0 eldoc-mode: t
=C2=A0 ele= ctric-indent-mode: t
=C2=A0 mouse-wheel-mode: t
=C2=A0 tool-bar-mode:= t
=C2=A0 menu-bar-mode: t
=C2=A0 file-name-shadow-mode: t
=C2=A0 = global-font-lock-mode: t
=C2=A0 font-lock-mode: t
=C2=A0 blink-cursor= -mode: t
=C2=A0 auto-composition-mode: t
=C2=A0 auto-encryption-mode:= t
=C2=A0 auto-compression-mode: t
=C2=A0 line-number-mode: t
=C2= =A0 transient-mark-mode: t
--000000000000503ecc05a2e1d905--