Re: [cedet-semantic] how to test/debug semanticdb-global?
Brought to you by:
zappo
From: David V. <dve...@gm...> - 2011-09-26 20:22:48
|
Hi Eric, semanticdb-deep-find-tags-for-completion-method returns the following when I use the symbol 'serve', which is the only method in my Server.java file. I interpret this to mean that the global table with the search override is working, and finding the desired tag. ?#<TAG LIST: 1 entries> * serve | Name: "serve" | Class: 'function | Attributes: # :faux : 't | Properties: I think my problem is this. The only find method that semanticdb-find-table-for-includes-default seems to call is semanticdb-find-load-unloaded. More important, it seems only to call that method or do anything, only if the database has the reference-directory slot bound. The database/table that semanticdb-global sets up for my Global database seems not to have that slot bound (maybe that's correct behavior...I have no idea). So the while loop in semanticdb-find-table-for-include doesn't do anything for Global databases. Put another way, my Global database has the desired tag ("serve", found in "Server.java"), but semanticdb-find-table-for-include doesn't seem to work when the include (a Java import in this case) is found in a Global database. So Semantic doesn't know what the type is for any symbol of that include, so that the other semanticdb-find functions don't work. I.e., if I have "Server s = new Server();" in my Client.java file, Semantic doesn't know what type "s" is because it doesn't understand "import server.Server;" Maybe another branch could be added to the boolean expression in the while loop in semanticdb-find-table-for-includes to handle Global databases. I could look into that. Thanks! David |