Oren Bar | 4 Jan 2011 21:30
Picon

semantic-analyze-proto-impl-toggle won't find suitable implementation

1. I found this in a c++ project.
looking in semantic-analyze-refs.el in defmethod semantic-analyze-refs-impl:
I think the call to:
(semantic-tag-similar-p tag aT :prototype-flag :parent)
is buggy.

I changed it to:
(semantic-tag-similar-p tag aT :prototype-flag :parent :typemodifiers)

and it works.
I'm not sure that what I did is valid to other programming languages
(i.e. type modifiers are not part of implementation if done outside of class declaration)

2. Is there a function that returns a list of available prototypes/implementations, in a minibuffer or something similar?
   it would be useful for browsing virtual functions.
 
Regards,
Oren
------------------------------------------------------------------------------
Learn how Oracle Real Application Clusters (RAC) One Node allows customers
to consolidate database storage, standardize their database environment, and, 
should the need arise, upgrade to a full multi-node Oracle RAC database 
without downtime or disruption
http://p.sf.net/sfu/oracle-sfdevnl
_______________________________________________
Cedet-devel mailing list
Cedet-devel <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/cedet-devel
David Engster | 5 Jan 2011 22:55
Picon

Re: semantic-analyze-proto-impl-toggle won't find suitable implementation

Oren Bar writes:
> 1. I found this in a c++ project.
> looking in *semantic-analyze-refs.el* in *defmethod
> semantic-analyze-refs-impl*:
> I think the call to:
> *(semantic-tag-similar-p tag aT :prototype-flag :parent)*
> is buggy.
>
> I changed it to:
> *(semantic-tag-similar-p tag aT :prototype-flag :parent :typemodifiers)*
>
> and it works.

Thanks; in CEDET from bzr, several changes were made to
semantic-tag-similar-p in the last months, and I think your problem
should be fixed as well.

-David

------------------------------------------------------------------------------
Learn how Oracle Real Application Clusters (RAC) One Node allows customers
to consolidate database storage, standardize their database environment, and, 
should the need arise, upgrade to a full multi-node Oracle RAC database 
without downtime or disruption
http://p.sf.net/sfu/oracle-sfdevnl
Alex Ott | 8 Jan 2011 16:22
Picon
Gravatar

build fails for HEAD....

build of fresh CEDET is failing (when compiled both with make & emacs)

In end of data:
semanticdb-ectag.el:94:1:Warning: the following functions are not known to be
    defined: semanticdb-create-table-for-file, semanticdb-synchronize
Wrote /Users/ott/projects/cedet/semantic/ctags/semanticdb-ectag.elc
Wrote /Users/ott/projects/cedet/semantic/ctags/semantic-ectag-lang2.elc
make -C bovine
"emacs" -batch --no-site-file -l grammar-make-script -f
semantic-grammar-batch-build-packages c.by make.by scheme.by erlang.by
f90.by
Compiling Grammars from: /Users/ott/projects/cedet/semantic/semantic-grammar.elc
Wrong type argument: listp, $1
Args out of range: ",", 1
Wrong type argument: listp, $2
Wrong type argument: listp, $2
Wrong type argument: listp, $1
make[2]: *** [by] Error 1
make[1]: *** [bovinator] Error 2
make: *** [semantic] Error 2

--

-- 
With best wishes,                    Alex Ott, MBA
http://alexott.net/
Tiwtter: alexott_en (English), alexott (Russian)
Skype: alex.ott

------------------------------------------------------------------------------
Gaining the trust of online customers is vital for the success of any company
that requires sensitive data to be transmitted over the Web.   Learn how to 
best implement a security strategy that keeps consumers' information secure 
and instills the confidence they need to proceed with transactions.
http://p.sf.net/sfu/oracle-sfdevnl 
David Engster | 8 Jan 2011 18:11
Picon

Re: build fails for HEAD....

Alex Ott writes:
> build of fresh CEDET is failing (when compiled both with make & emacs)

[...]

> Compiling Grammars from: /Users/ott/projects/cedet/semantic/semantic-grammar.elc
> Wrong type argument: listp, $1
> Args out of range: ",", 1
> Wrong type argument: listp, $2
> Wrong type argument: listp, $2
> Wrong type argument: listp, $1
> make[2]: *** [by] Error 1
> make[1]: *** [bovinator] Error 2
> make: *** [semantic] Error 2

Yes, it's a problem with Emacs24 from bzr; Emacs23 still works fine. See

http://thread.gmane.org/gmane.emacs.cedet/4850
http://thread.gmane.org/gmane.emacs.devel/133638/focus=133770

In a nutshell, revno. 102591 introduced a change to lread.c which breaks
parsing of old backquotes. The problem for CEDET is that

(read "( ,(cons $1 $3 ) )")

used to return (\, (cons $1 $3)) but now returns 

((\, (cons $1 $3))).

This has to be fixed in CEDET, but I'm not sure how and where, so I'm
waiting for Eric's opinion. But if you have an idea... :-)

-David

