CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to support@ccsinfo.com

CCS IDE writing files from prev project into new project?

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
allenhuffman



Joined: 17 Jun 2019
Posts: 537
Location: Des Moines, Iowa, USA

View user's profile Send private message Visit poster's website

CCS IDE writing files from prev project into new project?
PostPosted: Fri Feb 21, 2020 10:15 am     Reply with quote

Has anyone seen the issue where, if you switch from one project to another, the new project gets files written into it that are names from the old project?

For example:

Projects\OLD
boot.c
boot.h
boot.ccspjt

If I have that open, then I switch to a secondary project:

Projects\NEW
main.c
main.h
main.ccspjt

...inside the NEW folder I see some "boot.xxx" files written there.

Inspecting those files (in the source locaton, and some in the Output folder if I have one specified in Project Options), I see that the contents match those I expect from "main.xxx" -- but the file names are for the old project.

I've seen it write files like .cof, .esym, .hex, .lst, .STA, .sym and .tre as well as the main .ccspjt and .err files. But, the contents of those files (looking at them now) contain the "new" project stuff, but with a bad name.

I wonder if this is also related to issues where a Clean does not work at all, or only deletes some (maybe a bug where it's trying to use the previous project root name and clean those files).

Anyone else see this all the time? All three of us here see variations of this, so we have started closing all tabs and shutting down CCS IDE, then double-clicking the new project to open it. I think that helps.
_________________
Allen C. Huffman, Sub-Etha Software (est. 1990) http://www.subethasoftware.com
Embedded C, Arduino, MSP430, ESP8266/32, BASIC Stamp and PIC24 programmer.
http://www.whywouldyouwanttodothat.com ?
Ttelmah



Joined: 11 Mar 2010
Posts: 19245

View user's profile Send private message

PostPosted: Sat Feb 22, 2020 1:33 am     Reply with quote

I've just opened a twenty file project, then created a new project in
a separate directory and switched to this. Nothing at all transferred.
Switched backwards and forwards a couple of times. Still no transfer.

Wondering if you might be running into an issue with Windows directory
virtualisation. In Windows, if you attempt to write to a directory for
which you do not have write permission. It creates a 'virtual' copy of the
directory and routes your writes to this. I've seen a lot of program issues
when this happens. This is 'VirtualStore'.
<https://answers.microsoft.com/en-us/windows/forum/windows_7-windows_programs/please-explain-virtualstore-for-non-experts/d8912f80-b275-48d7-9ff3-9e9878954227>
So step back, and make sure that the directory 'tree' in which your code
is kept belongs to your user, and that the permissions are set to give
read/write on this.
allenhuffman



Joined: 17 Jun 2019
Posts: 537
Location: Des Moines, Iowa, USA

View user's profile Send private message Visit poster's website

PostPosted: Tue Feb 25, 2020 9:14 am     Reply with quote

I'll look at that. We see this behavior on two Windows 10 machines, and on this Windows 7 machine I have.

It's highly reproducable here, even with the 5.093, but I haven't worked out a pattern to what causes it.

For instance, if I am in "Bootloader" project then switch to "Test", I will oten see "Bootloader.*" files written into the Test directory. Inspecting those files, though, looks like they contain Test project source.

It's not 100%, but I'm pretty sure it happens daily.
_________________
Allen C. Huffman, Sub-Etha Software (est. 1990) http://www.subethasoftware.com
Embedded C, Arduino, MSP430, ESP8266/32, BASIC Stamp and PIC24 programmer.
http://www.whywouldyouwanttodothat.com ?
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group