Thread: [cedet-semantic] Problem between semantic and auto-complete
Brought to you by:
zappo
From: Pamela C. <car...@gm...> - 2013-04-10 20:05:57
|
Hello, Unfortunately I had to re-install my OS so I updated my emacs and cedet versions (I'm using the last snapshots). I'm also using the same configuration files that had worked pretty well with my c++ projects. However, now the name auto-completion is not working. More specifically, before re-installing my system if I started to write a variable's name, cedet showed me all the possible matches among all the variables already defined in the same file. Now I have no suggestions and I thinks it's related to how semantic and auto-complete work together. When I'm working on different types of files (lisp, latex, org...) auto-complete works fine. Also semantic works as expected: I can jump from definitions to implementations, I can search a method definition, I can see all the members of a particular object, and the function prototypes are showed too. It's just the name complete that does not work, and as I'm using the same configuration files and I followed step by step the same process I used the first time to install cedet and other tools (gtags, cscope...), I can't see the cause of this problem. Here are my configurations files: i) init.d http://pastebin.com/5uPCsgwW ii) my cedet configuration based on Alex's tutorial http://pastebin.com/QkUGtkve Can someone give me some hints about what I'm doing wrong or missing here? Also, I'm new to cedet and I would appreciate some suggestions about how to improve my current configuration to work better on c++ projects. Thanks, Pamela |
From: Pamela C. <car...@gm...> - 2013-04-11 08:54:02
|
Hi, After several trials, I can force some suggestions with M-x ac-complete-semantic-raw. I think the problem is due to auto-complete not taking semantic as one of its sources or to some complex interaction between semantic and AC. The line (add-to-list 'ac-sources 'ac-source-semantic) seems to not be enough. And I don't understand why. Pamela ---------- Forwarded message ---------- From: Pamela Carreño <car...@gm...> Date: Wed, Apr 10, 2013 at 10:05 PM Subject: Problem between semantic and auto-complete To: ced...@li... Hello, Unfortunately I had to re-install my OS so I updated my emacs and cedet versions (I'm using the last snapshots). I'm also using the same configuration files that had worked pretty well with my c++ projects. However, now the name auto-completion is not working. More specifically, before re-installing my system if I started to write a variable's name, cedet showed me all the possible matches among all the variables already defined in the same file. Now I have no suggestions and I thinks it's related to how semantic and auto-complete work together. When I'm working on different types of files (lisp, latex, org...) auto-complete works fine. Also semantic works as expected: I can jump from definitions to implementations, I can search a method definition, I can see all the members of a particular object, and the function prototypes are showed too. It's just the name complete that does not work, and as I'm using the same configuration files and I followed step by step the same process I used the first time to install cedet and other tools (gtags, cscope...), I can't see the cause of this problem. Here are my configurations files: i) init.d http://pastebin.com/5uPCsgwW ii) my cedet configuration based on Alex's tutorial http://pastebin.com/QkUGtkve Can someone give me some hints about what I'm doing wrong or missing here? Also, I'm new to cedet and I would appreciate some suggestions about how to improve my current configuration to work better on c++ projects. Thanks, Pamela -- Pamela Carreño Medrano PhD. candidate in Computer Science IRISIA Lab/ Seaside team University of Southern Brittany - UBS Vannes, France |
From: Alex O. <al...@gm...> - 2013-04-11 09:49:05
|
I thin the problem is that ac-sources is buffer-local when it's set. So you either need to set it from hook, or use setq-default... On Thu, Apr 11, 2013 at 10:53 AM, Pamela Carreño <car...@gm...>wrote: > Hi, > > After several trials, I can force some suggestions with M-x > ac-complete-semantic-raw. > > I think the problem is due to auto-complete not taking semantic as one of > its sources or to some complex interaction between semantic and AC. > > The line (add-to-list 'ac-sources 'ac-source-semantic) seems to not be > enough. And I don't understand why. > > Pamela > > > ---------- Forwarded message ---------- > From: Pamela Carreño <car...@gm...> > Date: Wed, Apr 10, 2013 at 10:05 PM > Subject: Problem between semantic and auto-complete > To: ced...@li... > > > Hello, > > Unfortunately I had to re-install my OS so I updated my emacs and cedet > versions (I'm using the last snapshots). I'm also using the same > configuration files that had worked pretty well with my c++ projects. > However, now the name auto-completion is not working. > > More specifically, before re-installing my system if I started to write a > variable's name, cedet showed me all the possible matches among all the > variables already defined in the same file. Now I have no suggestions and I > thinks it's related to how semantic and auto-complete work together. > > When I'm working on different types of files (lisp, latex, org...) > auto-complete works fine. Also semantic works as expected: I can jump from > definitions to implementations, I can search a method definition, I can see > all the members of a > particular object, and the function prototypes are showed too. > > It's just the name complete that does not work, and as I'm using the same > configuration files and I followed step by step the same process I used the > first time to install cedet and other tools (gtags, cscope...), I can't see > the cause of this problem. > > Here are my configurations files: > > i) init.d http://pastebin.com/5uPCsgwW > ii) my cedet configuration based on Alex's tutorial > http://pastebin.com/QkUGtkve > > Can someone give me some hints about what I'm doing wrong or missing here? > > Also, I'm new to cedet and I would appreciate some suggestions about how > to improve my current configuration to work better on c++ projects. > > Thanks, > > Pamela > > > > -- > Pamela Carreño Medrano > PhD. candidate in Computer Science > IRISIA Lab/ Seaside team > University of Southern Brittany - UBS > Vannes, France > > > ------------------------------------------------------------------------------ > Precog is a next-generation analytics platform capable of advanced > analytics on semi-structured data. The platform includes APIs for building > apps and a phenomenal toolset for data science. Developers can use > our toolset for easy data analysis & visualization. Get a free account! > http://www2.precog.com/precogplatform/slashdotnewsletter > _______________________________________________ > cedet-semantic mailing list > ced...@li... > https://lists.sourceforge.net/lists/listinfo/cedet-semantic > > -- With best wishes, Alex Ott http://alexott.net/ Twitter: alexott_en (English), alexott (Russian) Skype: alex.ott |
From: Pamela C. <car...@gm...> - 2013-04-11 15:24:22
|
Hi Alex, Thank you for your answer, but I thought this function (defun alexott/cedet-hook () (local-set-key [(control return)] 'semantic-ia-complete-symbol-menu) (local-set-key "\C-c?" 'semantic-ia-complete-symbol) ;; (local-set-key "\C-c>" 'semantic-complete-analyze-inline) (local-set-key "\C-c=" 'semantic-decoration-include-visit) (local-set-key "\C-cv" 'semantic-ia-show-variants) (local-set-key "\C-cj" 'semantic-ia-fast-jump) (local-set-key "\C-cq" 'semantic-ia-show-doc) (local-set-key "\C-cs" 'semantic-ia-show-summary) (local-set-key "\C-cp" 'semantic-analyze-proto-impl-toggle) (local-set-key (kbd "C-c <left>") 'semantic-tag-folding-fold-block) (local-set-key (kbd "C-c <right>") 'semantic-tag-folding-show-block) (add-to-list 'ac-sources 'ac-source-semantic-raw) (add-to-list 'ac-sources 'ac-source-semantic) ) (add-hook 'semantic-init-hooks 'alexott/cedet-hook) (add-hook 'c-mode-common-hook 'alexott/cedet-hook) (add-hook 'c++-mode-hook 'alexott/cedet-hook) was setting ac and semantic from hook. Am I wrong? Also, after printing ac-sources from scratch buffer this is what I get (ac-source-features ac-source-functions ac-source-yasnippet ac-source-variables ac-source-symbols ac-source-semantic ac-source-semantic-raw ac-source-abbrev ac-source-dictionary ac-source-words-in-same-mode-buffers) So I think It's not only a buffer-local setting. On Thu, Apr 11, 2013 at 11:48 AM, Alex Ott <al...@gm...> wrote: > I thin the problem is that ac-sources is buffer-local when it's set. So > you either need to set it from hook, or use setq-default... > > > On Thu, Apr 11, 2013 at 10:53 AM, Pamela Carreño <car...@gm...>wrote: > >> Hi, >> >> After several trials, I can force some suggestions with M-x >> ac-complete-semantic-raw. >> >> I think the problem is due to auto-complete not taking semantic as one of >> its sources or to some complex interaction between semantic and AC. >> >> The line (add-to-list 'ac-sources 'ac-source-semantic) seems to not be >> enough. And I don't understand why. >> >> Pamela >> >> >> ---------- Forwarded message ---------- >> From: Pamela Carreño <car...@gm...> >> Date: Wed, Apr 10, 2013 at 10:05 PM >> Subject: Problem between semantic and auto-complete >> To: ced...@li... >> >> >> Hello, >> >> Unfortunately I had to re-install my OS so I updated my emacs and cedet >> versions (I'm using the last snapshots). I'm also using the same >> configuration files that had worked pretty well with my c++ projects. >> However, now the name auto-completion is not working. >> >> More specifically, before re-installing my system if I started to write a >> variable's name, cedet showed me all the possible matches among all the >> variables already defined in the same file. Now I have no suggestions and I >> thinks it's related to how semantic and auto-complete work together. >> >> When I'm working on different types of files (lisp, latex, org...) >> auto-complete works fine. Also semantic works as expected: I can jump from >> definitions to implementations, I can search a method definition, I can see >> all the members of a >> particular object, and the function prototypes are showed too. >> >> It's just the name complete that does not work, and as I'm using the same >> configuration files and I followed step by step the same process I used the >> first time to install cedet and other tools (gtags, cscope...), I can't see >> the cause of this problem. >> >> Here are my configurations files: >> >> i) init.d http://pastebin.com/5uPCsgwW >> ii) my cedet configuration based on Alex's tutorial >> http://pastebin.com/QkUGtkve >> >> Can someone give me some hints about what I'm doing wrong or missing here? >> >> Also, I'm new to cedet and I would appreciate some suggestions about how >> to improve my current configuration to work better on c++ projects. >> >> Thanks, >> >> Pamela >> >> >> >> -- >> Pamela Carreño Medrano >> PhD. candidate in Computer Science >> IRISIA Lab/ Seaside team >> University of Southern Brittany - UBS >> Vannes, France >> >> >> ------------------------------------------------------------------------------ >> Precog is a next-generation analytics platform capable of advanced >> analytics on semi-structured data. The platform includes APIs for building >> apps and a phenomenal toolset for data science. Developers can use >> our toolset for easy data analysis & visualization. Get a free account! >> http://www2.precog.com/precogplatform/slashdotnewsletter >> _______________________________________________ >> cedet-semantic mailing list >> ced...@li... >> https://lists.sourceforge.net/lists/listinfo/cedet-semantic >> >> > > > -- > With best wishes, Alex Ott > http://alexott.net/ > Twitter: alexott_en (English), alexott (Russian) > Skype: alex.ott > -- Pamela Carreño Medrano PhD. candidate in Computer Science IRISIA Lab/ Seaside team University of Southern Brittany - UBS Vannes, France |
From: Alex O. <al...@gm...> - 2013-04-11 16:13:00
|
ok, looks correct... here is my configs: https://github.com/alexott/emacs-configs/blob/master/rc/emacs-rc-cedet.el & https://github.com/alexott/emacs-configs/blob/master/rc/emacs-rc-autocomplete.el On Thu, Apr 11, 2013 at 5:24 PM, Pamela Carreño <car...@gm...>wrote: > Hi Alex, > > Thank you for your answer, but I thought this function > > (defun alexott/cedet-hook () > (local-set-key [(control return)] 'semantic-ia-complete-symbol-menu) > (local-set-key "\C-c?" 'semantic-ia-complete-symbol) > ;; > (local-set-key "\C-c>" 'semantic-complete-analyze-inline) > (local-set-key "\C-c=" 'semantic-decoration-include-visit) > > (local-set-key "\C-cv" 'semantic-ia-show-variants) > (local-set-key "\C-cj" 'semantic-ia-fast-jump) > (local-set-key "\C-cq" 'semantic-ia-show-doc) > (local-set-key "\C-cs" 'semantic-ia-show-summary) > (local-set-key "\C-cp" 'semantic-analyze-proto-impl-toggle) > (local-set-key (kbd "C-c <left>") 'semantic-tag-folding-fold-block) > (local-set-key (kbd "C-c <right>") 'semantic-tag-folding-show-block) > > (add-to-list 'ac-sources 'ac-source-semantic-raw) > (add-to-list 'ac-sources 'ac-source-semantic) > ) > > (add-hook 'semantic-init-hooks 'alexott/cedet-hook) > (add-hook 'c-mode-common-hook 'alexott/cedet-hook) > (add-hook 'c++-mode-hook 'alexott/cedet-hook) > > > was setting ac and semantic from hook. Am I wrong? > > Also, after printing ac-sources from scratch buffer this is what I get > > (ac-source-features ac-source-functions ac-source-yasnippet > ac-source-variables ac-source-symbols ac-source-semantic > ac-source-semantic-raw ac-source-abbrev ac-source-dictionary > ac-source-words-in-same-mode-buffers) > > So I think It's not only a buffer-local setting. > > > On Thu, Apr 11, 2013 at 11:48 AM, Alex Ott <al...@gm...> wrote: > >> I thin the problem is that ac-sources is buffer-local when it's set. So >> you either need to set it from hook, or use setq-default... >> >> >> On Thu, Apr 11, 2013 at 10:53 AM, Pamela Carreño <car...@gm... >> > wrote: >> >>> Hi, >>> >>> After several trials, I can force some suggestions with M-x >>> ac-complete-semantic-raw. >>> >>> I think the problem is due to auto-complete not taking semantic as one >>> of its sources or to some complex interaction between semantic and AC. >>> >>> The line (add-to-list 'ac-sources 'ac-source-semantic) seems to not be >>> enough. And I don't understand why. >>> >>> Pamela >>> >>> >>> ---------- Forwarded message ---------- >>> From: Pamela Carreño <car...@gm...> >>> Date: Wed, Apr 10, 2013 at 10:05 PM >>> Subject: Problem between semantic and auto-complete >>> To: ced...@li... >>> >>> >>> Hello, >>> >>> Unfortunately I had to re-install my OS so I updated my emacs and cedet >>> versions (I'm using the last snapshots). I'm also using the same >>> configuration files that had worked pretty well with my c++ projects. >>> However, now the name auto-completion is not working. >>> >>> More specifically, before re-installing my system if I started to write >>> a variable's name, cedet showed me all the possible matches among all the >>> variables already defined in the same file. Now I have no suggestions and I >>> thinks it's related to how semantic and auto-complete work together. >>> >>> When I'm working on different types of files (lisp, latex, org...) >>> auto-complete works fine. Also semantic works as expected: I can jump from >>> definitions to implementations, I can search a method definition, I can see >>> all the members of a >>> particular object, and the function prototypes are showed too. >>> >>> It's just the name complete that does not work, and as I'm using the >>> same configuration files and I followed step by step the same process I >>> used the first time to install cedet and other tools (gtags, cscope...), I >>> can't see the cause of this problem. >>> >>> Here are my configurations files: >>> >>> i) init.d http://pastebin.com/5uPCsgwW >>> ii) my cedet configuration based on Alex's tutorial >>> http://pastebin.com/QkUGtkve >>> >>> Can someone give me some hints about what I'm doing wrong or missing >>> here? >>> >>> Also, I'm new to cedet and I would appreciate some suggestions about how >>> to improve my current configuration to work better on c++ projects. >>> >>> Thanks, >>> >>> Pamela >>> >>> >>> >>> -- >>> Pamela Carreño Medrano >>> PhD. candidate in Computer Science >>> IRISIA Lab/ Seaside team >>> University of Southern Brittany - UBS >>> Vannes, France >>> >>> >>> ------------------------------------------------------------------------------ >>> Precog is a next-generation analytics platform capable of advanced >>> analytics on semi-structured data. The platform includes APIs for >>> building >>> apps and a phenomenal toolset for data science. Developers can use >>> our toolset for easy data analysis & visualization. Get a free account! >>> http://www2.precog.com/precogplatform/slashdotnewsletter >>> _______________________________________________ >>> cedet-semantic mailing list >>> ced...@li... >>> https://lists.sourceforge.net/lists/listinfo/cedet-semantic >>> >>> >> >> >> -- >> With best wishes, Alex Ott >> http://alexott.net/ >> Twitter: alexott_en (English), alexott (Russian) >> Skype: alex.ott >> > > > > -- > Pamela Carreño Medrano > PhD. candidate in Computer Science > IRISIA Lab/ Seaside team > University of Southern Brittany - UBS > Vannes, France > -- With best wishes, Alex Ott http://alexott.net/ Twitter: alexott_en (English), alexott (Russian) Skype: alex.ott |
From: Pamela C. <car...@gm...> - 2013-04-14 18:39:05
|
HI, I've tried both suggestions, but I'm still having the same issue. AC and semantic work fine separately, but together they don't. Any other suggestion? Pamela On Thu, Apr 11, 2013 at 6:12 PM, Alex Ott <al...@gm...> wrote: > ok, looks correct... > > here is my configs: > https://github.com/alexott/emacs-configs/blob/master/rc/emacs-rc-cedet.el& > https://github.com/alexott/emacs-configs/blob/master/rc/emacs-rc-autocomplete.el > > > On Thu, Apr 11, 2013 at 5:24 PM, Pamela Carreño <car...@gm...>wrote: > >> Hi Alex, >> >> Thank you for your answer, but I thought this function >> >> (defun alexott/cedet-hook () >> (local-set-key [(control return)] 'semantic-ia-complete-symbol-menu) >> (local-set-key "\C-c?" 'semantic-ia-complete-symbol) >> ;; >> (local-set-key "\C-c>" 'semantic-complete-analyze-inline) >> (local-set-key "\C-c=" 'semantic-decoration-include-visit) >> >> (local-set-key "\C-cv" 'semantic-ia-show-variants) >> (local-set-key "\C-cj" 'semantic-ia-fast-jump) >> (local-set-key "\C-cq" 'semantic-ia-show-doc) >> (local-set-key "\C-cs" 'semantic-ia-show-summary) >> (local-set-key "\C-cp" 'semantic-analyze-proto-impl-toggle) >> (local-set-key (kbd "C-c <left>") 'semantic-tag-folding-fold-block) >> (local-set-key (kbd "C-c <right>") 'semantic-tag-folding-show-block) >> >> (add-to-list 'ac-sources 'ac-source-semantic-raw) >> (add-to-list 'ac-sources 'ac-source-semantic) >> ) >> >> (add-hook 'semantic-init-hooks 'alexott/cedet-hook) >> (add-hook 'c-mode-common-hook 'alexott/cedet-hook) >> (add-hook 'c++-mode-hook 'alexott/cedet-hook) >> >> >> was setting ac and semantic from hook. Am I wrong? >> >> Also, after printing ac-sources from scratch buffer this is what I get >> >> (ac-source-features ac-source-functions ac-source-yasnippet >> ac-source-variables ac-source-symbols ac-source-semantic >> ac-source-semantic-raw ac-source-abbrev ac-source-dictionary >> ac-source-words-in-same-mode-buffers) >> >> So I think It's not only a buffer-local setting. >> >> >> On Thu, Apr 11, 2013 at 11:48 AM, Alex Ott <al...@gm...> wrote: >> >>> I thin the problem is that ac-sources is buffer-local when it's set. So >>> you either need to set it from hook, or use setq-default... >>> >>> >>> On Thu, Apr 11, 2013 at 10:53 AM, Pamela Carreño < >>> car...@gm...> wrote: >>> >>>> Hi, >>>> >>>> After several trials, I can force some suggestions with M-x >>>> ac-complete-semantic-raw. >>>> >>>> I think the problem is due to auto-complete not taking semantic as one >>>> of its sources or to some complex interaction between semantic and AC. >>>> >>>> The line (add-to-list 'ac-sources 'ac-source-semantic) seems to not be >>>> enough. And I don't understand why. >>>> >>>> Pamela >>>> >>>> >>>> ---------- Forwarded message ---------- >>>> From: Pamela Carreño <car...@gm...> >>>> Date: Wed, Apr 10, 2013 at 10:05 PM >>>> Subject: Problem between semantic and auto-complete >>>> To: ced...@li... >>>> >>>> >>>> Hello, >>>> >>>> Unfortunately I had to re-install my OS so I updated my emacs and cedet >>>> versions (I'm using the last snapshots). I'm also using the same >>>> configuration files that had worked pretty well with my c++ projects. >>>> However, now the name auto-completion is not working. >>>> >>>> More specifically, before re-installing my system if I started to write >>>> a variable's name, cedet showed me all the possible matches among all the >>>> variables already defined in the same file. Now I have no suggestions and I >>>> thinks it's related to how semantic and auto-complete work together. >>>> >>>> When I'm working on different types of files (lisp, latex, org...) >>>> auto-complete works fine. Also semantic works as expected: I can jump from >>>> definitions to implementations, I can search a method definition, I can see >>>> all the members of a >>>> particular object, and the function prototypes are showed too. >>>> >>>> It's just the name complete that does not work, and as I'm using the >>>> same configuration files and I followed step by step the same process I >>>> used the first time to install cedet and other tools (gtags, cscope...), I >>>> can't see the cause of this problem. >>>> >>>> Here are my configurations files: >>>> >>>> i) init.d http://pastebin.com/5uPCsgwW >>>> ii) my cedet configuration based on Alex's tutorial >>>> http://pastebin.com/QkUGtkve >>>> >>>> Can someone give me some hints about what I'm doing wrong or missing >>>> here? >>>> >>>> Also, I'm new to cedet and I would appreciate some suggestions about >>>> how to improve my current configuration to work better on c++ projects. >>>> >>>> Thanks, >>>> >>>> Pamela >>>> >>>> >>>> >>>> -- >>>> Pamela Carreño Medrano >>>> PhD. candidate in Computer Science >>>> IRISIA Lab/ Seaside team >>>> University of Southern Brittany - UBS >>>> Vannes, France >>>> >>>> >>>> ------------------------------------------------------------------------------ >>>> Precog is a next-generation analytics platform capable of advanced >>>> analytics on semi-structured data. The platform includes APIs for >>>> building >>>> apps and a phenomenal toolset for data science. Developers can use >>>> our toolset for easy data analysis & visualization. Get a free account! >>>> http://www2.precog.com/precogplatform/slashdotnewsletter >>>> _______________________________________________ >>>> cedet-semantic mailing list >>>> ced...@li... >>>> https://lists.sourceforge.net/lists/listinfo/cedet-semantic >>>> >>>> >>> >>> >>> -- >>> With best wishes, Alex Ott >>> http://alexott.net/ >>> Twitter: alexott_en (English), alexott (Russian) >>> Skype: alex.ott >>> >> >> >> >> -- >> Pamela Carreño Medrano >> PhD. candidate in Computer Science >> IRISIA Lab/ Seaside team >> University of Southern Brittany - UBS >> Vannes, France >> > > > > -- > With best wishes, Alex Ott > http://alexott.net/ > Twitter: alexott_en (English), alexott (Russian) > Skype: alex.ott > -- Pamela Carreño Medrano PhD. candidate in Computer Science IRISIA Lab/ Seaside team University of Southern Brittany - UBS Vannes, France |