Re: [CEDET-devel] Apparently circular structure
Brought to you by:
zappo
From: Alastair R. <ar...@in...> - 2008-06-17 05:23:09
|
Eric M. Ludlam wrote: >>>> Alastair Rankine <ar...@in...> seems to think that: >> Eric M. Ludlam wrote: >>> Your stack implies that ede-minor-mode is somehow 't' in a directory >>> related to boost/variant/variant.hpp but it does not actually have a >>> project associated with it. >>> >>> If you loaded that file, and tried: >>> >>> M-: ede-object RET >>> >>> does it say nil, while >>> >>> M-: ede-minor-mode RET >>> >>> is t? >> Actually no - both functions return nil for that file when the error >> occurs. I will email a complete stack dump if it helps. >> >> I initially thought this might be related to global-ede-mode although I >> have verified the problem with this both enabled and disabled. >> >> Do you have any other suggestions? Other than PEBKAC of course. > [ ... ] > > I had wrapped the specific pieces your last stack pointed at with a > (condition-case ...) If you are still getting an error from it, I would like > to see the stack, as presumably it will be different. > Already emailed, but just for posterity, here is a small test case: OK so here is a simplified case to try to reproduce this idle work error. Basically boost 1.34.1 is installed in d:/dev/include/boost. Other files are as listed below, and complete stack trace is at the bottom. Hopefully this is helpful? ### d:/tmp/dummy/CMakeLists.txt: (empty) ### d:/tmp/dummy/foo/bar.hpp: #ifndef FOO_BAR_HPP #define FOO_BAR_HPP #include <boost/variant.hpp> namespace Foo { namespace Bar { void BarFunc(); } } #endif // FOO_BAR_HPP ### d:/tmp/dummy/foo/bar.cpp: #include "globalPch.hpp" #include "foo/bar.hpp" namespace Foo { namespace Bar { void BarFunc(); } } ### .emacs project definition: (semantic-add-system-include "d:/dev/include/" 'c++-mode) (semantic-add-system-include "c:/Program Files/Microsoft Visual Studio 8/VC/include/" 'c++-mode) (ede-cpp-root-project "Dummy" :file "d:/tmp/dummy/CMakeLists.txt" :include-path '( "/" ) :spp-table '( ( "_MSC_VER" . "1400" ) ) ) ### stack trace: Debugger entered--Lisp error: (wrong-type-argument arrayp nil) eieiomt-next(nil) eieiomt-method-list(ede-project-root 0 nil) eieio-generic-call(ede-project-root (nil)) ede-project-root(nil) ede-toplevel() byte-code("..." " [tag ede-expand-filename ede-toplevel] 4) semantic-dependency-tag-file(("boost/variant/variant.hpp" include nil (:filename "d:/dev/include/boost/variant.hpp") [557 593])) semanticdb-find-table-for-include-default(("boost/variant/variant.hpp" include nil (:filename "d:/dev/include/boost/variant.hpp") [557 593]) [object semanticdb-table "bar.cpp" [object semanticdb-project-database-file "foo/" "d:/tmp/dummy/foo/" semanticdb-table nil ([object semanticdb-table "foo.cpp" #1 c++-mode ... [object semanticdb-find-search-index "#<semanticdb-table foo.cpp> index" #3 ... [object semanticdb-typecache "d:/tmp/dummy/foo/foo.cpp" nil nil nil ...]] ... "foo.cpp" nil nil 105 104 ... nil nil] #0 [object semanticdb-table "bar.hpp" #1 c++-mode ... unbound ... "bar.hpp" t ... 150 149 ... nil ...]) "c:/Documents and Settings/alastair.rankine/.emacs.d/semanticdb/!drive_d!tmp!dummy!foo!semantic.cache" "2.0pre5" "2.0pre5"] c++-mode (("globalPch.hpp" include nil ... #<overlay from 1 to 25 in bar.cpp>) ("foo/bar.hpp" include nil ... #<overlay from 27 to 49 in bar.cpp>) ("Foo" type ... ... #<overlay from 51 to 104 in bar.cpp>)) [object semanticdb-find-search-index "#<semanticdb-table bar.cpp> index" #0 nil [object semanticdb-typecache "d:/tmp/dummy/foo/bar.cpp" nil nil nil ...]] ([object semantic-scope-cache "Cache" #0 nil nil nil nil nil nil nil]) "bar.cpp" t nil 105 104 (18519 7196) nil nil]) semanticdb-find-table-for-include(("boost/variant/variant.hpp" include nil (:filename "d:/dev/include/boost/variant.hpp") [557 593]) [object semanticdb-table "bar.cpp" [object semanticdb-project-database-file "foo/" "d:/tmp/dummy/foo/" semanticdb-table nil ([object semanticdb-table "foo.cpp" #1 c++-mode ... [object semanticdb-find-search-index "#<semanticdb-table foo.cpp> index" #3 ... [object semanticdb-typecache "d:/tmp/dummy/foo/foo.cpp" nil nil nil ...]] ... "foo.cpp" nil nil 105 104 ... nil nil] #0 [object semanticdb-table "bar.hpp" #1 c++-mode ... unbound ... "bar.hpp" t ... 150 149 ... nil ...]) "c:/Documents and Settings/alastair.rankine/.emacs.d/semanticdb/!drive_d!tmp!dummy!foo!semantic.cache" "2.0pre5" "2.0pre5"] c++-mode (("globalPch.hpp" include nil ... #<overlay from 1 to 25 in bar.cpp>) ("foo/bar.hpp" include nil ... #<overlay from 27 to 49 in bar.cpp>) ("Foo" type ... ... #<overlay from 51 to 104 in bar.cpp>)) [object semanticdb-find-search-index "#<semanticdb-table bar.cpp> index" #0 nil [object semanticdb-typecache "d:/tmp/dummy/foo/bar.cpp" nil nil nil ...]] ([object semantic-scope-cache "Cache" #0 nil nil nil nil nil nil nil]) "bar.cpp" t nil 105 104 (18519 7196) nil nil]) semanticdb-find-translate-path-includes--internal(#<buffer bar.cpp>) semanticdb-find-translate-path-includes-default(#<buffer bar.cpp>) semanticdb-find-translate-path-default(#<buffer bar.cpp> nil) semanticdb-find-translate-path(#<buffer bar.cpp> nil) semantic-idle-work-for-one-buffer(#<buffer bar.cpp>) |