------------------------------------------------------------------------------
Gaining the trust of online customers is vital for the success of any company
that requires sensitive data to be transmitted over the Web.   Learn how to 
best implement a security strategy that keeps consumers' information secure 
and instills the confidence they need to proceed with transactions.
http://p.sf.net/sfu/oracle-sfdevnl 
Reuben Thomas | 8 Jan 2011 23:42
Gravatar

python import files not recognised without .py suffix

Hi,

I'm using CEDET 1.0 as shipped with Emacs 23.2. I just tried enabling
EDE, and started writing a python program. My "imports" were labelled
as unknown, so I configured the include path. No dice. In the end, I
tried writing

import struct.py

and it worked! But this is incorrect python syntax...

--

-- 
http://rrt.sc3d.org

------------------------------------------------------------------------------
Gaining the trust of online customers is vital for the success of any company
that requires sensitive data to be transmitted over the Web.   Learn how to 
best implement a security strategy that keeps consumers' information secure 
and instills the confidence they need to proceed with transactions.
http://p.sf.net/sfu/oracle-sfdevnl 
Reuben Thomas | 8 Jan 2011 23:48
Gravatar

Typo in semantic/wisent/python.el

In the line

;; quotes, e.g., "I'm a string" and 'I too am s string'.

"am s string" should be "am a string".

--

-- 
http://rrt.sc3d.org

------------------------------------------------------------------------------
Gaining the trust of online customers is vital for the success of any company
that requires sensitive data to be transmitted over the Web.   Learn how to 
best implement a security strategy that keeps consumers' information secure 
and instills the confidence they need to proceed with transactions.
http://p.sf.net/sfu/oracle-sfdevnl 
David Engster | 10 Jan 2011 17:51
Picon

Re: python import files not recognised without .py suffix

Reuben Thomas writes:
> I'm using CEDET 1.0 as shipped with Emacs 23.2. I just tried enabling
> EDE, and started writing a python program. My "imports" were labelled
> as unknown, so I configured the include path. No dice. In the end, I
> tried writing
>
> import struct.py
>
> and it worked! But this is incorrect python syntax...

This should be fixed in the CEDET development version, which you can get
by installing bzr and do

bzr checkout bzr://cedet.bzr.sourceforge.net/bzrroot/cedet/code/trunk/

-David

------------------------------------------------------------------------------
Gaining the trust of online customers is vital for the success of any company
that requires sensitive data to be transmitted over the Web.   Learn how to 
best implement a security strategy that keeps consumers' information secure 
and instills the confidence they need to proceed with transactions.
http://p.sf.net/sfu/oracle-sfdevnl 
Reuben Thomas | 10 Jan 2011 20:32
Gravatar

Re: python import files not recognised without .py suffix

On 10 January 2011 16:51, David Engster <deng <at> randomsample.de> wrote:
> This should be fixed in the CEDET development version, which you can get
> by installing bzr and do
>
> bzr checkout bzr://cedet.bzr.sourceforge.net/bzrroot/cedet/code/trunk/

Thanks!

--

-- 
http://rrt.sc3d.org

------------------------------------------------------------------------------
Gaining the trust of online customers is vital for the success of any company
that requires sensitive data to be transmitted over the Web.   Learn how to 
best implement a security strategy that keeps consumers' information secure 
and instills the confidence they need to proceed with transactions.
http://p.sf.net/sfu/oracle-sfdevnl 
Yang Liu | 18 Jan 2011 01:50
Picon
Favicon

Howto set up ece-cpp-root-project :spp-files

I am working on a c++ project. In its directory root, there are 3 directories
(include,source,config).

"include" has all header files.
"source" has all the source code.
"config" has a header file "config.h" generated by congfiure and autoheader.

In config.h, there is a line like

#define USE_MYSQL 1

Here is my setup of ede project.

(ede-cpp-root-project "test"
                      :name "test"
                      :file "/PATH/TO/PROJECT/ROOT/INSTALL"
                      :include-path '("/include")
                      :spp-table '(("TEST"."1234"))
                      :spp-files '("config/config.h")
                      )
)

Open source/test.c, I run semantic-lex-spp-describe and found TEST "1234".

The problem is I can not find USE_MYSQL.

I saw the comment inside "ede-cpp-root.el". It was like 

The files listed in :spp-files should not start with a /, and are relative to
something in :include-path.

I do not quite understand the "relative to something in :include-path". Does
that mean I need to add "/" into include-path?

Sorry about my poor english. Hopefully you can figure out my problem.

Thanks

------------------------------------------------------------------------------
Protect Your Site and Customers from Malware Attacks
Learn about various malware tactics and how to avoid them. Understand 
malware threats, the impact they can have on your business, and how you 
can protect your company and customers by using code signing.
http://p.sf.net/sfu/oracle-sfdevnl
Christopher Barry | 18 Jan 2011 02:18
Favicon

Re: Howto set up ece-cpp-root-project :spp-files

On Tue, 2011-01-18 at 00:50 +0000, Yang Liu wrote:
> "/include"

should this be "include" instead?

------------------------------------------------------------------------------
Protect Your Site and Customers from Malware Attacks
Learn about various malware tactics and how to avoid them. Understand 
malware threats, the impact they can have on your business, and how you 
can protect your company and customers by using code signing.
http://p.sf.net/sfu/oracle-sfdevnl

Gmane