help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: I don't have C++ intellisense with company-mode


From: Jorge Araya Navarro
Subject: Re: I don't have C++ intellisense with company-mode
Date: Thu, 23 Jan 2014 23:22:24 -0600

El jue, 23-01-2014 a las 21:58 +0200, Dmitry Gutov escribió: 

> Jorge Araya Navarro <elcorreo@deshackra.com> writes:
> 
> > I commented out those lines, tried again, but it doesn't works[0] :'(
> >
> >
> > [0]: http://imgur.com/a/Ed7Wn#3
> 
> Don't know what's the problem here: I've tried your cedet.el and a small
> sample C++ file, and it worked fine (with the latest Emacs, built from
> trunk).
> 
> You might want to comment this out, though:
> 
> (add-to-list 'semantic-default-submodes 
> 'global-semantic-idle-completions-mode)
> 
> This kind of mode seems to duplicate the functionality of Company.
> 
> If you don't manage to make it work yourself, try reproducing the
> problem with a small C++ file and then uploading it here, or, better
> yet, filing a CEDET bug report (or doing both). The latter option would
> be most appropriate if you see company-semantic working with some C++
> files, but failing on certain others.
> 
> Also, try the very latest Emacs build you can find (build from trunk, if
> you can).
> 



I added (require 'cedet-cscope) and the error just appeared one level
below:


Debugger entered--Lisp error: (void-function semanticdb-enable-cscope-databases)
  (semanticdb-enable-cscope-databases)
  (progn (semanticdb-enable-cscope-databases))
  (if (cedet-cscope-version-check t) (progn 
(semanticdb-enable-cscope-databases)))
  eval-buffer(#<buffer  *load*-326197> nil 
"/home/jorge/.emacs.d/conf-modes/cedet.el" nil t)  ; Reading at buffer position 
411
  load-with-code-conversion("/home/jorge/.emacs.d/conf-modes/cedet.el" 
"/home/jorge/.emacs.d/conf-modes/cedet.el" nil nil)
  load("/home/jorge/.emacs.d/conf-modes/cedet.el" nil nil t)
  load-file("~/.emacs.d/conf-modes/cedet.el")
  eval-buffer(#<buffer  *load*-390467> nil "/home/jorge/.emacs.d/varl.el" nil 
t)  ; Reading at buffer position 617
  load-with-code-conversion("/home/jorge/.emacs.d/varl.el" 
"/home/jorge/.emacs.d/varl.el" nil nil)
  load("/home/jorge/.emacs.d/varl.el" nil nil t)
  load-file("~/.emacs.d/varl.el")
  eval-buffer(#<buffer  *load*> nil "/home/jorge/.emacs.d/init.el" nil t)  ; 
Reading at buffer position 373
  load-with-code-conversion("/home/jorge/.emacs.d/init.el" 
"/home/jorge/.emacs.d/init.el" t t)
  load("/home/jorge/.emacs.d/init" t t)


that's some progress at least... I commented those lines and tried
again, created a helloworld.cpp file that looks like this:


#include <iostream>

struct test
{
  int foo;
  int foobar;
  int bar;
  char ch;
};

int main(int argc, char *argv[])
{
  test teststruct;
  teststruct.foo = 10;
  return 0;
}


but, nothing, just more errors[1] :(. company-semantic doesn't work with
any C++ file! :'(
I then compiled Emacs from its repository as you suggested (version
echoes: GNU Emacs 24.3.50.1 (x86_64-unknown-linux-gnu, GTK+ Version
3.10.6) of 2014-01-23 on abril ) and tried again, the same:


Idle Service Error semantic-idle-summary-idle-function: "#<buffer 
helloworld.cpp> - Wrong type argument: stringp, ((\"__THROW\" 0 nil nil))"


I think that I'm doing a bug report for this issue (to the CEDET
developers I guess?) :(

[1]: http://imgur.com/a/Ed7Wn#4

-- 
Pax et bonum.
Jorge Araya Navarro.
Diseñador publicitario, programador Python/C++ y colaborador en Parabola
GNU/Linux-libre.

-- 
Pax et bonum.
Jorge Araya Navarro.
Diseñador publicitario, programador Python/C++ y colaborador en Parabola
GNU/Linux-libre.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]