Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Emacs 23.2 with ECB 2.40 | File error: Cannot open load file, semantic-ctxt

Tags:

emacs

elisp

How I can use the Emacs Code Browser v2.40 with my fresh installed Emacs 23.2 (Debian distro)

In my init.el I have:

(semantic-mode)
(add-to-list 'load-path
  "~/.emacs.d/plugins/ecb-2.40")
(require 'ecb)

When I run Emacs, I get an Error message on statrup:

File error: Cannot open load file, semantic-ctxt

I have read CEDET suite is build in from Emacs 23, so I don't have installed it.

like image 231
astropanic Avatar asked Jan 22 '23 20:01

astropanic


1 Answers

This did the trick for me with 2.40:

(require 'semantic/analyze)
(provide 'semantic-analyze)
(provide 'semantic-ctxt)
(provide 'semanticdb)
(provide 'semanticdb-find)
(provide 'semanticdb-mode)
(provide 'semantic-load)

(add-to-list 'load-path "~/ecb-2.40")
(require 'ecb)

I haven't been using it for long, but the obvious features seem to work.

UPDATE: or you can just use the latest CVS snapshot, it's updated for integrated CEDET.

like image 179
Dmitry Avatar answered Jan 30 '23 21:01

Dmitry