Jim Ford | 18 Apr 2012 21:48
Picon
Picon

Autoloading failed to define function semantic-mode

I've got two pretty much identical installations. One runs on a laptop 
and the other with Virtualbox on a Windows XP machine. Both systems are 
Ubuntu 11.1 and both have Emacs 23.3.1 installed.

CEDET appears to have installed and runs on the VirtualBox machine and I 
can select the very useful Semantic mode. I've not got to grips with 
compiling Arduino code with the EDE yet.

On the laptop, I can't get Semantic mode and get the error “Autoloading 
failed to define function semantic-mode”. Also the tick boxes for 
Semantic and EDE don't 'take' a tick.

Is there a 'fix' for this please?

Jim

------------------------------------------------------------------------------
Better than sec? Nothing is better than sec when it comes to
monitoring Big Data applications. Try Boundary one-second 
resolution app monitoring today. Free.
http://p.sf.net/sfu/Boundary-dev2dev
Eric M. Ludlam | 19 Apr 2012 13:40
Picon
Gravatar

Re: Autoloading failed to define function semantic-mode

On 04/18/2012 03:48 PM, Jim Ford wrote:
> I've got two pretty much identical installations. One runs on a laptop
> and the other with Virtualbox on a Windows XP machine. Both systems are
> Ubuntu 11.1 and both have Emacs 23.3.1 installed.
>
> CEDET appears to have installed and runs on the VirtualBox machine and I
> can select the very useful Semantic mode. I've not got to grips with
> compiling Arduino code with the EDE yet.
>
> On the laptop, I can't get Semantic mode and get the error “Autoloading
> failed to define function semantic-mode”. Also the tick boxes for
> Semantic and EDE don't 'take' a tick.
>
> Is there a 'fix' for this please?

This may be a config problem.  When you used CEDET from sourceforge, 
it's configuration must be the first thing in your .emacs.  If any other 
code starts loading in CEDET from Emacs core, you will get a missmatch 
like this.

This error is from an autoload claiming to provide semantic-mode in some 
file, but it doesn't exist in CEDET from sourceforge, as that is a new 
Emacs only feature at the moment.  If you get CEDET setup first, then 
you can avoid other code trying to use semantic-mode.

Sometimes, this might be because of a default.el or other system wide 
config file.

Eric

(Continue reading)

Philipp Moeller | 22 Apr 2012 17:37
Favicon
Gravatar

require: Symbol's function definition is void: eieio-defmethod

Trying to run `M-x semantic-mode` gives me the following error:

  require: Symbol's function definition is void: eieio-defmethod

I'm currently on:

  GNU Emacs 23.4.1 (x86_64-unknown-linux-gnu, GTK+ Version 2.24.10)

CEDET Version:	1.0
  			Requested	File		Loaded
  Package		Version		Version		Version
  ----------------------------------------------------------
  cedet:		1.0		nil		ok
  eieio:		1.3		ok		ok
  semantic:		2.0		nil		ok

I cannot find any mentioning of eieio-defmethod anywhere in my site
files and trying to build cedet from sources fails with the same error
messages.

Any idea what causes this and how to fix it?

Cheers,
Philipp Moeller

------------------------------------------------------------------------------
For Developers, A Lot Can Happen In A Second.
Boundary is the first to Know...and Tell You.
Monitor Your Applications in Ultra-Fine Resolution. Try it FREE!
http://p.sf.net/sfu/Boundary-d2dvs2
(Continue reading)

Arne Schmitz | 27 Apr 2012 09:15
Picon
Gravatar

How to enable semantic-clang?

I noticed that there is a bovine/semantic-clang.el in CEDET 1.0. How can I enable and use this for code
completion? Is the semantic-clang-binary customizable? My clang does not reside in /usr/bin.

Best regards,

Arne

--

-- 
Empfehlen Sie GMX DSL Ihren Freunden und Bekannten und wir
belohnen Sie mit bis zu 50,- Euro! https://freundschaftswerbung.gmx.de

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
Arne Schmitz | 27 Apr 2012 09:35
Picon
Gravatar

Re: How to enable semantic-clang?

Ok, I just set the variable in my init.el and did semantic-clang-activate. Now the module works, but not
quite well. Several symbols can't be completed. I guess I have to setup some more paths and/or variables?
What do I need to set so that my whole project is being scanned for possible completions?

Best regards,

Arne

--

-- 
NEU: FreePhone 3-fach-Flat mit kostenlosem Smartphone!                                  
Jetzt informieren: http://mobile.1und1.de/?ac=OM.PW.PW003K20328T7073a

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
Diez B. Roggisch | 27 Apr 2012 09:50
Picon
Gravatar

