Bonjour,
Avec comme objectif premier de pouvoir disposer de la compl=E9tion
automatique en C++ sous Emacs, je viens d'installer les paquets :
- cedet-common
- ede
- cogre
- eieio
- speedbar
- semantic
que ma distribution Linux actuelle (Jaunty Ubuntu) met =E0 ma
disposition.
Et, m'inspirant de
A Gentle Introduction to CEDET
http://xtalk.msk.su/~ott/en/writings/em =85 Cedet.html
et de divers conseils j'ai cr=E9=E9 le fichier ~/.emacs suivant :
;; Permet de limiter l'analyse de code au fichier courant ou au projet
courant.
;; Rajouter "unloaded system recursive" pour tout parser (beaucoup
plus long !)
(setq-mode-local c-mode semanticdb-find-default-throttle '(file local
project))
(setq-mode-local c++-mode semanticdb-find-default-throttle '(file
local project))
Apr=E8s lancement d'Emacs, j'obtiens alors dans *Messages* ce qui suit,
qui contient des messages d'erreur concernant ede :
Loading /etc/emacs/site-start.d/50devhelp.el (source)...done
Loading /etc/emacs/site-start.d/50dictionaries-common.el (source)...
Loading debian-ispell...
Loading /var/cache/dictionaries-common/emacsen-ispell-default.el
(source)...done
Loading debian-ispell...done
Loading /var/cache/dictionaries-common/emacsen-ispell-dicts.el
(source)...done
Loading /etc/emacs/site-start.d/50dictionaries-common.el
(source)...done
Loading /etc/emacs/site-start.d/50eieio.el (source)...done
Loading /etc/emacs/site-start.d/50psvn.el (source)...done
Loading /etc/emacs/site-start.d/51ede.el (source)...done
Loading /etc/emacs/site-start.d/51speedbar.el (source)...done
Loading /etc/emacs/site-start.d/52semantic.el (source)...done
Loading /etc/emacs/site-start.d/53cedet-contrib.el (source)...done
Loading /etc/emacs/site-start.d/53cogre.el (source)...done
Loading /usr/share/emacs/site-lisp/cedet-common/cedet.el (source)...
"/usr/share/emacs/site-lisp/cedet-common/" added to `load-path'
Loading cl-macs...done
Setting up cedet...done
Setting up cogre...done
Setting up ede...
Loading ede...
!! File eieio uses old-style backquotes !!
Loading ede-speedbar...done
Loading ede...done
Setting up ede...done
Setting up eieio...done
Setting up semantic...
Loading derived...done
Loading regexp-opt...done
Setting up semantic...done
Setting up speedbar...done
Setting up cedet-contrib...done
Loading /usr/share/emacs/site-lisp/cedet-common/cedet.el
(source)...done
An error has occurred while loading `/home/toto/.emacs':
Symbol's function definition is void: ede-cpp-root-project
To ensure normal operation, you should investigate and remove the
cause of the error in your initialization file. Start Emacs with
the `--debug-init' option to view a complete error backtrace.
Il vient toujours un [no match] dans le mini-buffer.
J'ajoute que j'avais pris soin de cr=E9er un fichier texte vide :
"~/source/monsuperprojet/CMakeLists.txt" en supposant que cela
permettrait de faire fonctionner l'exemple.
Que faire pour que CEDET s'installe correctement et pour activer la
compl=E9tion automatique ?
Cette action est irreversible, confirmez la suppression du commentaire ?
Signaler le commentaire
Veuillez sélectionner un problème
Nudité
Violence
Harcèlement
Fraude
Vente illégale
Discours haineux
Terrorisme
Autre
Vincent Belaïche
Je viens de faire un grep dans tous les source de ede, et je n'ai pas trouvé de ede-cpp-root-project, ni d'ailleurs aucun symbol contenant à la fois (ede et (root ou cpp)).
Es-tu sûr que cette classe existe ?
À+
Vincent.
ptyxs a écrit :
Bonjour, Avec comme objectif premier de pouvoir disposer de la complétion automatique en C++ sous Emacs, je viens d'installer les paquets : - cedet-common - ede - cogre - eieio - speedbar - semantic que ma distribution Linux actuelle (Jaunty Ubuntu) met à ma disposition. Et, m'inspirant de A Gentle Introduction to CEDET http://xtalk.msk.su/~ott/en/writings/em … Cedet.html et de divers conseils j'ai créé le fichier ~/.emacs suivant :
;; Permet de limiter l'analyse de code au fichier courant ou au projet courant. ;; Rajouter "unloaded system recursive" pour tout parser (beaucoup plus long !) (setq-mode-local c-mode semanticdb-find-default-throttle '(file local project)) (setq-mode-local c++-mode semanticdb-find-default-throttle '(file local project))
Après lancement d'Emacs, j'obtiens alors dans *Messages* ce qui suit, qui contient des messages d'erreur concernant ede :
Loading /etc/emacs/site-start.d/50devhelp.el (source)...done Loading /etc/emacs/site-start.d/50dictionaries-common.el (source)... Loading debian-ispell... Loading /var/cache/dictionaries-common/emacsen-ispell-default.el (source)...done Loading debian-ispell...done Loading /var/cache/dictionaries-common/emacsen-ispell-dicts.el (source)...done Loading /etc/emacs/site-start.d/50dictionaries-common.el (source)...done Loading /etc/emacs/site-start.d/50eieio.el (source)...done Loading /etc/emacs/site-start.d/50psvn.el (source)...done Loading /etc/emacs/site-start.d/51ede.el (source)...done Loading /etc/emacs/site-start.d/51speedbar.el (source)...done Loading /etc/emacs/site-start.d/52semantic.el (source)...done Loading /etc/emacs/site-start.d/53cedet-contrib.el (source)...done Loading /etc/emacs/site-start.d/53cogre.el (source)...done Loading /usr/share/emacs/site-lisp/cedet-common/cedet.el (source)... "/usr/share/emacs/site-lisp/cedet-common/" added to `load-path' Loading cl-macs...done Setting up cedet...done Setting up cogre...done Setting up ede... Loading ede... !! File eieio uses old-style backquotes !! Loading ede-speedbar...done Loading ede...done Setting up ede...done Setting up eieio...done Setting up semantic... Loading derived...done Loading regexp-opt...done Setting up semantic...done Setting up speedbar...done Setting up cedet-contrib...done Loading /usr/share/emacs/site-lisp/cedet-common/cedet.el (source)...done
An error has occurred while loading `/home/toto/.emacs':
Symbol's function definition is void: ede-cpp-root-project
To ensure normal operation, you should investigate and remove the cause of the error in your initialization file. Start Emacs with the `--debug-init' option to view a complete error backtrace.
Il vient toujours un [no match] dans le mini-buffer.
J'ajoute que j'avais pris soin de créer un fichier texte vide : "~/source/monsuperprojet/CMakeLists.txt" en supposant que cela permettrait de faire fonctionner l'exemple.
Que faire pour que CEDET s'installe correctement et pour activer la complétion automatique ?
Je viens de faire un grep dans tous les source de ede, et je n'ai pas trouvé
de ede-cpp-root-project, ni d'ailleurs aucun symbol contenant à la fois (ede
et (root ou cpp)).
Es-tu sûr que cette classe existe ?
À+
Vincent.
ptyxs a écrit :
Bonjour,
Avec comme objectif premier de pouvoir disposer de la complétion
automatique en C++ sous Emacs, je viens d'installer les paquets :
- cedet-common
- ede
- cogre
- eieio
- speedbar
- semantic
que ma distribution Linux actuelle (Jaunty Ubuntu) met à ma
disposition.
Et, m'inspirant de
A Gentle Introduction to CEDET
http://xtalk.msk.su/~ott/en/writings/em … Cedet.html
et de divers conseils j'ai créé le fichier ~/.emacs suivant :
;; Permet de limiter l'analyse de code au fichier courant ou au projet
courant.
;; Rajouter "unloaded system recursive" pour tout parser (beaucoup
plus long !)
(setq-mode-local c-mode semanticdb-find-default-throttle '(file local
project))
(setq-mode-local c++-mode semanticdb-find-default-throttle '(file
local project))
Après lancement d'Emacs, j'obtiens alors dans *Messages* ce qui suit,
qui contient des messages d'erreur concernant ede :
Loading /etc/emacs/site-start.d/50devhelp.el (source)...done
Loading /etc/emacs/site-start.d/50dictionaries-common.el (source)...
Loading debian-ispell...
Loading /var/cache/dictionaries-common/emacsen-ispell-default.el
(source)...done
Loading debian-ispell...done
Loading /var/cache/dictionaries-common/emacsen-ispell-dicts.el
(source)...done
Loading /etc/emacs/site-start.d/50dictionaries-common.el
(source)...done
Loading /etc/emacs/site-start.d/50eieio.el (source)...done
Loading /etc/emacs/site-start.d/50psvn.el (source)...done
Loading /etc/emacs/site-start.d/51ede.el (source)...done
Loading /etc/emacs/site-start.d/51speedbar.el (source)...done
Loading /etc/emacs/site-start.d/52semantic.el (source)...done
Loading /etc/emacs/site-start.d/53cedet-contrib.el (source)...done
Loading /etc/emacs/site-start.d/53cogre.el (source)...done
Loading /usr/share/emacs/site-lisp/cedet-common/cedet.el (source)...
"/usr/share/emacs/site-lisp/cedet-common/" added to `load-path'
Loading cl-macs...done
Setting up cedet...done
Setting up cogre...done
Setting up ede...
Loading ede...
!! File eieio uses old-style backquotes !!
Loading ede-speedbar...done
Loading ede...done
Setting up ede...done
Setting up eieio...done
Setting up semantic...
Loading derived...done
Loading regexp-opt...done
Setting up semantic...done
Setting up speedbar...done
Setting up cedet-contrib...done
Loading /usr/share/emacs/site-lisp/cedet-common/cedet.el
(source)...done
An error has occurred while loading `/home/toto/.emacs':
Symbol's function definition is void: ede-cpp-root-project
To ensure normal operation, you should investigate and remove the
cause of the error in your initialization file. Start Emacs with
the `--debug-init' option to view a complete error backtrace.
Il vient toujours un [no match] dans le mini-buffer.
J'ajoute que j'avais pris soin de créer un fichier texte vide :
"~/source/monsuperprojet/CMakeLists.txt" en supposant que cela
permettrait de faire fonctionner l'exemple.
Que faire pour que CEDET s'installe correctement et pour activer la
complétion automatique ?
Je viens de faire un grep dans tous les source de ede, et je n'ai pas trouvé de ede-cpp-root-project, ni d'ailleurs aucun symbol contenant à la fois (ede et (root ou cpp)).
Es-tu sûr que cette classe existe ?
À+
Vincent.
ptyxs a écrit :
Bonjour, Avec comme objectif premier de pouvoir disposer de la complétion automatique en C++ sous Emacs, je viens d'installer les paquets : - cedet-common - ede - cogre - eieio - speedbar - semantic que ma distribution Linux actuelle (Jaunty Ubuntu) met à ma disposition. Et, m'inspirant de A Gentle Introduction to CEDET http://xtalk.msk.su/~ott/en/writings/em … Cedet.html et de divers conseils j'ai créé le fichier ~/.emacs suivant :
;; Permet de limiter l'analyse de code au fichier courant ou au projet courant. ;; Rajouter "unloaded system recursive" pour tout parser (beaucoup plus long !) (setq-mode-local c-mode semanticdb-find-default-throttle '(file local project)) (setq-mode-local c++-mode semanticdb-find-default-throttle '(file local project))
Après lancement d'Emacs, j'obtiens alors dans *Messages* ce qui suit, qui contient des messages d'erreur concernant ede :
Loading /etc/emacs/site-start.d/50devhelp.el (source)...done Loading /etc/emacs/site-start.d/50dictionaries-common.el (source)... Loading debian-ispell... Loading /var/cache/dictionaries-common/emacsen-ispell-default.el (source)...done Loading debian-ispell...done Loading /var/cache/dictionaries-common/emacsen-ispell-dicts.el (source)...done Loading /etc/emacs/site-start.d/50dictionaries-common.el (source)...done Loading /etc/emacs/site-start.d/50eieio.el (source)...done Loading /etc/emacs/site-start.d/50psvn.el (source)...done Loading /etc/emacs/site-start.d/51ede.el (source)...done Loading /etc/emacs/site-start.d/51speedbar.el (source)...done Loading /etc/emacs/site-start.d/52semantic.el (source)...done Loading /etc/emacs/site-start.d/53cedet-contrib.el (source)...done Loading /etc/emacs/site-start.d/53cogre.el (source)...done Loading /usr/share/emacs/site-lisp/cedet-common/cedet.el (source)... "/usr/share/emacs/site-lisp/cedet-common/" added to `load-path' Loading cl-macs...done Setting up cedet...done Setting up cogre...done Setting up ede... Loading ede... !! File eieio uses old-style backquotes !! Loading ede-speedbar...done Loading ede...done Setting up ede...done Setting up eieio...done Setting up semantic... Loading derived...done Loading regexp-opt...done Setting up semantic...done Setting up speedbar...done Setting up cedet-contrib...done Loading /usr/share/emacs/site-lisp/cedet-common/cedet.el (source)...done
An error has occurred while loading `/home/toto/.emacs':
Symbol's function definition is void: ede-cpp-root-project
To ensure normal operation, you should investigate and remove the cause of the error in your initialization file. Start Emacs with the `--debug-init' option to view a complete error backtrace.
Il vient toujours un [no match] dans le mini-buffer.
J'ajoute que j'avais pris soin de créer un fichier texte vide : "~/source/monsuperprojet/CMakeLists.txt" en supposant que cela permettrait de faire fonctionner l'exemple.
Que faire pour que CEDET s'installe correctement et pour activer la complétion automatique ?
ÃDans A Gentle Introduction to CEDET, je lis ceci :
========== How to customize Semantic to work with C & C++ projects
To proper work of Semantic with С & C++ code is recommended to use the EDE package (work with projects, etc.). For these languages, EDE package defines special project type â ede-cpp-root-project, that provides additional information to Semantic, that will be used to analyze source code of your project.
To define a project, you need to use following code:
> (ede-cpp-root-project > Â "MonSuperProjet" > Â :name "Mon Super Projet" > Â :file "~/source/monsuperprojet/CMakeLists.txt" > Â :include-path '("/include" "../include"))
> ;; Permet de limiter l'analyse de code au fichier courant ou au projet > courant. > ;; Rajouter "unloaded system recursive" pour tout parser (beaucoup > plus long !) > (setq-mode-local c-mode semanticdb-find-default-throttle '(file local > project)) > (setq-mode-local c++-mode semanticdb-find-default-throttle '(file > local project))
> Après lancement d'Emacs,  j'obtiens alors dans *Messages* ce qui suit, > qui contient des messages d'erreur concernant ede :
> An error has occurred while loading `/home/toto/.emacs':
> Symbol's function definition is void: ede-cpp-root-project
> To ensure normal operation, you should investigate and remove the > cause of the error in your initialization file. Â Start Emacs with > the `--debug-init' option to view a complete error backtrace.
ÃDans A Gentle Introduction to CEDET, je lis ceci :
==========
How to customize Semantic to work with C & C++ projects
To proper work of Semantic with С & C++ code is recommended to use the
EDE package (work with projects, etc.). For these languages, EDE
package defines special project type â ede-cpp-root-project, that
provides additional information to Semantic, that will be used to
analyze source code of your project.
To define a project, you need to use following code:
> (ede-cpp-root-project
> Â "MonSuperProjet"
> Â :name "Mon Super Projet"
> Â :file "~/source/monsuperprojet/CMakeLists.txt"
> Â :include-path '("/include" "../include"))
> ;; Permet de limiter l'analyse de code au fichier courant ou au projet
> courant.
> ;; Rajouter "unloaded system recursive" pour tout parser (beaucoup
> plus long !)
> (setq-mode-local c-mode semanticdb-find-default-throttle '(file local
> project))
> (setq-mode-local c++-mode semanticdb-find-default-throttle '(file
> local project))
> Après lancement d'Emacs,  j'obtiens alors dans *Messages* ce qui suit,
> qui contient des messages d'erreur concernant ede :
> An error has occurred while loading `/home/toto/.emacs':
> Symbol's function definition is void: ede-cpp-root-project
> To ensure normal operation, you should investigate and remove the
> cause of the error in your initialization file. Â Start Emacs with
> the `--debug-init' option to view a complete error backtrace.
ÃDans A Gentle Introduction to CEDET, je lis ceci :
========== How to customize Semantic to work with C & C++ projects
To proper work of Semantic with С & C++ code is recommended to use the EDE package (work with projects, etc.). For these languages, EDE package defines special project type â ede-cpp-root-project, that provides additional information to Semantic, that will be used to analyze source code of your project.
To define a project, you need to use following code:
> (ede-cpp-root-project > Â "MonSuperProjet" > Â :name "Mon Super Projet" > Â :file "~/source/monsuperprojet/CMakeLists.txt" > Â :include-path '("/include" "../include"))
> ;; Permet de limiter l'analyse de code au fichier courant ou au projet > courant. > ;; Rajouter "unloaded system recursive" pour tout parser (beaucoup > plus long !) > (setq-mode-local c-mode semanticdb-find-default-throttle '(file local > project)) > (setq-mode-local c++-mode semanticdb-find-default-throttle '(file > local project))
> Après lancement d'Emacs,  j'obtiens alors dans *Messages* ce qui suit, > qui contient des messages d'erreur concernant ede :
> An error has occurred while loading `/home/toto/.emacs':
> Symbol's function definition is void: ede-cpp-root-project
> To ensure normal operation, you should investigate and remove the > cause of the error in your initialization file. Â Start Emacs with > the `--debug-init' option to view a complete error backtrace.