Thread: Re: [cedet-semantic] semantic-idle including error
Brought to you by:
zappo
From: Nate <nat...@hu...> - 2008-12-23 20:48:08
|
Sorry about the HTML formatting. Try this: I've started getting the following error in recent weeks. Can anyone provide advice on what the cause might be? >Idle Work Including Error: "#<buffer foo.cpp> - Wrong type argument: stringp, nil" This occurs when the file foo.cpp is loaded in emacs. If I have multiple files loaded, then it complains about those files. It always complains about the files loaded in emacs, rather than the files any"foo.cpp" might want included. I can see semantic-idle.el is expecting the filename, not the buffername, but I don't know how I might have fouled this process. I'm working with the latest CVS version of CEDET in emacs 22.3. Strangely, while waiting for a response to this, I enabled "enter debugger on error" as well as semantic-idle-scheduler-verbose-flag, and the problem is no longer occurring. Instead, my *Messages* buffer is showing a series of sequences like the following: Long Work Idle Timer... IDLE: Core handler... IDLE: execture service semantic-idle-summary-idle-function...done IDLE: execture service semantic-idle-completions-idle-function...done IDLE: Core handler...done Thanks, Nate |
From: Nate <nat...@hu...> - 2008-12-24 14:07:59
|
Eric, Here's the stack trace. I put an extra <CR> between the exceptionally long lines. FWIW, the stdio.h file exists where semanticdb is looking for it. Thanks for any guidance you might have. Debugger entered--Lisp error: (wrong-type-argument stringp nil) get-file-buffer(nil) semanticdb-file-table-object("c:/cygwin/usr/include/stdio.h") semanticdb-find-load-unloaded-default("c:/cygwin/usr/include/stdio.h") semanticdb-find-load-unloaded("c:/cygwin/usr/include/stdio.h") semanticdb-find-table-for-include-default(("stdio.h" include nil (:filename "z:/spw_st/st/src/svc/src/SvcManager.cpp" dependency-file "c:/cygwin/usr/include/stdio.h") #<overlay from 4381 to 4399 in SvcManager.cpp>) [object semanticdb-table "SvcManager.cpp" [object semanticdb-project-database-file "semantic/" "z:/spw_st/st/src/svc/src/" semanticdb-table nil (#0 [object semanticdb-table "SvcBwsHandler.cpp" #1 c++-mode ... unbound nil "SvcBwsHandler.cpp" nil nil nil 3078 3280 ... unbound nil] [object semanticdb-table "SvcRmcProxy.cpp" #1 c++-mode ... unbound nil "SvcRmcProxy.cpp" nil nil nil 717 716 ... nil nil]) "c:/Docume~1/nschley/MyDocu~1/C++/semantic/!drive_z!spw_st!st!src!svc!src!semantic.cache" "2.0pre4" "2.0pre4"] c++-mode (("SysInstallationParameters.h" include nil ... #<overlay from 4197 to 4235 in SvcManager.cpp>) ("SysSharedMemDefs.h" include nil ... #<overlay from 4236 to 4265 in SvcManager.cpp>) ("SvcManager.h" include nil ... #<overlay from 4266 to 4289 in SvcManager.cpp>) ("TskTimer.h" include nil ... #<overlay from 4290 to 4311 in SvcManager.cpp>) ("TskProcessor.h" include nil ... #<overlay from 4312 to 4337 in SvcManager.cpp>) ("LogTypes.h" include nil ... #<overlay from 4338 to 4359 in SvcManager.cpp>) ("BufMgmt.h" include nil ... #<overlay from 4360 to 4380 in SvcManager.cpp>) ("stdio.h" include nil ... #<overlay from 4381 to 4399 in SvcManager.cpp>) ("iostream" include ... ... #<overlay from 4400 to 4419 in SvcManager.cpp>) ("std" using ... nil #<overlay from 4420 to 4440 in SvcManager.cpp>) ("needPacking" variable ... nil #<overlay from 4493 to 4522 in SvcManager.cpp>) ("SvcManager" function ... ... #<overlay from 4884 to 8485 in SvcManager.cpp>) ("setTimingTask" function ... ... #<overlay from 8565 to 8965 in SvcManager.cpp>) ("setMctProxy" function ... ... #<overlay from 9047 to 9129 in SvcManager.cpp>) ("setMonAgent" function ... ... #<overlay from 9210 to 9292 in SvcManager.cpp>) ("updateNoccServiceMIP" function ... ... #<overlay from 21156 to 22017 in SvcManager.cpp>) ("updateServiceProf" function ... ... #<overlay from 22098 to 31204 in SvcManager.cpp>) ("updateSystemProf" function ... ... #<overlay from 31285 to 34291 in SvcManager.cpp>) ("updateSystemProfileMIP" function ... ... #<overlay from 34372 to 36280 in SvcManager.cpp>) ("updateDLRegionMAPMIP" function ... ... #<overlay from 36361 to 39873 in SvcManager.cpp>) ("updateChannelInfoMIP" function ... ... #<overlay from 39954 to 44799 in SvcManager.cpp>) ("updateMonParams" function ... ... #<overlay from 44880 to 46673 in SvcManager.cpp>) ("toUpdateVirtualPortState" function ... ... #<overlay from 46754 to 47132 in SvcManager.cpp>) ("updateVirtualPortState" function ... ... #<overlay from 47213 to 47721 in SvcManager.cpp>) ("updateTransChanType" function ... ... #<overlay from 47802 to 48284 in SvcManager.cpp>) ("updateStState" function ... ... #<overlay from 48365 to 48858 in SvcManager.cpp>) ("updateCapacityKeyParams" function ... ... #<overlay from 49578 to 51302 in SvcManager.cpp>) ("updateSAMSTProfileUpdate" function ... ... #<overlay from 51383 to 54715 in SvcManager.cpp>) ("procSamBootSwVerInd" function ... ... #<overlay from 54796 to 55253 in SvcManager.cpp>) ("handleTrafficProfileTimeout" function ... ... #<overlay from 55334 to 57714 in SvcManager.cpp>) ("handleBwsConfigReqTimeout" function ... ... #<overlay from 57795 to 58031 in SvcManager.cpp>) ("handleBwsInitReqTimeout" function ... ... #<overlay from 58112 to 58344 in SvcManager.cpp>) ("handleBwsSysProfMIPTimeout" function ... ... #<overlay from 58425 to 58762 in SvcManager.cpp>) ("handleUppInitReqTimeout" function ... ... #<overlay from 58844 to 59111 in SvcManager.cpp>) ("handleMctReqTimeout" function ... ... #<overlay from 59192 to 59516 in SvcManager.cpp>) ("processMctResponse" function ... ... #<overlay from 87271 to 87385 in SvcManager.cpp>) ("processBwsConfigResponse" function ... ... #<overlay from 87466 to 87771 in SvcManager.cpp>) ("processBwsInitTableResponse" function ... ... #<overlay from 87852 to 88736 in SvcManager.cpp>) ("processBwsSysMIPResponse" function ... ... #<overlay from 88817 to 89135 in SvcManager.cpp>) ("processBwsSynchIndication" function ... ... #<overlay from 89216 to 93041 in SvcManager.cpp>) ("processBwsModeIndication" function ... ... #<overlay from 93122 to 99938 in SvcManager.cpp>) ("updateBwsConfig" function ... ... #<overlay from 100040 to 100475 in SvcManager.cpp>) ("updateBwsInitTable" function ... ... #<overlay from 100556 to 101291 in SvcManager.cpp>) ("updateBwsSysMIP" function ... ... #<overlay from 101372 to 101789 in SvcManager.cpp>) ("updateUppInitTable" function ... ... #<overlay from 101871 to 103415 in SvcManager.cpp>) ("processUppInitTableResponse" function ... ... #<overlay from 103520 to 104130 in SvcManager.cpp>) ("getCRWBInstance" function ... ... #<overlay from 104787 to 104926 in SvcManager.cpp>) ("getRateConnQGType" function ... ... #<overlay from 105007 to 105120 in SvcManager.cpp>) ("getBODUplinkBandwidth" function ... ... #<overlay from 105201 to 106016 in SvcManager.cpp>) ("getSARNumForCRCRWB" function ... ... #<overlay from 106097 to 107633 in SvcManager.cpp>) ...) [object semanticdb-find-search-index "#<semanticdb-table SvcManager.cpp> index" #0 (#0 [object semanticdb-table "stdio.h" [object semanticdb-project-database-file "include/" "c:/cygwin/usr/include/" semanticdb-table nil ... "c:/Docume~1/nschley/MyDocu~1/C++/semantic/!drive_c!cygwin!usr!include!semantic.cache" "2.0pre5" "2.0pre5"] nil unbound [object semanticdb-find-search-index "#<semanticdb-table stdio.h> index" #3 nil [object semanticdb-typecache "c:/cygwin/usr/include/stdio.h" nil nil nil nil]] nil "stdio.h" nil nil ... nil nil nil unbound nil]) [object semanticdb-typecache "z:/spw_st/st/src/svc/src/SvcManager.cpp" nil nil nil ...]] ([object semantic-scope-cache "Cache" #0 ... nil nil nil nil nil ... nil]) "SvcManager.cpp" #<buffer SvcManager.cpp> nil nil 178641 178640 (18713 24854) nil nil]) semanticdb-find-table-for-include(("stdio.h" include nil (:filename "z:/spw_st/st/src/svc/src/SvcManager.cpp" dependency-file "c:/cygwin/usr/include/stdio.h") #<overlay from 4381 to 4399 in SvcManager.cpp>) [object semanticdb-table "SvcManager.cpp" [object semanticdb-project-database-file "semantic/" "z:/spw_st/st/src/svc/src/" semanticdb-table nil (#0 [object semanticdb-table "SvcBwsHandler.cpp" #1 c++-mode ... unbound nil "SvcBwsHandler.cpp" nil nil nil 3078 3280 ... unbound nil] [object semanticdb-table "SvcRmcProxy.cpp" #1 c++-mode ... unbound nil "SvcRmcProxy.cpp" nil nil nil 717 716 ... nil nil]) "c:/Docume~1/nschley/MyDocu~1/C++/semantic/!drive_z!spw_st!st!src!svc!src!semantic.cache" "2.0pre4" "2.0pre4"] c++-mode (("SysInstallationParameters.h" include nil ... #<overlay from 4197 to 4235 in SvcManager.cpp>) ("SysSharedMemDefs.h" include nil ... #<overlay from 4236 to 4265 in SvcManager.cpp>) ("SvcManager.h" include nil ... #<overlay from 4266 to 4289 in SvcManager.cpp>) ("TskTimer.h" include nil ... #<overlay from 4290 to 4311 in SvcManager.cpp>) ("TskProcessor.h" include nil ... #<overlay from 4312 to 4337 in SvcManager.cpp>) ("LogTypes.h" include nil ... #<overlay from 4338 to 4359 in SvcManager.cpp>) ("BufMgmt.h" include nil ... #<overlay from 4360 to 4380 in SvcManager.cpp>) ("stdio.h" include nil ... #<overlay from 4381 to 4399 in SvcManager.cpp>) ("iostream" include ... ... #<overlay from 4400 to 4419 in SvcManager.cpp>) ("std" using ... nil #<overlay from 4420 to 4440 in SvcManager.cpp>) ("needPacking" variable ... nil #<overlay from 4493 to 4522 in SvcManager.cpp>) ("SvcManager" function ... ... #<overlay from 4884 to 8485 in SvcManager.cpp>) ("setTimingTask" function ... ... #<overlay from 8565 to 8965 in SvcManager.cpp>) ("setMctProxy" function ... ... #<overlay from 9047 to 9129 in SvcManager.cpp>) ("setMonAgent" function ... ... #<overlay from 9210 to 9292 in SvcManager.cpp>) ("updateNoccServiceMIP" function ... ... #<overlay from 21156 to 22017 in SvcManager.cpp>) ("updateServiceProf" function ... ... #<overlay from 22098 to 31204 in SvcManager.cpp>) ("updateSystemProf" function ... ... #<overlay from 31285 to 34291 in SvcManager.cpp>) ("updateSystemProfileMIP" function ... ... #<overlay from 34372 to 36280 in SvcManager.cpp>) ("updateDLRegionMAPMIP" function ... ... #<overlay from 36361 to 39873 in SvcManager.cpp>) ("updateChannelInfoMIP" function ... ... #<overlay from 39954 to 44799 in SvcManager.cpp>) ("updateMonParams" function ... ... #<overlay from 44880 to 46673 in SvcManager.cpp>) ("toUpdateVirtualPortState" function ... ... #<overlay from 46754 to 47132 in SvcManager.cpp>) ("updateVirtualPortState" function ... ... #<overlay from 47213 to 47721 in SvcManager.cpp>) ("updateTransChanType" function ... ... #<overlay from 47802 to 48284 in SvcManager.cpp>) ("updateStState" function ... ... #<overlay from 48365 to 48858 in SvcManager.cpp>) ("updateCapacityKeyParams" function ... ... #<overlay from 49578 to 51302 in SvcManager.cpp>) ("updateSAMSTProfileUpdate" function ... ... #<overlay from 51383 to 54715 in SvcManager.cpp>) ("procSamBootSwVerInd" function ... ... #<overlay from 54796 to 55253 in SvcManager.cpp>) ("handleTrafficProfileTimeout" function ... ... #<overlay from 55334 to 57714 in SvcManager.cpp>) ("handleBwsConfigReqTimeout" function ... ... #<overlay from 57795 to 58031 in SvcManager.cpp>) ("handleBwsInitReqTimeout" function ... ... #<overlay from 58112 to 58344 in SvcManager.cpp>) ("handleBwsSysProfMIPTimeout" function ... ... #<overlay from 58425 to 58762 in SvcManager.cpp>) ("handleUppInitReqTimeout" function ... ... #<overlay from 58844 to 59111 in SvcManager.cpp>) ("handleMctReqTimeout" function ... ... #<overlay from 59192 to 59516 in SvcManager.cpp>) ("processMctResponse" function ... ... #<overlay from 87271 to 87385 in SvcManager.cpp>) ("processBwsConfigResponse" function ... ... #<overlay from 87466 to 87771 in SvcManager.cpp>) ("processBwsInitTableResponse" function ... ... #<overlay from 87852 to 88736 in SvcManager.cpp>) ("processBwsSysMIPResponse" function ... ... #<overlay from 88817 to 89135 in SvcManager.cpp>) ("processBwsSynchIndication" function ... ... #<overlay from 89216 to 93041 in SvcManager.cpp>) ("processBwsModeIndication" function ... ... #<overlay from 93122 to 99938 in SvcManager.cpp>) ("updateBwsConfig" function ... ... #<overlay from 100040 to 100475 in SvcManager.cpp>) ("updateBwsInitTable" function ... ... #<overlay from 100556 to 101291 in SvcManager.cpp>) ("updateBwsSysMIP" function ... ... #<overlay from 101372 to 101789 in SvcManager.cpp>) ("updateUppInitTable" function ... ... #<overlay from 101871 to 103415 in SvcManager.cpp>) ("processUppInitTableResponse" function ... ... #<overlay from 103520 to 104130 in SvcManager.cpp>) ("getCRWBInstance" function ... ... #<overlay from 104787 to 104926 in SvcManager.cpp>) ("getRateConnQGType" function ... ... #<overlay from 105007 to 105120 in SvcManager.cpp>) ("getBODUplinkBandwidth" function ... ... #<overlay from 105201 to 106016 in SvcManager.cpp>) ("getSARNumForCRCRWB" function ... ... #<overlay from 106097 to 107633 in SvcManager.cpp>) ...) [object semanticdb-find-search-index "#<semanticdb-table SvcManager.cpp> index" #0 (#0 [object semanticdb-table "stdio.h" [object semanticdb-project-database-file "include/" "c:/cygwin/usr/include/" semanticdb-table nil ... "c:/Docume~1/nschley/MyDocu~1/C++/semantic/!drive_c!cygwin!usr!include!semantic.cache" "2.0pre5" "2.0pre5"] nil unbound [object semanticdb-find-search-index "#<semanticdb-table stdio.h> index" #3 nil [object semanticdb-typecache "c:/cygwin/usr/include/stdio.h" nil nil nil nil]] nil "stdio.h" nil nil ... nil nil nil unbound nil]) [object semanticdb-typecache "z:/spw_st/st/src/svc/src/SvcManager.cpp" nil nil nil ...]] ([object semantic-scope-cache "Cache" #0 ... nil nil nil nil nil ... nil]) "SvcManager.cpp" #<buffer SvcManager.cpp> nil nil 178641 178640 (18713 24854) nil nil]) semanticdb-find-translate-path-includes--internal(#<buffer SvcManager.cpp>) semanticdb-find-translate-path-includes-default(#<buffer SvcManager.cpp>) semanticdb-find-translate-path-default(#<buffer SvcManager.cpp> nil) semanticdb-find-translate-path(#<buffer SvcManager.cpp> nil) semantic-idle-work-for-one-buffer(#<buffer SvcManager.cpp>) byte-code(".... Thanks, Nate >Am Dez 23, 2008, er...@si... schrieb: >The best way to debug the idle timer is to use one of the commands: > >semantic-debug-idle-function >semantic-debug-idle-work-function > >In your case, you want the work function. > >The work function does different things depending on which file you >are in when it starts. > >The command will run the work function with debugging turned on, and >the error handlers all turned off. The resulting stack trace is what >will prove most useful. |
From: Eric M. L. <er...@si...> - 2008-12-24 14:25:06
|
Ah, I think I fixed that yesterday. I was running into similar issues at work, so a fix for that should be in CVS as of yesterday around 11am. If you have the latest from CVS and this issue persists, let me know. Eric >>> Nate <nat...@hu...> seems to think that: >Eric, > >Here's the stack trace. I put an extra <CR> between the exceptionally long lines. >FWIW, the stdio.h file exists where semanticdb is looking for it. > >Thanks for any guidance you might have. > >Debugger entered--Lisp error: (wrong-type-argument stringp nil) > get-file-buffer(nil) > semanticdb-file-table-object("c:/cygwin/usr/include/stdio.h") > semanticdb-find-load-unloaded-default("c:/cygwin/usr/include/stdio.h") > semanticdb-find-load-unloaded("c:/cygwin/usr/include/stdio.h") > > semanticdb-find-table-for-include-default(("stdio.h" include nil (:filename "z:/spw_st/st/src/svc/src/SvcManager.cpp" dependency-file "c:/cygwin/usr/include/stdio.h") #<overlay from 4381 to 4399 in SvcManager.cpp>) [object semanticdb-table "SvcManager.cpp" [object semanticdb-project-database-file "semantic/" "z:/spw_st/st/src/svc/src/" semanticdb-table nil (#0 [object semanticdb-table "SvcBwsHandler.cpp" #1 c++-mode ... unbound nil "SvcBwsHandler.cpp" nil nil nil 3078 3280 ... unbound nil] [object semanticdb-table "SvcRmcProxy.cpp" #1 c++-mode ... unbound nil "SvcRmcProxy.cpp" nil nil nil 717 716 ... nil nil]) "c:/Docume~1/nschley/MyDocu~1/C++/semantic/!drive_z!spw_st!st!src!svc!src!semantic.cache" "2.0pre4" "2.0pre4"] c++-mode (("SysInstallationParameters.h" include nil ... #<overlay from 4197 to 4235 in SvcManager.cpp>) ("SysSharedMemDefs.h" include nil ... #<overlay from 4236 to 4265 in SvcManager.cpp>) ("SvcManager.h" include nil ... #<overlay from 4266 to 4289 in Svc! Manager.cpp>) ("TskTimer.h" include nil ... #<overlay from 4290 to 4311 in SvcManager.cpp>) ("TskProcessor.h" include nil ... #<overlay from 4312 to 4337 in SvcManager.cpp>) ("LogTypes.h" include nil ... #<overlay from 4338 to 4359 in SvcManager.cpp>) ("BufMgmt.h" include nil ... #<overlay from 4360 to 4380 in SvcManager.cpp>) ("stdio.h" include nil ... #<overlay from 4381 to 4399 in SvcManager.cpp>) ("iostream" include ... ... #<overlay from 4400 to 4419 in SvcManager.cpp>) ("std" using ... nil #<overlay from 4420 to 4440 in SvcManager.cpp>) ("needPacking" variable ... nil #<overlay from 4493 to 4522 in SvcManager.cpp>) ("SvcManager" function ... ... #<overlay from 4884 to 8485 in SvcManager.cpp>) ("setTimingTask" function ... ... #<overlay from 8565 to 8965 in SvcManager.cpp>) ("setMctProxy" function ... ... #<overlay from 9047 to 9129 in SvcManager.cpp>) ("setMonAgent" function ... ... #<overlay from 9210 to 9292 in SvcManager.cpp>) ("updateNoccServiceMIP" function ... ..! . #<overlay from 21156 to 22017 in SvcManager.cpp>) ("updateS! erviceProf" function ... ... #<overlay from 22098 to 31204 in SvcManager.cpp>) ("updateSystemProf" function ... ... #<overlay from 31285 to 34291 in SvcManager.cpp>) ("updateSystemProfileMIP" function ... ... #<overlay from 34372 to 36280 in SvcManager.cpp>) ("updateDLRegionMAPMIP" function ... ... #<overlay from 36361 to 39873 in SvcManager.cpp>) ("updateChannelInfoMIP" function ... ... #<overlay from 39954 to 44799 in SvcManager.cpp>) ("updateMonParams" function ... ... #<overlay from 44880 to 46673 in SvcManager.cpp>) ("toUpdateVirtualPortState" function ... ... #<overlay from 46754 to 47132 in SvcManager.cpp>) ("updateVirtualPortState" function ... ... #<overlay from 47213 to 47721 in SvcManager.cpp>) ("updateTransChanType" function ... ... #<overlay from 47802 to 48284 in SvcManager.cpp>) ("updateStState" function ... ... #<overlay from 48365 to 48858 in SvcManager.cpp>) ("updateCapacityKeyParams" function ... ... #<overlay from 49578 to 51302 in SvcManager.cpp>) ("upda! teSAMSTProfileUpdate" function ... ... #<overlay from 51383 to 54715 in SvcManager.cpp>) ("procSamBootSwVerInd" function ... ... #<overlay from 54796 to 55253 in SvcManager.cpp>) ("handleTrafficProfileTimeout" function ... ... #<overlay from 55334 to 57714 in SvcManager.cpp>) ("handleBwsConfigReqTimeout" function ... ... #<overlay from 57795 to 58031 in SvcManager.cpp>) ("handleBwsInitReqTimeout" function ... ... #<overlay from 58112 to 58344 in SvcManager.cpp>) ("handleBwsSysProfMIPTimeout" function ... ... #<overlay from 58425 to 58762 in SvcManager.cpp>) ("handleUppInitReqTimeout" function ... ... #<overlay from 58844 to 59111 in SvcManager.cpp>) ("handleMctReqTimeout" function ... ... #<overlay from 59192 to 59516 in SvcManager.cpp>) ("processMctResponse" function ... ... #<overlay from 87271 to 87385 in SvcManager.cpp>) ("processBwsConfigResponse" function ... ... #<overlay from 87466 to 87771 in SvcManager.cpp>) ("processBwsInitTableResponse" function ... ... #<overlay! from 87852 to 88736 in SvcManager.cpp>) ("processBwsSysMIPRe! sponse" function ... ... #<overlay from 88817 to 89135 in SvcManager.cpp>) ("processBwsSynchIndication" function ... ... #<overlay from 89216 to 93041 in SvcManager.cpp>) ("processBwsModeIndication" function ... ... #<overlay from 93122 to 99938 in SvcManager.cpp>) ("updateBwsConfig" function ... ... #<overlay from 100040 to 100475 in SvcManager.cpp>) ("updateBwsInitTable" function ... ... #<overlay from 100556 to 101291 in SvcManager.cpp>) ("updateBwsSysMIP" function ... ... #<overlay from 101372 to 101789 in SvcManager.cpp>) ("updateUppInitTable" function ... ... #<overlay from 101871 to 103415 in SvcManager.cpp>) ("processUppInitTableResponse" function ... ... #<overlay from 103520 to 104130 in SvcManager.cpp>) ("getCRWBInstance" function ... ... #<overlay from 104787 to 104926 in SvcManager.cpp>) ("getRateConnQGType" function ... ... #<overlay from 105007 to 105120 in SvcManager.cpp>) ("getBODUplinkBandwidth" function ... ... #<overlay from 105201 to 106016 in SvcManager! .cpp>) ("getSARNumForCRCRWB" function ... ... #<overlay from 106097 to 107633 in SvcManager.cpp>) ...) [object semanticdb-find-search-index "#<semanticdb-table SvcManager.cpp> index" #0 (#0 [object semanticdb-table "stdio.h" [object semanticdb-project-database-file "include/" "c:/cygwin/usr/include/" semanticdb-table nil ... "c:/Docume~1/nschley/MyDocu~1/C++/semantic/!drive_c!cygwin!usr!include!semantic.cache" "2.0pre5" "2.0pre5"] nil unbound [object semanticdb-find-search-index "#<semanticdb-table stdio.h> index" #3 nil [object semanticdb-typecache "c:/cygwin/usr/include/stdio.h" nil nil nil nil]] nil "stdio.h" nil nil ... nil nil nil unbound nil]) [object semanticdb-typecache "z:/spw_st/st/src/svc/src/SvcManager.cpp" nil nil nil ...]] ([object semantic-scope-cache "Cache" #0 ... nil nil nil nil nil ... nil]) "SvcManager.cpp" #<buffer SvcManager.cpp> nil nil 178641 178640 (18713 24854) nil nil]) > > semanticdb-find-table-for-include(("stdio.h" include nil (:filename "z:/spw_st/st/src/svc/src/SvcManager.cpp" dependency-file "c:/cygwin/usr/include/stdio.h") #<overlay from 4381 to 4399 in SvcManager.cpp>) [object semanticdb-table "SvcManager.cpp" [object semanticdb-project-database-file "semantic/" "z:/spw_st/st/src/svc/src/" semanticdb-table nil (#0 [object semanticdb-table "SvcBwsHandler.cpp" #1 c++-mode ... unbound nil "SvcBwsHandler.cpp" nil nil nil 3078 3280 ... unbound nil] [object semanticdb-table "SvcRmcProxy.cpp" #1 c++-mode ... unbound nil "SvcRmcProxy.cpp" nil nil nil 717 716 ... nil nil]) "c:/Docume~1/nschley/MyDocu~1/C++/semantic/!drive_z!spw_st!st!src!svc!src!semantic.cache" "2.0pre4" "2.0pre4"] c++-mode (("SysInstallationParameters.h" include nil ... #<overlay from 4197 to 4235 in SvcManager.cpp>) ("SysSharedMemDefs.h" include nil ... #<overlay from 4236 to 4265 in SvcManager.cpp>) ("SvcManager.h" include nil ... #<overlay from 4266 to 4289 in SvcManager.! cpp>) ("TskTimer.h" include nil ... #<overlay from 4290 to 4311 in SvcManager.cpp>) ("TskProcessor.h" include nil ... #<overlay from 4312 to 4337 in SvcManager.cpp>) ("LogTypes.h" include nil ... #<overlay from 4338 to 4359 in SvcManager.cpp>) ("BufMgmt.h" include nil ... #<overlay from 4360 to 4380 in SvcManager.cpp>) ("stdio.h" include nil ... #<overlay from 4381 to 4399 in SvcManager.cpp>) ("iostream" include ... ... #<overlay from 4400 to 4419 in SvcManager.cpp>) ("std" using ... nil #<overlay from 4420 to 4440 in SvcManager.cpp>) ("needPacking" variable ... nil #<overlay from 4493 to 4522 in SvcManager.cpp>) ("SvcManager" function ... ... #<overlay from 4884 to 8485 in SvcManager.cpp>) ("setTimingTask" function ... ... #<overlay from 8565 to 8965 in SvcManager.cpp>) ("setMctProxy" function ... ... #<overlay from 9047 to 9129 in SvcManager.cpp>) ("setMonAgent" function ... ... #<overlay from 9210 to 9292 in SvcManager.cpp>) ("updateNoccServiceMIP" function ... ... #<over! lay from 21156 to 22017 in SvcManager.cpp>) ("updateServicePr! of" function ... ... #<overlay from 22098 to 31204 in SvcManager.cpp>) ("updateSystemProf" function ... ... #<overlay from 31285 to 34291 in SvcManager.cpp>) ("updateSystemProfileMIP" function ... ... #<overlay from 34372 to 36280 in SvcManager.cpp>) ("updateDLRegionMAPMIP" function ... ... #<overlay from 36361 to 39873 in SvcManager.cpp>) ("updateChannelInfoMIP" function ... ... #<overlay from 39954 to 44799 in SvcManager.cpp>) ("updateMonParams" function ... ... #<overlay from 44880 to 46673 in SvcManager.cpp>) ("toUpdateVirtualPortState" function ... ... #<overlay from 46754 to 47132 in SvcManager.cpp>) ("updateVirtualPortState" function ... ... #<overlay from 47213 to 47721 in SvcManager.cpp>) ("updateTransChanType" function ... ... #<overlay from 47802 to 48284 in SvcManager.cpp>) ("updateStState" function ... ... #<overlay from 48365 to 48858 in SvcManager.cpp>) ("updateCapacityKeyParams" function ... ... #<overlay from 49578 to 51302 in SvcManager.cpp>) ("updateSAMSTP! rofileUpdate" function ... ... #<overlay from 51383 to 54715 in SvcManager.cpp>) ("procSamBootSwVerInd" function ... ... #<overlay from 54796 to 55253 in SvcManager.cpp>) ("handleTrafficProfileTimeout" function ... ... #<overlay from 55334 to 57714 in SvcManager.cpp>) ("handleBwsConfigReqTimeout" function ... ... #<overlay from 57795 to 58031 in SvcManager.cpp>) ("handleBwsInitReqTimeout" function ... ... #<overlay from 58112 to 58344 in SvcManager.cpp>) ("handleBwsSysProfMIPTimeout" function ... ... #<overlay from 58425 to 58762 in SvcManager.cpp>) ("handleUppInitReqTimeout" function ... ... #<overlay from 58844 to 59111 in SvcManager.cpp>) ("handleMctReqTimeout" function ... ... #<overlay from 59192 to 59516 in SvcManager.cpp>) ("processMctResponse" function ... ... #<overlay from 87271 to 87385 in SvcManager.cpp>) ("processBwsConfigResponse" function ... ... #<overlay from 87466 to 87771 in SvcManager.cpp>) ("processBwsInitTableResponse" function ... ... #<overlay from 87! 852 to 88736 in SvcManager.cpp>) ("processBwsSysMIPResponse" ! function ... ... #<overlay from 88817 to 89135 in SvcManager.cpp>) ("processBwsSynchIndication" function ... ... #<overlay from 89216 to 93041 in SvcManager.cpp>) ("processBwsModeIndication" function ... ... #<overlay from 93122 to 99938 in SvcManager.cpp>) ("updateBwsConfig" function ... ... #<overlay from 100040 to 100475 in SvcManager.cpp>) ("updateBwsInitTable" function ... ... #<overlay from 100556 to 101291 in SvcManager.cpp>) ("updateBwsSysMIP" function ... ... #<overlay from 101372 to 101789 in SvcManager.cpp>) ("updateUppInitTable" function ... ... #<overlay from 101871 to 103415 in SvcManager.cpp>) ("processUppInitTableResponse" function ... ... #<overlay from 103520 to 104130 in SvcManager.cpp>) ("getCRWBInstance" function ... ... #<overlay from 104787 to 104926 in SvcManager.cpp>) ("getRateConnQGType" function ... ... #<overlay from 105007 to 105120 in SvcManager.cpp>) ("getBODUplinkBandwidth" function ... ... #<overlay from 105201 to 106016 in SvcManager.cpp>) (! "getSARNumForCRCRWB" function ... ... #<overlay from 106097 to 107633 in SvcManager.cpp>) ...) [object semanticdb-find-search-index "#<semanticdb-table SvcManager.cpp> index" #0 (#0 [object semanticdb-table "stdio.h" [object semanticdb-project-database-file "include/" "c:/cygwin/usr/include/" semanticdb-table nil ... "c:/Docume~1/nschley/MyDocu~1/C++/semantic/!drive_c!cygwin!usr!include!semantic.cache" "2.0pre5" "2.0pre5"] nil unbound [object semanticdb-find-search-index "#<semanticdb-table stdio.h> index" #3 nil [object semanticdb-typecache "c:/cygwin/usr/include/stdio.h" nil nil nil nil]] nil "stdio.h" nil nil ... nil nil nil unbound nil]) [object semanticdb-typecache "z:/spw_st/st/src/svc/src/SvcManager.cpp" nil nil nil ...]] ([object semantic-scope-cache "Cache" #0 ... nil nil nil nil nil ... nil]) "SvcManager.cpp" #<buffer SvcManager.cpp> nil nil 178641 178640 (18713 24854) nil nil]) > > semanticdb-find-translate-path-includes--internal(#<buffer SvcManager.cpp>) > semanticdb-find-translate-path-includes-default(#<buffer SvcManager.cpp>) > semanticdb-find-translate-path-default(#<buffer SvcManager.cpp> nil) > semanticdb-find-translate-path(#<buffer SvcManager.cpp> nil) > semantic-idle-work-for-one-buffer(#<buffer SvcManager.cpp>) > byte-code(".... > > >Thanks, > >Nate > > >>Am Dez 23, 2008, er...@si... schrieb: >>The best way to debug the idle timer is to use one of the commands: >> >>semantic-debug-idle-function >>semantic-debug-idle-work-function >> >>In your case, you want the work function. >> >>The work function does different things depending on which file you >>are in when it starts. >> >>The command will run the work function with debugging turned on, and >>the error handlers all turned off. The resulting stack trace is what >>will prove most useful. > -- Eric Ludlam: er...@si... Siege: www.siege-engine.com Emacs: http://cedet.sourceforge.net |
From: Nate <nat...@hu...> - 2008-12-24 19:14:11
|
Eric, I updated from CVS (only semanticdb.el was new,) but got no joy. Here's the new stack trace. I'm leaving the 1st 10 or so lines out, since they appear identical to the original stack trace. Debugger entered--Lisp error: (wrong-type-argument stringp nil) intern(nil) semantic-ectag-parse-one-tag("ctags.exe: Warning: unknown regex flag: 'i'") semantic-ectag-parse-tags() semantic-ectag-parse-file-with-mode("c:/cygwin/usr/include/stdio.h" c-mode) semanticdb-ectag-create-table-for-file-not-in-buffer("c:/cygwin/usr/include/stdio.h" c-mode) (lambda (fname) (semanticdb-ectag-create-table-for-file-not-in-buffer fname (quote c-mode)))("c:/cygwin/usr/include/stdio.h") semanticdb-create-table-for-file-not-in-buffer("c:/cygwin/usr/include/stdio.h") semanticdb-file-table-object("c:/cygwin/usr/include/stdio.h") (all subsequent lines, starting from the above line, matched the original stack trace.) I checked my .emacs and didn't find where I might be configuring the unknown regex flag 'i'. FWIW, here are what I think are all my .emacs config elements dealing with tags: | '(semantic-ectag-program "C:/Progra~1/gnu/ctags57/ctags.exe") | '(semantic-imenu-sort-bucket-function (quote semantic-sort-tags-by-name-increasing-ci)) | '(speedbar-fetch-etags-arguments (quote ("-e" "-I SLS_AP_DEBUG" "-I SLS_VX_SIM,ST_BOOT,SST,TCI_APPL" "-I ST_COP=1" "--language-force=C++" "--languages=+C" "--append=yes" "--C++-kinds=+px" "--verbose=no")) t) | '(speedbar-fetch-etags-command "c:/progra~1/gnu/emacs-22.3/bin/etags.exe --declarations --members --language=c++ --ignore-indentation" t (speedbar) "This variable is ignored if `speedbar-use-imenu-flag' is t, but keep consistent with ctags.bat setting anyway, as someone seems to be modifying TAGS files.") | '(speedbar-tag-hierarchy-method (quote (speedbar-prefix-group-tag-hierarchy speedbar-trim-words-tag-hierarchy speedbar-sort-tag-hierarchy))) | '(tags-case-fold-search nil) ... |(semantic-load-enable-all-exuberent-ctags-support) Thanks, Nate On Dec 24, 2008, er...@si... wrote: >Ah, I think I fixed that yesterday. I was running into similar issues >at work, so a fix for that should be in CVS as of yesterday around >11am. > >If you have the latest from CVS and this issue persists, let me know. > >Eric > >>>> Nate <nat...@hu...> seems to think that: >>Eric, >> >>Here's the stack trace. I put an extra <CR> between the exceptionally long lines. >>FWIW, the stdio.h file exists where semanticdb is looking for it. >> >>Thanks for any guidance you might have. >> >>Debugger entered--Lisp error: (wrong-type-argument stringp nil) >> get-file-buffer(nil) >> semanticdb-file-table-object("c:/cygwin/usr/include/stdio.h") >> semanticdb-find-load-unloaded-default("c:/cygwin/usr/include/stdio.h") >> semanticdb-find-load-unloaded("c:/cygwin/usr/include/stdio.h") >> >> semanticdb-find-table-for-include-default(.... |
From: Eric M. L. <er...@si...> - 2008-12-24 21:18:05
|
That looks like an issue with your ctags setup. In order to get ctags to parse include files for me, I had to add special regexp to the command line. I gave it an "i" key. The implication is that the arguments passed in are missing the "extra" flags, but have the 'i' kind flag being requested. You can use `semantic-ectag-parse-buffer' to see if it is working without the rest of the infrastructure confusing things. The next step if that doesn't work would be to debug `semantic-ectag-run' and see what the input `args' are, and to make sure that that arg list works when you pass it in on the ctags command line. It should include a regexp for includes, plus the flag for the kinds desired. Eric >>> Nate <nat...@hu...> seems to think that: >Eric, > >I updated from CVS (only semanticdb.el was new,) but got no joy. >Here's the new stack trace. I'm leaving the 1st 10 or so lines out, >since they appear identical to the original stack trace. > >Debugger entered--Lisp error: (wrong-type-argument stringp nil) > intern(nil) > semantic-ectag-parse-one-tag("ctags.exe: Warning: unknown regex flag: 'i'") > semantic-ectag-parse-tags() > semantic-ectag-parse-file-with-mode("c:/cygwin/usr/include/stdio.h" c-mode) > semanticdb-ectag-create-table-for-file-not-in-buffer("c:/cygwin/usr/include/stdio.h" c-mode) > (lambda (fname) (semanticdb-ectag-create-table-for-file-not-in-buffer fname (quote c-mode)))("c:/cygwin/usr/include/stdio.h") > semanticdb-create-table-for-file-not-in-buffer("c:/cygwin/usr/include/stdio.h") > semanticdb-file-table-object("c:/cygwin/usr/include/stdio.h") >(all subsequent lines, starting from the above line, matched the original stack trace.) > >I checked my .emacs and didn't find where I might be configuring the >unknown regex flag 'i'. > >FWIW, here are what I think are all my .emacs config elements dealing >with tags: > >| '(semantic-ectag-program "C:/Progra~1/gnu/ctags57/ctags.exe") >| '(semantic-imenu-sort-bucket-function (quote semantic-sort-tags-by-name-increasing-ci)) >| '(speedbar-fetch-etags-arguments (quote ("-e" "-I SLS_AP_DEBUG" "-I SLS_VX_SIM,ST_BOOT,SST,TCI_APPL" "-I ST_COP=1" "--language-force=C++" "--languages=+C" "--append=yes" "--C++-kinds=+px" "--verbose=no")) t) >| '(speedbar-fetch-etags-command "c:/progra~1/gnu/emacs-22.3/bin/etags.exe --declarations --members --language=c++ --ignore-indentation" t (speedbar) "This variable is ignored if `speedbar-use-imenu-flag' is t, but keep consistent with ctags.bat setting anyway, as someone seems to be modifying TAGS files.") >| '(speedbar-tag-hierarchy-method (quote (speedbar-prefix-group-tag-hierarchy speedbar-trim-words-tag-hierarchy speedbar-sort-tag-hierarchy))) >| '(tags-case-fold-search nil) >... >|(semantic-load-enable-all-exuberent-ctags-support) > > > >Thanks, > >Nate > > >On Dec 24, 2008, er...@si... wrote: >>Ah, I think I fixed that yesterday. I was running into similar issues >>at work, so a fix for that should be in CVS as of yesterday around >>11am. >> >>If you have the latest from CVS and this issue persists, let me know. >> >>Eric >> >>>>> Nate <nat...@hu...> seems to think that: >>>Eric, >>> >>>Here's the stack trace. I put an extra <CR> between the exceptionally long lines. >>>FWIW, the stdio.h file exists where semanticdb is looking for it. >>> >>>Thanks for any guidance you might have. >>> >>>Debugger entered--Lisp error: (wrong-type-argument stringp nil) >>> get-file-buffer(nil) >>> semanticdb-file-table-object("c:/cygwin/usr/include/stdio.h") >>> semanticdb-find-load-unloaded-default("c:/cygwin/usr/include/stdio.h") >>> semanticdb-find-load-unloaded("c:/cygwin/usr/include/stdio.h") >>> >>> semanticdb-find-table-for-include-default(.... > -- Eric Ludlam: er...@si... Siege: www.siege-engine.com Emacs: http://cedet.sourceforge.net |
From: Eric M. L. <er...@si...> - 2008-12-23 23:51:28
|
The best way to debug the idle timer is to use one of the commands: semantic-debug-idle-function semantic-debug-idle-work-function In your case, you want the work function. The work function does different things depending on which file you are in when it starts. The command will run the work function with debugging turned on, and the error handlers all turned off. The resulting stack trace is what will prove most useful. Eric >>> Nate <nat...@hu...> seems to think that: > >Sorry about the HTML formatting. Try this: > >I've started getting the following error in recent weeks. Can anyone >provide advice on what the cause might be? > >>Idle Work Including Error: "#<buffer foo.cpp> - Wrong type argument: stringp, nil" > >This occurs when the file foo.cpp is loaded in emacs. If I have >multiple files loaded, then it complains about those files. It always >complains about the files loaded in emacs, rather than the files >any"foo.cpp" might want included. > >I can see semantic-idle.el is expecting the filename, not the >buffername, but I don't know how I might have fouled this process. > >I'm working with the latest CVS version of CEDET in emacs 22.3. > >Strangely, while waiting for a response to this, I enabled "enter >debugger on error" as well as semantic-idle-scheduler-verbose-flag, >and the problem is no longer occurring. Instead, my *Messages* buffer >is showing a series of sequences like the following: > >Long Work Idle Timer... >IDLE: Core handler... >IDLE: execture service semantic-idle-summary-idle-function...done >IDLE: execture service semantic-idle-completions-idle-function...done >IDLE: Core handler...done [ ... ] -- Eric Ludlam: er...@si... Siege: www.siege-engine.com Emacs: http://cedet.sourceforge.net |