--- Begin Message ---
Subject: |
24.3.92; cedet: semanticdb-needs-refresh-p sometimes report (wrong-type-argument number-or-marker-p nil) error |
Date: |
Fri, 01 Aug 2014 17:06:14 +0800 |
Sometimes when semanticdb-needs-refresh-p is called on a non-existing
file it will report (wrong-type-argument number-or-marker-p nil)
The backtrace is too large so I attached a cropped image instead.
Tentative patch:
diff --git a/lisp/cedet/semantic/db.el b/lisp/cedet/semantic/db.el
index 76a49dd..0e68cb5 100644
*** a/lisp/cedet/semantic/db.el
--- b/lisp/cedet/semantic/db.el
***************
*** 593,609 ****
)
;; Buffer isn't loaded. The only clue we have is if the file
;; is somehow different from our mark in the semanticdb table.
(let* ((stats (file-attributes ff))
(actualsize (nth 7 stats))
(actualmod (nth 5 stats))
)
! (or (not (slot-boundp obj 'tags))
;; (not (oref obj tags)) --> not needed anymore?
(/= (or (oref obj fsize) 0) actualsize)
(not (equal (oref obj lastmodtime) actualmod))
)
))))
;;; Synchronization
--- 593,610 ----
)
;; Buffer isn't loaded. The only clue we have is if the file
;; is somehow different from our mark in the semanticdb table.
(let* ((stats (file-attributes ff))
(actualsize (nth 7 stats))
(actualmod (nth 5 stats))
)
! (or (not stats)
! (not (slot-boundp obj 'tags))
;; (not (oref obj tags)) --> not needed anymore?
(/= (or (oref obj fsize) 0) actualsize)
(not (equal (oref obj lastmodtime) actualmod))
)
))))
;;; Synchronization
In GNU Emacs 24.3.92.3 (x86_64-unknown-linux-gnu, GTK+ Version 2.24.10)
of 2014-08-01 on kanru-mozilla
Windowing system distributor `The X.Org Foundation', version 11.0.11204000
System Description: Debian GNU/Linux 7.6 (wheezy)
2014-08-01-153725_659x468_scrot.png
Description: PNG image
--- End Message ---
--- Begin Message ---
Subject: |
Re: bug#18165: [PATCH] Fix error when semanticdb-needs-refresh-p is called on a non-existing file |
Date: |
Wed, 12 Aug 2020 11:39:23 -0700 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) |
David Engster <deng@randomsample.de> writes:
> Kan-Ru Chen (陳侃如) writes:
>> Could someone help me install this patch to emacs-24 branch?
>
> I wonder why semanticdb-needs-refresh-p is called on a non-existing file
> in the first place. Could you please provide a recipe to reproduce this
> bug?
More information was requested, but none was given within 6 years, so
I'm closing this bug. If this is still an issue, please reply to this
email (use "Reply to all" in your email client) and we can reopen the
bug report.
Best regards,
Stefan Kangas
--- End Message ---