From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Jorge Araya Navarro Newsgroups: gmane.emacs.help Subject: Re: I don't have C++ intellisense with company-mode Date: Thu, 23 Jan 2014 23:22:24 -0600 Message-ID: <1390540944.17933.2.camel@localhost.localdomain> References: <1390424024.2349.11.camel@localhost.localdomain> <87sisfcx57.fsf@yandex.ru> <1390448545.13181.12.camel@localhost.localdomain> <52E0FDD0.2000408@yandex.ru> <1390504554.2401.2.camel@localhost.localdomain> <87r47ybhc8.fsf@yandex.ru> Reply-To: elcorreo@deshackra.com NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8bit X-Trace: ger.gmane.org 1390540964 2529 80.91.229.3 (24 Jan 2014 05:22:44 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 24 Jan 2014 05:22:44 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Jan 24 06:22:52 2014 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1W6ZEB-0006Ny-A9 for geh-help-gnu-emacs@m.gmane.org; Fri, 24 Jan 2014 06:22:51 +0100 Original-Received: from localhost ([::1]:44479 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W6ZEA-0002SB-KC for geh-help-gnu-emacs@m.gmane.org; Fri, 24 Jan 2014 00:22:50 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:38871) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W6ZDu-0002Rx-Fd for help-gnu-emacs@gnu.org; Fri, 24 Jan 2014 00:22:40 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1W6ZDo-0004WE-Tw for help-gnu-emacs@gnu.org; Fri, 24 Jan 2014 00:22:34 -0500 Original-Received: from shared.dohost.us ([188.165.91.212]:54479) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W6ZDo-0004W0-HJ for help-gnu-emacs@gnu.org; Fri, 24 Jan 2014 00:22:28 -0500 Original-Received: from [186.176.239.70] (port=52135 helo=[192.168.0.110]) by shared.dohost.us with esmtpsa (SSLv3:DHE-RSA-AES256-SHA:256) (Exim 4.82) (envelope-from ) id 1W6ZGT-0000J3-Bi for help-gnu-emacs@gnu.org; Fri, 24 Jan 2014 05:25:13 +0000 In-Reply-To: <87r47ybhc8.fsf@yandex.ru> X-Mailer: Evolution 3.10.3 X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - shared.dohost.us X-AntiAbuse: Original Domain - gnu.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - deshackra.com X-Get-Message-Sender-Via: shared.dohost.us: authenticated_id: elcorreo@deshackra.com X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 188.165.91.212 X-Content-Filtered-By: Mailman/MimeDel 2.1.14 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:95601 Archived-At: El jue, 23-01-2014 a las 21:58 +0200, Dmitry Gutov escribió: > Jorge Araya Navarro 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(# 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(# 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(# 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 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: "# - 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.