From: "Basil L. Contovounesios" <contovob@tcd.ie>
To: "Andrés Ramírez" <rrandresf@gmail.com>
Cc: 41745@debbugs.gnu.org
Subject: bug#41745: 28.0.50; problem with json file and which-function on pretest an master
Date: Sun, 07 Jun 2020 13:23:14 +0100 [thread overview]
Message-ID: <87eeqr3w0d.fsf@tcd.ie> (raw)
In-Reply-To: <86tuznms4b.fsf@gmail.com> ("Andrés Ramírez"'s message of "Sun, 07 Jun 2020 04:12:20 +0000")
Andrés Ramírez <rrandresf@gmail.com> writes:
> I have an issue after opening a json file with pretest. Going to end
> of file with M-> then M-x backward-delete-char. I get this:
>
> Debugger entered--Lisp error: (cl-assertion-failed ((or (= (point-min) (point-max)) (eq js--last-parse-pos (point))) nil))
> cl--assertion-failed((or (= (point-min) (point-max)) (eq js--last-parse-pos (point))))
> js--imenu-create-index()
> imenu--make-index-alist(t)
> which-function()
> which-func-update-1(#<window 3 on sale_line_grammar.json>)
> which-func-update()
> apply(which-func-update nil)
> timer-event-handler([t 0 0 500000 t which-func-update nil idle 0])
>
> I have tried to do the same with emacs -Q (But. I was not able of
> reproducing it).
Could you try commenting-out parts of your configuration, perhaps by
recursively bisecting it, to narrow down which parts of it give rise to
the error?
> Also I have tested the same with emacs26.3. And everything works ok.
>
> So my personal conclusion is that this is a regression (related to which-func.el).
That depends on who is causing the problem - it could be a third-party
package that you have installed, for example. Until there is a clear
reproduction recipe it's hard to know for sure.
> So. I have not been able of reproducing it with emacs -Q. If needed I
> could share my dot emacs files.
>
> Just in Case this is the content of the file that causes the issue:
>
> // TODO: code the #else; analize it {before document better the keywords}
> #if ( ${saleline.is_service()} == 0 )
> ${saleline.supplier()}/${saleline.subcategory()}/${saleline.color()}/${saleline.size()}/${saleline.name()}/${saleline.unit()}
> #end
> #if ( ${saleline.is_service()} == "1" )
> ${saleline.supplier()}/${saleline.subcategory()}/${saleline.name()}
> #end
I'm confused; are these the entire contents of the file
sale_line_grammar.json that is mentioned in the backtrace? Is this some
sort of templating syntax that is replaced with valid JSON later on? If
so, this issue is more about js-mode or whichever other major mode you
may be using, rather than JSON. What does C-h v major-mode RET tell you
when you're visiting this file?
I tried the following with both emacs-27 and master and didn't run into
any errors:
0. emacs -Q
1. C-x C-f /tmp/sale_line_grammar.json RET
2. M->
3. M-x delete-backward-char RET
4. C-x z z z z z z z z
--
Basil
next prev parent reply other threads:[~2020-06-07 12:23 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-06-07 4:12 bug#41745: 28.0.50; problem with json file and which-function on pretest an master Andrés Ramírez
2020-06-07 12:23 ` Basil L. Contovounesios [this message]
2020-06-07 13:49 ` Dmitry Gutov
2020-06-07 15:17 ` Basil L. Contovounesios
2020-06-07 16:53 ` andrés ramírez
2020-06-07 16:44 ` andrés ramírez
2020-06-07 18:17 ` Basil L. Contovounesios
2020-06-07 18:56 ` andrés ramírez
2020-06-07 19:11 ` Basil L. Contovounesios
2020-06-07 19:28 ` andrés ramírez
2020-06-07 20:34 ` Basil L. Contovounesios
2020-06-07 20:20 ` Dmitry Gutov
2020-06-07 20:34 ` Basil L. Contovounesios
2020-06-07 20:44 ` Dmitry Gutov
2022-02-20 14:15 ` Lars Ingebrigtsen
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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87eeqr3w0d.fsf@tcd.ie \
--to=contovob@tcd.ie \
--cc=41745@debbugs.gnu.org \
--cc=rrandresf@gmail.com \
/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 public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).