GNU bug report logs - #30964
python-mode failing "overlapping strings" assertion lately

Previous Next

Package: emacs;

Reported by: dancol <at> dancol.org

Date: Tue, 27 Mar 2018 18:10:01 UTC

Severity: normal

Done: "Daniel Colascione" <dancol <at> dancol.org>

Bug is archived. No further changes may be made.

Full log


Message #11 received at 30964 <at> debbugs.gnu.org (full text, mbox):

From: charles <at> aurox.ch (Charles A. Roelli)
To: dancol <at> dancol.org
Cc: 30964 <at> debbugs.gnu.org
Subject: Re: bug#30964: python-mode failing "overlapping strings" assertion
 lately
Date: Tue, 03 Apr 2018 20:12:48 +0200
> Date: Tue, 27 Mar 2018 11:09:38 -0700
> From: dancol <at> dancol.org
> 
> Has something changed in master that might be breaking python-mode? We
> keep hitting a parsing assertion.
> 
> The surrounding code in python.el claims that
> 
>                        ;; The assertion can only fail if syntax table
>                        ;; text properties and the `syntax-ppss' cache
>                        ;; are somehow out of whack.  This has been
>                        ;; observed when using `syntax-ppss' during
>                        ;; narrowing.
>                        (cl-assert (> string-start last-string-end)
>                                   :show-args
>                                   "\
> Overlapping strings detected (start=%d, last-end=%d)")
> 
> I can _sometimes_ repro with (while (not (eobp))
> (python-nav-forward-statement)), but I haven't found a reliable test case.

I saw it with the pretest (26.0.91) today, with no narrowing,
font-lock off, and after typing M-3 " to open a docstring.  I didn't
find a reproducible case either, though.




This bug report was last modified 6 years and 344 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.