GNU bug report logs - #8092
24.0.50; ede-emacs error with un-configured emacs source

Previous Next

Package: emacs;

Reported by: Darren Hoo <darren.hoo <at> gmail.com>

Date: Mon, 21 Feb 2011 19:26:02 UTC

Severity: minor

Tags: fixed

Found in version 24.0.50

Fixed in version 24.1

Done: Lars Magne Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 8092 in the body.
You can then email your comments to 8092 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org:
bug#8092; Package emacs. (Mon, 21 Feb 2011 19:26:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Darren Hoo <darren.hoo <at> gmail.com>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Mon, 21 Feb 2011 19:26:02 GMT) Full text and rfc822 format available.

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

From: Darren Hoo <darren.hoo <at> gmail.com>
To: bug-gnu-emacs <at> gnu.org
Subject: 24.0.50; ede-emacs error with un-configured emacs source
Date: Tue, 22 Feb 2011 03:14:35 +0800
turn on ede

(global-ede-mode t)

then trying dire-find-file on emacs src directory shows

semanticdb-file-table-object: Wrong type argument: stringp, nil 

full trace:

Debugger entered--Lisp error: (wrong-type-argument stringp nil)
  file-exists-p(nil)
  semanticdb-file-table-object(nil)
  ede-emacs-target-c([object ede-emacs-target-c "ede-emacs-target-c" nil "src" "/home/darren/mnt/emacs/src/" nil nil])
  apply(ede-emacs-target-c [object ede-emacs-target-c "ede-emacs-target-c" nil "src" "/home/darren/mnt/emacs/src/" nil nil])
  eieio-generic-call-primary-only(ede-preprocessor-map ([object ede-emacs-target-c "ede-emacs-target-c" nil "src" "/home/darren/mnt/emacs/src/" nil nil]))
  ede-preprocessor-map([object ede-emacs-target-c "ede-emacs-target-c" nil "src" "/home/darren/mnt/emacs/src/" nil nil])
  ede-apply-preprocessor-map()
  ede-apply-target-options()
  ede-initialize-state-current-buffer()
  ede-minor-mode(1)
  ede-turn-on-hook()
  run-hooks(find-file-hook)
  after-find-file(nil t)
  find-file-noselect-1(#<buffer buffer.c> "~/mnt/emacs/src/buffer.c" nil nil "~/mnt/emacs/src/buffer.c" (3464 25))
  find-file-noselect("/home/darren/mnt/emacs/src/buffer.c" nil nil nil)
  find-file("/home/darren/mnt/emacs/src/buffer.c")
  dired-find-file()
  call-interactively(dired-find-file nil nil)

I think this should be handled gracefully, if reminding user to configure
emacs first is even better.

diff --git a/lisp/cedet/ede/emacs.el b/lisp/cedet/ede/emacs.el
index b8759dd..cee7c70 100644
--- a/lisp/cedet/ede/emacs.el
+++ b/lisp/cedet/ede/emacs.el
@@ -245,6 +245,8 @@ All files need the macros from lisp.h!"
        (semanticdb-refresh-table config))
       (setq filemap (append filemap (oref config lexical-table)))
       )
+    (or config
+       (message "%s" "Missing config.h, configure your Emacs src first"))
     filemap
     ))
 
diff --git a/lisp/cedet/semantic/db.el b/lisp/cedet/semantic/db.el
index fa8de39..dca1b3b 100644
--- a/lisp/cedet/semantic/db.el
+++ b/lisp/cedet/semantic/db.el
@@ -880,7 +880,7 @@ If file does not have tags available, and DONTLOAD is nil,
 then load the tags for FILE, and create a new table object for it.
 DONTLOAD does not affect the creation of new database objects."
   ;; (message "Object Translate: %s" file)
-  (when (file-exists-p file)
+  (when (and file (file-exists-p file))
     (let* ((default-directory (file-name-directory file))
           (tab (semanticdb-file-table-object-from-hash file))
           (fullfile nil))




Information forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org:
bug#8092; Package emacs. (Mon, 04 Jul 2011 15:39:02 GMT) Full text and rfc822 format available.

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

From: Lars Magne Ingebrigtsen <larsi <at> gnus.org>
To: Darren Hoo <darren.hoo <at> gmail.com>
Cc: 8092 <at> debbugs.gnu.org
Subject: Re: 24.0.50; ede-emacs error with un-configured emacs source
Date: Mon, 04 Jul 2011 17:37:23 +0200
Darren Hoo <darren.hoo <at> gmail.com> writes:

> turn on ede
>
> (global-ede-mode t)
>
> then trying dire-find-file on emacs src directory shows
>
> semanticdb-file-table-object: Wrong type argument: stringp, nil 

I've applied your patch that fixes this error to Emacs 24.

-- 
(domestic pets only, the antidote for overdose, milk.)
  bloggy blog http://lars.ingebrigtsen.no/




Added tag(s) fixed. Request was from Lars Magne Ingebrigtsen <larsi <at> gnus.org> to control <at> debbugs.gnu.org. (Mon, 04 Jul 2011 15:41:01 GMT) Full text and rfc822 format available.

bug marked as fixed in version 24.1, send any further explanations to 8092 <at> debbugs.gnu.org and Darren Hoo <darren.hoo <at> gmail.com> Request was from Lars Magne Ingebrigtsen <larsi <at> gnus.org> to control <at> debbugs.gnu.org. (Mon, 04 Jul 2011 15:41:01 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Tue, 02 Aug 2011 11:24:07 GMT) Full text and rfc822 format available.

This bug report was last modified 12 years and 283 days ago.

Previous Next


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