Managed to reply directly to Eric, perhaps this can be of interest to
the list in general.
Adding (require 'semanticdb-ref) solves the problem.
Thanks!!
cheers
/Joel
On Sun, Sep 11, 2011 at 5:30 PM, Eric M. Ludlam <ericludlam@...> wrote:
> Hi,
>
> Opening the file a second time Emacs will just show you the already open
> buffer. The error occurs between the time the file is loaded into a buffer,
> and when it is swapped into a window.
>
> I'll guess a quick fix for you is to add:
>
> (require 'semanticdb-ref)
>
> into your .emacs somewhere. In 8080, I had discovered that some old feature
> had stopped working, where header files weren't changing state, so I
> reenabled it after some minor testing. I couldn't find where it got
> disabled. Perhaps for something like this?
>
> I'll guess adding autoload cookies in semanticdb-ref will also fix this, or
> adding a require to the end of semanticdb.el somewhere. Those routines were
> pulled out of semanticdb.el into semanticdb-ref.el because semanticdb was
> getting too big.
>
> Anyway, if the above quick fix does work, then we'll know we just need to
> add something simple to the end of semanticdb to fix it.
>
> Eric
>
> On 09/11/2011 05:21 AM, Joel Borggrén-Franck wrote:
>>
>> I bisected this and it looks like it got introduced with rev 8080.
>>
>> Also here are some more details:
>>
>> - Clearing the semanticdb cache makes this go away _once_. Restarting
>> emacs and it shows up again
>> - Does reliably repro on my init.el
>> - Does not repro on a couple of c files i have
>> - In all cases where it shows up, opening the same file again succeeds
>>
>> cheers
>> /Joel
>>
>> On Sat, Sep 10, 2011 at 6:33 PM, Joel Borggrén-Franck
>> <joel.borggren.franck@...> wrote:
>>>
>>> Hi
>>>
>>> After enabling semanticdb I get the following error every time I try
>>> to open a file:
>>>
>>> semanticdb-abstract-table: Symbol's function definition is void:
>>> semanticdb-refresh-references
>>>
>>> From the stacktrace (below) I get the feeling that emacs tries to call
>>> semanticdb-refresh-references on an object of type semanticdb-table
>>> which should work, because that is defined in semanticdb-ref:111
>>> right?
>>>
>>> Strangely trying to open the same file a second time succeeds.
>>>
>>> I'm running GNU Emacs 23.3.1 (x86_64-apple-darwin, NS
>>> apple-appkit-1038.35)
>>> of 2011-03-10 on black.porkrind.org
>>>
>>> CEDET is latest from bzr: revno: 8098
>>>
>>> CEDET Version: 1.1beta
>>> Requested File Loaded
>>> Package Version Version Version
>>> ----------------------------------------------------------
>>> cedet: 1.1beta ok ok
>>> eieio: 1.4beta ok ok
>>> semantic: 2.1beta ok ok
>>> srecode: 1.1beta ok ok
>>> ede: 1.1beta ok ok
>>> speedbar: 1.0.4 ok ok
>>> cogre: 1.1beta ok Not Loaded
>>> cedet-contrib: 1.1beta ok Not Loaded
>>>
>>> As far as I can tell the compile of CEDET is ok (I ran "make
>>> EMACS=/Applications/path to emacs ..." )
>>>
>>> Parts of my .emacs is included below the stacktrace.
>>>
>>> Setting debug-on-error t gives:
>>>
>>> Debugger entered--Lisp error: (void-function
>>> semanticdb-refresh-references)
>>> semanticdb-refresh-references([object semanticdb-table "init.el"
>>> [object semanticdb-project-database-file "misc-files/"
>>> "/Users/jbf/src/misc-files/" semanticdb-table nil (#0 [object
>>> semanticdb-table ".emacs" #1 emacs-lisp-mode ... nil unbound nil
>>> ".emacs" nil t 5015 5014 ... nil nil])
>>> "/Users/jbf/.emacs.d/semantic/!Users!jbf!src!misc-files!semantic.cache"
>>> "2.1beta" "2.1beta"] emacs-lisp-mode nil nil unbound nil "init.el" nil
>>> t 9844 9843 (20075 34200) nil nil])
>>> semanticdb-abstract-table([object semanticdb-table "init.el" [object
>>> semanticdb-project-database-file "misc-files/"
>>> "/Users/jbf/src/misc-files/" semanticdb-table nil (#0 [object
>>> semanticdb-table ".emacs" #1 emacs-lisp-mode ... nil unbound nil
>>> ".emacs" nil t 5015 5014 ... nil nil])
>>> "/Users/jbf/.emacs.d/semantic/!Users!jbf!src!misc-files!semantic.cache"
>>> "2.1beta" "2.1beta"] emacs-lisp-mode nil nil unbound nil "init.el" nil
>>> t 9844 9843 (20075 34200) nil nil] nil)
>>> apply(semanticdb-abstract-table ([object semanticdb-table "init.el"
>>> [object semanticdb-project-database-file "misc-files/"
>>> "/Users/jbf/src/misc-files/" semanticdb-table nil ...
>>> "/Users/jbf/.emacs.d/semantic/!Users!jbf!src!misc-files!semantic.cache"
>>> "2.1beta" "2.1beta"] emacs-lisp-mode nil nil unbound nil "init.el" nil
>>> t 9844 9843 (20075 34200) nil nil] nil))
>>> eieio-generic-call-primary-only(semanticdb-synchronize ([object
>>> semanticdb-table "init.el" [object semanticdb-project-database-file
>>> "misc-files/" "/Users/jbf/src/misc-files/" semanticdb-table nil ...
>>> "/Users/jbf/.emacs.d/semantic/!Users!jbf!src!misc-files!semantic.cache"
>>> "2.1beta" "2.1beta"] emacs-lisp-mode nil nil unbound nil "init.el" nil
>>> t 9844 9843 (20075 34200) nil nil] nil))
>>> semanticdb-synchronize([object semanticdb-table "init.el" [object
>>> semanticdb-project-database-file "misc-files/"
>>> "/Users/jbf/src/misc-files/" semanticdb-table nil (#0 [object
>>> semanticdb-table ".emacs" #1 emacs-lisp-mode ... nil unbound nil
>>> ".emacs" nil t 5015 5014 ... nil nil])
>>> "/Users/jbf/.emacs.d/semantic/!Users!jbf!src!misc-files!semantic.cache"
>>> "2.1beta" "2.1beta"] emacs-lisp-mode nil nil unbound nil "init.el" nil
>>> t 9844 9843 (20075 34200) nil nil] nil)
>>> semanticdb-synchronize-table(nil)
>>> run-hook-with-args(semanticdb-synchronize-table nil)
>>> semantic-clear-toplevel-cache()
>>> semanticdb-semantic-init-hook-fcn()
>>> run-hooks(semantic-init-db-hook)
>>> semantic-new-buffer-fcn()
>>> run-hooks(mode-local-init-hook)
>>> #[nil "\300 \210\301\302!\207" [activate-mode-local-bindings
>>> run-hooks mode-local-init-hook] 2]()
>>> mode-local-map-file-buffers(#[nil "\300 \210\301\302!\207"
>>> [activate-mode-local-bindings run-hooks mode-local-init-hook] 2] #[nil
>>> " =?\207" [mode-local--init-mode major-mode] 2] (#<buffer
>>> init.el>))
>>> mode-local-post-major-mode-change()
>>> run-hooks(find-file-hook)
>>> after-find-file(nil t)
>>> find-file-noselect-1(#<buffer init.el> "~/src/misc-files/init.el"
>>> nil nil "~/src/misc-files/init.el" (16460936 234881026))
>>> find-file-noselect("/Users/jbf/src/misc-files/init.el" nil nil)
>>> ido-file-internal(raise-frame)
>>> ido-find-file()
>>> call-interactively(ido-find-file nil nil)
>>>
>>> Parts of my .emacs:
>>>
>>> ;; CEDET/semantic
>>> (load-file "~/lib/elisp/cedet/common/cedet.el")
>>> ;; (semantic-load-enable-minimum-features)
>>> (semantic-load-enable-code-helpers)
>>> (require 'semantic-ia) ;; this is for code navigation I think
>>>
>>> ;; set up semantic db
>>> (require 'semanticdb)
>>> (global-semanticdb-minor-mode 1)
>>>
>>> ;; analyze system header files
>>> (require 'semantic-gcc)
>>>
>>> ;; enable support for etags in some languages
>>> (semantic-load-enable-primary-exuberent-ctags-support)
>>>
>>> (add-hook 'semantic-init-hooks
>>> (lambda () (when (eq major-mode 'java-mode)
>>> (semantic-idle-summary-mode))))
>>>
>>> (add-hook 'semantic-init-hooks
>>> (lambda () (when (eq major-mode 'c-mode)
>>> (semantic-idle-summary-mode))))
>>>
>>> Hope you can help me with this
>>>
>>> cheers
>>> /Joel
>>>
>>
>>
>> ------------------------------------------------------------------------------
>> Using storage to extend the benefits of virtualization and iSCSI
>> Virtualization increases hardware utilization and delivers a new level of
>> agility. Learn what those decisions are and how to modernize your storage
>> and backup environments for virtualization.
>> http://www.accelacomm.com/jaw/sfnl/114/51434361/
>> _______________________________________________
>> Cedet-devel mailing list
>> Cedet-devel@...
>> https://lists.sourceforge.net/lists/listinfo/cedet-devel
>>
>
|