Cannot add features via menu option

3 messages Options
Embed this post
Permalink
Joachim Baran

Cannot add features via menu option

Reply Threaded More More options
Print post
Permalink
Hello!

I am new to Eiffel, so my problem might be a trivial one.

When I add a feature by hand, then it is correctly displayed in the
'Features' window after compiling the class. However, when I try to
add a feature by clicking on 'Create a new feature' in the 'Features'
window or when I select 'New Feature...' under the 'Tools' menu, then
I only get an error message popping up in a new window, saying: "The
text of this class could not be modified.".

When I searched the forum, I saw that someone else had the same
problem (topic title "'Tools' -> 'New feature' wizard does not work"),
but that was with EiffelStudio 6.3. I am using EiffelStudio 6.4.

Thanks,
Joachim

--
B.1079 Michael Smith Building
Faculty of Life Sciences
The University of Manchester
Oxford Road
Manchester
M13 9PT
United Kingdom
Paul Bates [ES]

Re: Cannot add features via menu option

Reply Threaded More More options
Print post
Permalink
This was a bug in the 6.4 release. It has to do with migrating from an older syntax to a newer one. There are two solutions for you. First (recommended) is you install the development versions of 6.5 located at http://sourceforge.net/projects/eiffelstudio/files/. Alternatively, if you can't or don't feel comfortable using a developmental release, you'll need to use the keyword 'indexing' in place of the keyword 'note' in the classes where you need to add a feature.

The only issue with this latter option is that you are using deprecated syntax, which may be removed in the future. Saying that, EiffelStudio does come with a syntax updater tool ($ISE_EIFFEL/tools/spec/$ISE_PLATFORM/bin) which can be used to migrate your code automatically when switching to a 6.5 final release.

I hope this helps,
Paul.

--- In [hidden email], Joachim Baran <joachim.baran@...> wrote:

>
> Hello!
>
> I am new to Eiffel, so my problem might be a trivial one.
>
> When I add a feature by hand, then it is correctly displayed in the
> 'Features' window after compiling the class. However, when I try to
> add a feature by clicking on 'Create a new feature' in the 'Features'
> window or when I select 'New Feature...' under the 'Tools' menu, then
> I only get an error message popping up in a new window, saying: "The
> text of this class could not be modified.".
>
> When I searched the forum, I saw that someone else had the same
> problem (topic title "'Tools' -> 'New feature' wizard does not work"),
> but that was with EiffelStudio 6.3. I am using EiffelStudio 6.4.
>
> Thanks,
> Joachim
>
> --
> B.1079 Michael Smith Building
> Faculty of Life Sciences
> The University of Manchester
> Oxford Road
> Manchester
> M13 9PT
> United Kingdom
>


Joachim Baran

Re: Re: Cannot add features via menu option

Reply Threaded More More options
Print post
Permalink
Hi!

2009/9/16 pa_bates80 <[hidden email]>
> This was a bug in the 6.4 release. [...]
I have replaced 'note' by 'indexing' and it works now.

Thanks for the quick reply!

BW,
Joachim

--
B.1079 Michael Smith Building
Faculty of Life Sciences
The University of Manchester
Oxford Road
Manchester
M13 9PT
United Kingdom