all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: charles@aurox.ch (Charles A. Roelli)
To: dancol@dancol.org
Cc: 30964@debbugs.gnu.org
Subject: bug#30964: python-mode failing "overlapping strings" assertion lately
Date: Tue, 03 Apr 2018 20:12:48 +0200	[thread overview]
Message-ID: <m2sh8c17mn.fsf@aurox.ch> (raw)
In-Reply-To: <5c3e75f096fae419224804c590805b9c.squirrel@dancol.org>

> Date: Tue, 27 Mar 2018 11:09:38 -0700
> From: dancol@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.





  parent reply	other threads:[~2018-04-03 18:12 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-03-27 18:09 bug#30964: python-mode failing "overlapping strings" assertion lately dancol
2018-04-02  1:11 ` Noam Postavsky
2018-04-03 18:12 ` Charles A. Roelli [this message]
2018-04-03 22:06   ` Dmitry Gutov
2018-05-18 15:46 ` Clément Pit-Claudel
2018-05-18 19:18   ` Andreas Röhler
2018-05-19  1:49     ` Noam Postavsky
2018-05-19  6:49       ` Andreas Röhler
2018-05-30  0:29   ` Noam Postavsky
2018-06-02 19:03     ` Philipp Stephani
2018-06-02 20:35       ` Noam Postavsky
2018-06-16 20:55         ` Daniel Colascione
2018-06-16 22:36           ` Noam Postavsky
2018-06-17  7:33             ` Andreas Röhler

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=m2sh8c17mn.fsf@aurox.ch \
    --to=charles@aurox.ch \
    --cc=30964@debbugs.gnu.org \
    --cc=dancol@dancol.org \
    /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.