On 04/20/2012 08:53 AM, Jim Ford wrote:
> On 19/04/2012 12:40, Eric M. Ludlam wrote:
>> 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
>
> Thanks for the reply, Eric.
>
> I 'Cut the Gordian Knot' and installed a v24 snapshot, rather than try
> to get 23.3.1 working on the laptop.
>
> It's a massive improvement for writing code and initially I was able
> to compile and upload to an Arduino OK.
>
> Initially it worked fine, but although I now can still compile, I
> can't get the Arduino stuff to work - I've lost the menu items for
> uploading and showing a serial terminal. This appears to have happened
> after an abortive attempt to get ecb-2.40 to work.
Hi Jim,
I had similar problems and was puzzled, but discovered that the
arduino-mode had a bug in it that hung when examining include files that
used ""... sometimes. That prevented EDE from loading, and thus the
project menu would get scuttled.
Just do a revert-buffer, or M-x c++-mode and it will fix it for the
short term. Not sure if this bug was fixed in arduino-mode yet though.
Eric
|