emacs-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#18165: closed (24.3.92; cedet: semanticdb-needs-refresh-p sometimes


From: GNU bug Tracking System
Subject: bug#18165: closed (24.3.92; cedet: semanticdb-needs-refresh-p sometimes report (wrong-type-argument number-or-marker-p nil) error)
Date: Wed, 12 Aug 2020 18:40:02 +0000

Your message dated Wed, 12 Aug 2020 11:39:23 -0700
with message-id 
<CADwFkm=aMyMgcHjb5T9LKgBGyBmJgAtJ6hzk1=GGCv3gr_ssBQ@mail.gmail.com>
and subject line Re: bug#18165: [PATCH] Fix error when 
semanticdb-needs-refresh-p is called on a non-existing file
has caused the debbugs.gnu.org bug report #18165,
regarding 24.3.92; cedet: semanticdb-needs-refresh-p sometimes report 
(wrong-type-argument number-or-marker-p nil) error
to be marked as done.

(If you believe you have received this mail in error, please contact
help-debbugs@gnu.org.)


-- 
18165: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=18165
GNU Bug Tracking System
Contact help-debbugs@gnu.org with problems
--- 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)

Attachment: 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 ---

reply via email to

[Prev in Thread] Current Thread [Next in Thread]