Thread: [CEDET-devel] semanticdb-javap; cc-mode, CEDET, and auto-complete-1.4
Brought to you by:
zappo
From: Stephen D. <ste...@gm...> - 2013-05-08 01:00:42
|
Hello all, I installed the latest repository version of CEDET and disabled the version that is bundled with Emacs 24.3. After skimming the manual and reading Alex Ott's article "A Gentle Introduction to CEDET" I made several additions to my .emacs file. Once I made all of the recommended changes, I tried to edit a simple Java file. Code completion with auto-complete is functional, but extremely slow, even after the trying the same function from the same class twice (System.out.println). I would also add that CEDET does not seem to pick up the methods of the objects statically in the packages either. I am not sure if this is an error or functionality that just needs to be added at a later date. My second problem is that when I try to edit a C file, auto-complete (I am using version 1.4 that comes in the package repository) does not bring up any completions. I tried several configuration changes to my ,emacs file in an effort to get the auto-complete menu to work. It works great in Emacs Lisp mode. Additionally, normal semantic completion works fine once enabled. Can anyone give me a hand with either of these issues? By the way, the link to "smart completion debugging" in the CEDETmanual is broken. Thank you, Stephen |
From: Eric M. L. <er...@si...> - 2013-05-12 21:48:30
|
Hi Stephen, I'm not that familiar with auto-complete, but if you check the Emacs Wiki: http://www.emacswiki.org/emacs/AutoComplete you will find this text: If you are using the current development version of AutoComplete (0.20 at the time of this edit) be aware that ac-source-semantic is now included in the package. Furthermore, if you are using the semantic source, make sure that you have required semantic-ia in your init file. If you do not then it falls back to a method of gathering the tags that appears to not check the semantic cache slowing the whole thing up rather tremendously (especially with omnicompletion). Eric On 05/07/2013 09:00 PM, Stephen Debique wrote: > Hello all, > > I installed the latest repository version of CEDET and disabled the > version that is bundled with Emacs 24.3. After skimming the manual and > reading Alex Ott's article "A Gentle Introduction to CEDET" I made > several additions to my .emacs file. Once I made all of the recommended > changes, I tried to edit a simple Java file. Code completion with > auto-complete is functional, but extremely slow, even after the trying > the same function from the same class twice (System.out.println). I > would also add that CEDET does not seem to pick up the methods of the > objects statically in the packages either. I am not sure if this is an > error or functionality that just needs to be added at a later date. > > My second problem is that when I try to edit a C file, auto-complete (I > am using version 1.4 that comes in the package repository) does not > bring up any completions. I tried several configuration changes to my > ,emacs file in an effort to get the auto-complete menu to work. It works > great in Emacs Lisp mode. Additionally, normal semantic completion works > fine once enabled. Can anyone give me a hand with either of these issues? > > By the way, the link to "smart completion debugging" in the CEDETmanual > is broken. > > Thank you, > > Stephen > > > > ------------------------------------------------------------------------------ > Learn Graph Databases - Download FREE O'Reilly Book > "Graph Databases" is the definitive new guide to graph databases and > their applications. This 200-page book is written by three acclaimed > leaders in the field. The early access version is available now. > Download your free book today! http://p.sf.net/sfu/neotech_d2d_may > > > > _______________________________________________ > Cedet-devel mailing list > Ced...@li... > https://lists.sourceforge.net/lists/listinfo/cedet-devel |
From: Stephen D. <ste...@gm...> - 2013-05-13 02:27:26
|
Hi Mr. Ludlam, Thanks for your reply and help. I have seen the aforementioned emacs wiki entry and I do have require semantic/ia in my .emacs file. I also think the wiki statement about semantic being in the package for ac-sources is irrelevant in my particular case. You still have to add ac-source-semantic as an ac-source regardless. I had already tried not adding it before emailing the list. I will add that even when I do not use the autocomplete package the native CEDET "intellisense" is still slower in Java mode than in other modes, though faster than when autocomplete is added to the mix. I suspect it may have to do with the dependence on javap but I could be terribly off on that attempt of code sleuthing. Once I lose the autocomplete package, the "intellisense" works in cc-mode as well, however, sans the fancy autocomplete menu (whose utility is debatable I suppose). Regards, Stephen On Sun, May 12, 2013 at 5:48 PM, Eric M. Ludlam <er...@si...>wrote: > Hi Stephen, > > I'm not that familiar with auto-complete, but if you check the Emacs Wiki: > > http://www.emacswiki.org/**emacs/AutoComplete<http://www.emacswiki.org/emacs/AutoComplete> > > you will find this text: > > If you are using the current development version of AutoComplete (0.20 > at the time of this edit) be aware that ac-source-semantic is now > included in the package. Furthermore, if you are using the semantic > source, make sure that you have required semantic-ia in your init > file. If you do not then it falls back to a method of gathering the > tags that appears to not check the semantic cache slowing the whole > thing up rather tremendously (especially with omnicompletion). > > Eric > > > On 05/07/2013 09:00 PM, Stephen Debique wrote: > >> Hello all, >> >> I installed the latest repository version of CEDET and disabled the >> version that is bundled with Emacs 24.3. After skimming the manual and >> reading Alex Ott's article "A Gentle Introduction to CEDET" I made >> several additions to my .emacs file. Once I made all of the recommended >> changes, I tried to edit a simple Java file. Code completion with >> auto-complete is functional, but extremely slow, even after the trying >> the same function from the same class twice (System.out.println). I >> would also add that CEDET does not seem to pick up the methods of the >> objects statically in the packages either. I am not sure if this is an >> error or functionality that just needs to be added at a later date. >> >> My second problem is that when I try to edit a C file, auto-complete (I >> am using version 1.4 that comes in the package repository) does not >> bring up any completions. I tried several configuration changes to my >> ,emacs file in an effort to get the auto-complete menu to work. It works >> great in Emacs Lisp mode. Additionally, normal semantic completion works >> fine once enabled. Can anyone give me a hand with either of these issues? >> >> By the way, the link to "smart completion debugging" in the CEDETmanual >> is broken. >> >> Thank you, >> >> Stephen >> >> >> >> ------------------------------**------------------------------** >> ------------------ >> Learn Graph Databases - Download FREE O'Reilly Book >> "Graph Databases" is the definitive new guide to graph databases and >> their applications. This 200-page book is written by three acclaimed >> leaders in the field. The early access version is available now. >> Download your free book today! http://p.sf.net/sfu/neotech_**d2d_may<http://p.sf.net/sfu/neotech_d2d_may> >> >> >> >> ______________________________**_________________ >> Cedet-devel mailing list >> Ced...@li...urceforge.**net <Ced...@li...> >> https://lists.sourceforge.net/**lists/listinfo/cedet-devel<https://lists.sourceforge.net/lists/listinfo/cedet-devel> >> > |
From: Eric M. L. <er...@si...> - 2013-05-16 02:47:28
|
Hi Stephen, I don't know much about auto-complete, just what I see on emacswiki. I do believe that the Java completion can be a bit slow the first time through parsing files, or loading stuff in with javap if you have that set up. It should cache the results and be faster the second time around though. If you use a lot of imports with *, it may be that your search space is very large. Being more specific means a smaller search space, and faster searches. Also, longer search prefixes can be faster. If AC is trying to get *everything* to complete on, it might be getting a huge list. Semantic's completion usually starts with whats there, and uses that as the prefix for it's searches, resulting in smaller and faster results. Do these suggestions possibly match your case? Eric On 05/12/2013 10:27 PM, Stephen Debique wrote: > Hi Mr. Ludlam, > > Thanks for your reply and help. > > I have seen the aforementioned emacs wiki entry and I do have require > semantic/ia in my .emacs file. I also think the wiki statement about > semantic being in the package for ac-sources is irrelevant in my > particular case. You still have to add ac-source-semantic as an > ac-source regardless. I had already tried not adding it before emailing > the list. > > I will add that even when I do not use the autocomplete package the > native CEDET "intellisense" is still slower in Java mode than in other > modes, though faster than when autocomplete is added to the mix. I > suspect it may have to do with the dependence on javap but I could be > terribly off on that attempt of code sleuthing. Once I lose the > autocomplete package, the "intellisense" works in cc-mode as well, > however, sans the fancy autocomplete menu (whose utility is debatable I > suppose). > > Regards, > > Stephen > > > On Sun, May 12, 2013 at 5:48 PM, Eric M. Ludlam <er...@si... > <mailto:er...@si...>> wrote: > > Hi Stephen, > > I'm not that familiar with auto-complete, but if you check the Emacs > Wiki: > > http://www.emacswiki.org/__emacs/AutoComplete > <http://www.emacswiki.org/emacs/AutoComplete> > > you will find this text: > > If you are using the current development version of AutoComplete (0.20 > at the time of this edit) be aware that ac-source-semantic is now > included in the package. Furthermore, if you are using the semantic > source, make sure that you have required semantic-ia in your init > file. If you do not then it falls back to a method of gathering the > tags that appears to not check the semantic cache slowing the whole > thing up rather tremendously (especially with omnicompletion). > > Eric > > > On 05/07/2013 09:00 PM, Stephen Debique wrote: > > Hello all, > > I installed the latest repository version of CEDET and disabled the > version that is bundled with Emacs 24.3. After skimming the > manual and > reading Alex Ott's article "A Gentle Introduction to CEDET" I made > several additions to my .emacs file. Once I made all of the > recommended > changes, I tried to edit a simple Java file. Code completion with > auto-complete is functional, but extremely slow, even after the > trying > the same function from the same class twice (System.out.println). I > would also add that CEDET does not seem to pick up the methods > of the > objects statically in the packages either. I am not sure if > this is an > error or functionality that just needs to be added at a later date. > > My second problem is that when I try to edit a C file, > auto-complete (I > am using version 1.4 that comes in the package repository) does not > bring up any completions. I tried several configuration changes > to my > ,emacs file in an effort to get the auto-complete menu to work. > It works > great in Emacs Lisp mode. Additionally, normal semantic > completion works > fine once enabled. Can anyone give me a hand with either of > these issues? > > By the way, the link to "smart completion debugging" in the > CEDETmanual > is broken. > > Thank you, > > Stephen > > > > ------------------------------__------------------------------__------------------ > Learn Graph Databases - Download FREE O'Reilly Book > "Graph Databases" is the definitive new guide to graph databases and > their applications. This 200-page book is written by three acclaimed > leaders in the field. The early access version is available now. > Download your free book today! > http://p.sf.net/sfu/neotech___d2d_may > <http://p.sf.net/sfu/neotech_d2d_may> > > > > _________________________________________________ > Cedet-devel mailing list > Ced...@li...urceforge.__net > <mailto:Ced...@li...> > https://lists.sourceforge.net/__lists/listinfo/cedet-devel > <https://lists.sourceforge.net/lists/listinfo/cedet-devel> > > > > > ------------------------------------------------------------------------------ > Learn Graph Databases - Download FREE O'Reilly Book > "Graph Databases" is the definitive new guide to graph databases and > their applications. This 200-page book is written by three acclaimed > leaders in the field. The early access version is available now. > Download your free book today! http://p.sf.net/sfu/neotech_d2d_may > > > > _______________________________________________ > Cedet-devel mailing list > Ced...@li... > https://lists.sourceforge.net/lists/listinfo/cedet-devel |
From: Lluís <xs...@gm...> - 2013-05-16 11:12:01
|
Eric M Ludlam writes: > Hi Stephen, > I don't know much about auto-complete, just what I see on emacswiki. > I do believe that the Java completion can be a bit slow the first time > through parsing files, or loading stuff in with javap if you have that > set up. It should cache the results and be faster the second time > around though. If you use a lot of imports with *, it may be that your > search space is very large. Being more specific means a smaller search > space, and faster searches. Also, longer search prefixes can be faster. > If AC is trying to get *everything* to complete on, it might be > getting a huge list. Semantic's completion usually starts with whats > there, and uses that as the prefix for it's searches, resulting in > smaller and faster results. In case it helps in the discussion, here's the semantic-specific implementation of a-c: https://github.com/auto-complete/auto-complete/blob/master/auto-complete-config.el#L176 Lluis -- "And it's much the same thing with knowledge, for whenever you learn something new, the whole world becomes that much richer." -- The Princess of Pure Reason, as told by Norton Juster in The Phantom Tollbooth |