CEDET compatibility with Emacs 24.5 - emacs

After I have updated my Emacs from 24.3 to 24.5 version, my 1.1 version of cedet (highlight, auto completion and summary function) has stopped working for c mode. When I trying to load these semantic mode individually, I got the following messages:
Buffer myfile.cpp was not set up for parsing
I think someone has asked a similar question in the past:
cedet-semantic error "Idle Service Error semantic-idle-summary-idle-function - Arithmetic error" when parsing linux kernel file "jiffies.h"
However, I am not sure which snapshot version he has downloaded & how to install a snapshot CEDET version. Can someone please help me with that?

After struggled for a while, I figured out something trivial but hard to see. Hopefully this answer will help others who has experienced the same problem.
When I started to use emacs version 24.3 I didn't know the Cedet version 2.0 was already a built-in package at that time. I downloaded Cedet 1.1 version from
Cedet SourceForge website.
And configured that according to some tutorial online by loading my downloaded 1.1 cedet.el file.
Surprisingly this Cedet 1.1 package is still compatible with emacs 24.3 version. Unfortunately this is not the case for emacs 24.5 version, the semantic mode encountered some problem with c mode. Therefore the best solution is to switch back to the built-in Cedet 2.0 version.
If you have used the older version of Cedet, it's possible that the old saved .semanticdb files are not compatible with latest Cedet semanticdb. You can do
rm -rf ~/.semanticdb/
So the new version semanticdb can create and use the new version of semanticdb (my friend helped me with that subtle problem so I can get the built-in Cedet 2.0 up and running).

Related

Syntax highlighting in Astro Nvim

I installed the Astro Vim package. Syntax highlighting should work out of the box, but it doesn't. As soon as I write :setfiletype javascript highlighting works immediately. Is there any way to enable automatic file type detection? I executed the LspInstall and TSInstall commands after installation
Now the editor looks like this:
You are likely using Nvim v0.8.0 (released 3 days ago), which introduced several breaking changes and is incompatible with AstroNvim v1.10.0 (the current stable version; refer to this discussion).
AstroNvim v2.0 was pushed to the project's nightly branch and will support the new Nvim release; however, seeing as it is currently unstable, for now your best option would be to downgrade to Nvim 0.7.2.

Emacs package versions

After installing Emacs BBDB from Melpa on GNU Emacs 24.3.1 (i386-mingw-nt6.1.7601) for Windows, if I run M-x bbdb-version I get:
BBDB version #PACKAGE_VERSION# (#PACKAGE_DATE#)
How can I know if I am using the new version 3 of BBDB?
This is a known issue, the author uses a build system to define and replace these names with their correct values, but melpa does not support making changes to the upsteam repo.
The truth is, if you just downloaded it from melpa, then it is safe to say you are running version > 3. If you really want to be sure, do C-hfbbdb-with-print-loadably and see if that function is defined, it was added to bbdb in one of the most recent commits to the git repo and well past the last release commit of version 3.1.2.
See also: https://github.com/milkypostman/melpa/issues/1470

Using CEDET in emacs 24.3.1

I learned that CEDET comes built in emacs 24.3.1 which I have installed.
Unfortunately, all tutorials online instruct you to install CEDET and provide you with config files that refer and load the installed packages and files.
How is it possible to configure the built in CEDET and use it without any external installation?
I am not sure how to take advantage of the built in version.
It's circa Emacs 23, but Alex Ott's A Gentle Introduction to CEDET still looks relevant to the built-in version? (it covers both versions).

js2-refactor from melpa: Package `emacs-24.1' is unavailable

I'm on GNU Emacs 24.3.50.1 (x86_64-pc-linux-gnu, GTK+ Version 3.6.0), but when I try to use package (melpa) to install js2-refactor I get this odd error:
package-compute-transaction: Package `emacs-24.1' is unavailable
Any ideas what this could be about? Actually, this might be coming from a dependency of js2-refactor: js2-mode. It gives the same error.
The reason for this can be a lingering old version of package.el in your load path. package.el was officially included in GNU Emacs 24, and the downloadable file for earlier Emacs versions doesn't support dependencies on built-in packages (emacs-24.1 is considered a built-in package here).
Type M-x locate-library RET package to find where Emacs is getting its package.el from. The path it shows should end with lisp/emacs-lisp/package.elc. If it doesn't, try getting rid of the indicated file (or changing the load path so Emacs doesn't find it).
I solved a similar issue by uninstalling and reinstalling emacs (macOS/homewbrew).

use cscope as semanticdb database back end in emacs

everone, I use cscope as semanticdb back end in emacs, it hints me that "Version of CScope is 15.5. Need at least 16.0",but the newest version of CScope is 15.7a, what's the problem?
Which version of CEDET are you using? I see in current bzr snapshot, and see that minimal required version is 15.7. The same is for 1.1 release. Maybe you need to upgrade to 1.1?