Not all files are saved after close/re-open project

If you are using wxDev-C++ for your wxWidgets design, please ask your questions here instead of in IDE Related.
kathbeau
Knows some wx things
Knows some wx things
Posts: 27
Joined: Fri Nov 28, 2014 6:30 pm

Not all files are saved after close/re-open project

Postby kathbeau » Mon Dec 22, 2014 4:18 pm

I find that when I create a project that adds new units, everything is in the Project Inspector, everything builds and runs... until I close the project and subsequently re-open it.

For example, the "Movie Catalogue" tutorial. I followed the tutorial, everything works. I saved the project using File | Save All and closed the project.

Upon re-opening it, only the files created by the wizard (MovieCatalogue*.*) appear in the Project Inspector, and the project will not build because files are missing. I have to go to Project | Add to Project and re-add AllMovies.h, AllMovies.cpp, Movie.h and MovieTableViewer.h. Now the files appear in the Project Inspector, and the project builds and runs. But when I close/re-open the project, the files created by me (and not by the wizard) are once again missing.

I have also tried File | Save Project As..., but the result is the same.

What am I doing wrong?

Incidentally, I can see the files when viewing the .dev in a text editor. I tried moving the [Unit n] sections for the extra files, and re-opening the project with that. It did no harm, but did no good, either.

Thanks for your help,
Kathleen

jgrzybowski
Earned some good credits
Earned some good credits
Posts: 113
Joined: Sat Sep 24, 2011 9:32 pm
Location: Poland

Re: Not all files are saved after close/re-open project

Postby jgrzybowski » Mon Dec 29, 2014 9:46 pm

Can you write what kind of version of wxDev are you using?
Regards, Jarek

billsrepairs
In need of some credit
In need of some credit
Posts: 1
Joined: Fri Nov 27, 2015 4:40 am

Re: Not all files are saved after close/re-open project

Postby billsrepairs » Fri Nov 27, 2015 4:45 am

I am having the same problem with wxDev cpp 7.4.2.569
If I add HID.c to the project under project add to project it will not save after closing and reopening

jgrzybowski
Earned some good credits
Earned some good credits
Posts: 113
Joined: Sat Sep 24, 2011 9:32 pm
Location: Poland

Re: Not all files are saved after close/re-open project

Postby jgrzybowski » Tue Dec 15, 2015 4:13 pm

I use version 7.3.1.3 of wxDevC++ on Windows 8.1. I can confirm there is not any problems like you have described above. Regards, Jarek

Tony0945
Experienced Solver
Experienced Solver
Posts: 86
Joined: Wed Oct 21, 2009 4:02 pm

Re: Not all files are saved after close/re-open project

Postby Tony0945 » Mon Jan 25, 2016 4:29 pm

Same problem with 7.4.2.569

jgrzybowski
Earned some good credits
Earned some good credits
Posts: 113
Joined: Sat Sep 24, 2011 9:32 pm
Location: Poland

Re: Not all files are saved after close/re-open project

Postby jgrzybowski » Mon Jan 25, 2016 7:03 pm

You can try to update your DEV file manually in some text editor. You need to add couple lines for each additional file, example:

Code: Select all

[Unit11]
FileName=NameOfYourAdditionalFile.h
CompileCpp=1
Folder=
Compile=1
Link=1
Priority=1000
OverrideBuildCmd=0
BuildCmd=

Or try to use older version. Regards, Jarek
Attachments
dev_file.png
dev_file.png (17.07 KiB) Viewed 637 times

Tony0945
Experienced Solver
Experienced Solver
Posts: 86
Joined: Wed Oct 21, 2009 4:02 pm

Re: Not all files are saved after close/re-open project

Postby Tony0945 » Tue Jan 26, 2016 1:22 am

I found that the unit references i.e. [Unit 21] were being made when files were added to the project, but the UnitCount under [Project] was not.
Editting the .dev with wordpad to ensure that UnitCount matched the unit references, fixed the problem, albeit that it is a kludge.


Return to “wxDev-C++”

Who is online

Users browsing this forum: No registered users and 1 guest