After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 572805 - Cannot generate new C++ class
Cannot generate new C++ class
Status: RESOLVED FIXED
Product: anjuta
Classification: Applications
Component: Plugins: class-gen
2.24.x
Other All
: Normal normal
: ---
Assigned To: Armin Burgmeier
Depends on:
Blocks:
 
 
Reported: 2009-02-23 01:54 UTC by Mjumbe Wawatu Ukweli
Modified: 2009-02-25 12:24 UTC
See Also:
GNOME target: ---
GNOME version: 2.23/2.24



Description Mjumbe Wawatu Ukweli 2009-02-23 01:54:35 UTC
Please describe the problem:
I am using Anjuta with Ubuntu 8.10.  I cannot use the C++ class generator to create a new class in my project.  The problem is the same as the one described here: https://bugs.launchpad.net/ubuntu/+source/anjuta/+bug/328079

Steps to reproduce:
I am using Anjuta with Ubuntu 8.10 and I have found a problem with the creation of a new C++ class.

1. I opened Anjuta and generated a new project:
    New->Project
2. Following the wizard I created a generic c++ application
3. In the wizard the destination directory was set to a newly generated dir
4. After creating the project I add a new c++ class:
    New->C++/GObject Class
5. Giving it a name and press Create
6. I select the target to which I want to add it.

Actual results:
An error appears: Failed to execute autogen: Could not open file "/home/mjumbewu/file:///home/mjumbewu/Programming/compbio/src/sequence-aligner.hpp": No such file or directory
Also, the source file names "sequence-aligner.cpp" and "sequence-aligner.hpp" are added to the target, but the files are never created in the directory.

Expected results:
A new class should be created in my project

Does this happen every time?
Yes

Other information:
Comment 1 Johannes Schmid 2009-02-24 23:29:35 UTC
Hmm, works for me (with svn trunk, could be a problem in 2.24.x). Which target did you choose?
Comment 2 Mjumbe Wawatu Ukweli 2009-02-25 03:08:32 UTC
I chose the main target for the project (in this case 'compbio').  It's version 2.24.1, if that helps.
Comment 3 Johannes Schmid 2009-02-25 07:53:46 UTC
OK, that works in svn trunk. Would be nice if you could check with 2.25.902 or at least when a new Ubuntu package is out.

Thanks!
Comment 4 Mjumbe Wawatu Ukweli 2009-02-25 12:22:45 UTC
I cobbled together a deb and it turns out that adding classes does work in 2.25.902.  Comes with a few other niceties too :).  Hopefully my deb will be gracefully upgraded with the next Ubuntu upgrade.

Thanks much.
(someone should let those fine bug-filers over at launchpad know too)
Comment 5 Johannes Schmid 2009-02-25 12:24:35 UTC
Thanks a lot for checking!

This problem has been fixed in the development version. The fix will be available in the next major software release. Thank you for your bug report.