Re: How to enable semantic-clang?

I had a look, and the module looks very early in development. Afaik no project settings for paths are passed
down. 

Diez 

Am 27.04.2012 um 14:35 schrieb "Arne Schmitz" <arne.schmitz <at> gmx.net>:

> Ok, I just set the variable in my init.el and did semantic-clang-activate. Now the module works, but not
quite well. Several symbols can't be completed. I guess I have to setup some more paths and/or variables?
What do I need to set so that my whole project is being scanned for possible completions?
> 
> Best regards,
> 
> Arne
> 
> -- 
> NEU: FreePhone 3-fach-Flat mit kostenlosem Smartphone!                                  
> Jetzt informieren: http://mobile.1und1.de/?ac=OM.PW.PW003K20328T7073a
> 
> ------------------------------------------------------------------------------
> Live Security Virtual Conference
> Exclusive live event will cover all the ways today's security and 
> threat landscape has changed and how IT managers can respond. Discussions 
> will include endpoint security, mobile security and the latest in malware 
> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
> _______________________________________________
> cedet-semantic mailing list
> cedet-semantic <at> lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/cedet-semantic
> 
(Continue reading)

Arne Schmitz | 27 Apr 2012 10:53
Picon
Gravatar

How to set up EDE include search paths

I am trying to figure out how ede works, so that I can use the semantic-clang.el better. It seems that it uses
the ede facility to look for source files. My projects are rather large, but follow a regular structure:

Source files reside under $PROJECT_ROOT/modules/*/src/*.cc.

Header files reside under $PROJECT_ROOT/modules/*/include/*/*.h.

Can I teach ede to look under these paths automatically for source and header files?

Best regards,

Arne
--

-- 
Empfehlen Sie GMX DSL Ihren Freunden und Bekannten und wir
belohnen Sie mit bis zu 50,- Euro! https://freundschaftswerbung.gmx.de

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
David Engster | 27 Apr 2012 11:04
Picon

Re: How to set up EDE include search paths

Arne Schmitz writes:
> I am trying to figure out how ede works, so that I can use the
> semantic-clang.el better. It seems that it uses the ede facility to
> look for source files. My projects are rather large, but follow a
> regular structure:
>
> Source files reside under $PROJECT_ROOT/modules/*/src/*.cc.
>
> Header files reside under $PROJECT_ROOT/modules/*/include/*/*.h.
>
> Can I teach ede to look under these paths automatically for source and header files?

Use a ede-cpp-root project. For the docs see

(info "(ede) ede-cpp-root")

-David

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
David Engster | 27 Apr 2012 11:10
Picon

Re: How to enable semantic-clang?

Diez B. Roggisch writes:
> Afaik no project settings for paths are passed down.

Include directories and preprocessor symbols from projects are passed to
clang.

-David

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
Thomas Karolski | 27 Apr 2012 11:16

Re: How to set up EDE include search paths

In particular, if you want support for wildcards, I fear you'll have to do it yourself i.e. iterate over all entries in the directory using emacs lisp :-)

(ede-cpp-root-project "mobile3d"
                      :targets '()
                      :file (expand-file-name "~/gitspace/myprojectroot/.emacs.ws")
                      :directory (expand-file-name "~/gitspace/myprojectroot/")
                      :locate-fcn 'finder-fn)

(defun finder-fn (name dir)

;; iterate over directories D1..Dn in dir/modules/

;; find name inside Dx/src or Dx/include where x in 1..n

;; again, do the same for include/*

;; finally return full path to found file

  )


Within the finder-fn you may use (ede-expand-filename name dir) to get the default behavior.


Kind regards,

Thomas :-)

Am 27.04.2012 10:54 schrieb "Arne Schmitz" <arne.schmitz <at> gmx.net>:
I am trying to figure out how ede works, so that I can use the semantic-clang.el better. It seems that it uses the ede facility to look for source files. My projects are rather large, but follow a regular structure:

Source files reside under $PROJECT_ROOT/modules/*/src/*.cc.

Header files reside under $PROJECT_ROOT/modules/*/include/*/*.h.

Can I teach ede to look under these paths automatically for source and header files?

Best regards,

Arne
--
Empfehlen Sie GMX DSL Ihren Freunden und Bekannten und wir
belohnen Sie mit bis zu 50,- Euro! https://freundschaftswerbung.gmx.de

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
cedet-semantic mailing list
cedet-semantic <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/cedet-semantic
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
cedet-semantic mailing list
cedet-semantic <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/cedet-semantic

Gmane