Re: [CEDET-devel] semanticdb-javap not working
Brought to you by:
zappo
From: David V. <dve...@gu...> - 2011-11-15 18:23:58
|
I got semanticdb-javap to work for me awhile back by hacking the Elisp code. If you look in semanticdb-javap.el, you'll see that semanticdb-javap-classpath is defined via a defcustom form, but it seems not to be used anywhere. And if you look at semanticdb-javap-classpath-objects, you'll see that it loops over paths defined using EDE, but it doesn't use semanticdb-javap-classpath. If I recall correctly (I did this at home awhile back...don't have access to it from work at the moment), I just added semanticdb-javap-classpath to the list of symbols appended together in that function, and it worked. So this: ;; Get a list of paths together (dolist (P (append edepaths edeclasspath)) Becomes this: ;; Get a list of paths together (dolist (P (append edepaths edeclasspath semanticdb-javap-classpath)) Also, looking at the code it looks like semanticdb-javap.el doesn't actually use the javap executable, but rather just parses the contents of JAR files more or less "manually". Hope this helps. Cheers, David -----Original Message----- From: Joel Borggren-Franck [mailto:jb...@kt...] Sent: Tuesday, November 15, 2011 8:13 AM To: ced...@li... Subject: [CEDET-devel] semanticdb-javap not working Hi I'm having issues setting up semanticdb-javap. What I have done is basically requiring it, and setting the semanticdb-javap-classpath (I have tried both setting it to a list of jars, and setting it to a list of directories containing jars and classes). However in neither case I don't get anything parsed. For example: (semanticdb-dump-all-table-summary) shows no instances of type semanticdb-java-jar-database (but lots of instances of other types). Also I have tested that running "javap" from eshell works, so I hope it's not a path problem. I know this info is a bit vague but my basic question would be how to further debug this? For example: - Is there a way to force parsing of a jar? Also it would be great if you could show a very detailed example of setting it up, on the detail level of 1) Create a jar containing my/Foo.class 2) Create a source file Bar.java containing "import my.*;" 3) Set semanticdb-javap-classpath to "path/to/something/" 4) Run super-debug-command and expect output "duper" you get it. Or if you prefer I can of course dump my configuration if you think you have a better way of finding out what goes wrong. cheers /Joel ------------------------------------------------------------------------------ RSA(R) Conference 2012 Save $700 by Nov 18 Register now http://p.sf.net/sfu/rsa-sfdev2dev1 _______________________________________________ Cedet-devel mailing list Ced...@li... https://lists.sourceforge.net/lists/listinfo/cedet-devel |