Jump to content
shedbuilder

C File Dissapears From Sourceboostide Workspace

Recommended Posts

Hello all,

 

I'm a relative newcomer to BoostC (though have been programming C for many years). This is my first positing on this forum, so please be gentle. I've had a search through the forum for problems similar to this, and can't find any, so my apologies if it's "pilot error" and I'm doing something stupid. Here goes...

 

SourceBoostIDE Version 7.03

 

I create a fresh workspace named "ws".

 

To the workspace I "Add Project To Workspace / New Project...". In the dialog, I specify the filename "pr001"

 

In the "New Project" dialog I specify "with empty source file" & "BoostC" as toolsuite.

 

The IDE does its magic, and I get the following tree appearing in the "workspace" window:

 

pr001.__c

pr001.c

Output

Debug/pr001.asm

Debug/pr001.lst

Debug/pr001.hex

Debug/pr001.map

 

I edit the source (pr001.c) file to give it something to do in main, inserting a while(1) loop which just messes with a few bits of portb (just a precaution against that loop being optimised out by the compiler etc.). I also set the "Settings/Target..." to "PIC16F627" (though that makes no difference to the outcome below). It all compiles to a "success" message, and the world is just as it should be. Nothing untoward has happened yet. I do a "File/Save All", and quit the IDE.

 

Here's the problem... When I reload the workspace, the pr001.c file (The 2nd line in file list above) isn't shown. in the workspace window. Furthermore, the compile now fails with "Couldn't find function/label by name:main".

 

The pr001.__c file is as follows, and looks OK to me (it doesn't change between the working to the broken versions of my program):

 

[settings]

Active Compiler=BoostC

Target=PIC16F627

[Files]

File0=pr001.c

 

To me it looks like the IDE is not correctly reading the .__c files as I reload the workspace.

 

Now here's the bit I really don't understand. The above was working for me a short while ago. Now I can't get it to work at all. Maybe I've inadvertently knocked a setting or something?

 

I've done the usual stuff of reinstalling / clearing out the registry etc. This is all on MS Vista.

 

Any help would be very much appreciated. Thank you in advance.

Share this post


Link to post
Share on other sites

You are not alone here. I too have problems with 7.03. Workspaces not opening up, missing source files.

 

I think I will be dropping back to 7.02.

 

Cheers

 

Reynard

Share this post


Link to post
Share on other sites

You lost the Count value from project file:

 

[Files]
Count=1
File0=pr001.c

 

Regards,

Pavel

 

PS: Code inside IDE that handles projects and workspaces was rewritten between 7.02 and 7.03. That's the reason you see bugs like this. We are very interested to fix those and appreciate any help. If you know how to reproduce a problem please let us know. If we can reproduce it we will fix it.

Share this post


Link to post
Share on other sites
You lost the Count value from project file:

 

[Files]
Count=1
File0=pr001.c

 

Hi Pavel,

 

Many thanks for the extremely speedy response & the accurate diagnosis.

 

Hand editing a "Count=" line into the file fixes it and the file comes back. It doesn't seem to get maintained if I add additional files to that, i.e if my project had a Count=3 & I add a new one, then "Count" remains at 3.

 

My project is relatively static in terms of number of files, so I can workaround with the hand editing of "Count=" lines.

 

Thanks again, & best regards

Paul

Share this post


Link to post
Share on other sites
...Hand editing a "Count=" line into the file fixes it and the file comes back. It doesn't seem to get maintained if I add additional files to that, i.e if my project had a Count=3 & I add a new one, then "Count" remains at 3...

 

The Count number shouldn't be edited by hand. IDE takes care of it when new files are added to a project or removed from it. Make sure you close workspace (or exit IDE) to see the Count value changing. If it does not change please zip the project directory and email it along with a full path to this project location to support@sourceboost.com. We'll check if we can reproduce and fix the problem.

 

Regards,

Pavel

Share this post


Link to post
Share on other sites
...Hand editing a "Count=" line into the file fixes it and the file comes back. It doesn't seem to get maintained if I add additional files to that, i.e if my project had a Count=3 & I add a new one, then "Count" remains at 3...

 

The Count number shouldn't be edited by hand. IDE takes care of it when new files are added to a project or removed from it. Make sure you close workspace (or exit IDE) to see the Count value changing. If it does not change please zip the project directory and email it along with a full path to this project location to support@sourceboost.com. We'll check if we can reproduce and fix the problem.

 

Regards,

Pavel

 

Hi Pavel,

 

It reliably doesn't update count for me on 7.03, and equally reliably doesn't add a "Count=" line for the first source file in a new project. It's likely (though I wouldn't swear to it) that the projects in my workspace that do show source files were generated in an earlier version than 7.03, so it may well be that 7.03 has never updated the "Count=" line for me. I will forward you on on the zipped project diectory as you say.

 

Once again, thank you for your continued attention.

 

Best regards,

Paul

Share this post


Link to post
Share on other sites

Hi Pavel,

 

As Paul says, the file count is not being updated when files are added to the project (.__c)

If I manually edit the file count then all is OK when I reopen the project.

 

On a similar note, the Active Config is not being updated when I switch between Debug/Release. Works on manual edit.

 

In the workspace file (.__w) the Active flag is not being changed when I select Set 'xxx' as active project.

With only a single project in the workspace it should be by default the active project.

 

I find that the project and workfiles have their date stamp change but no change of content occured.

 

In a nut shell files look like they are not being updates when settings and parameters are changed.

 

Cheers

 

Reynard

Share this post


Link to post
Share on other sites

Hi All,

 

SourceBoost V7.04 (now released) should fix these issues.

 

Regards

Dave

Share this post


Link to post
Share on other sites

Join the conversation

You are posting as a guest. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

×
×
  • Create New...