Author Topic: C::B automatically deletes cpp file with the new name file  (Read 5640 times)

Offline Karsa

  • Single posting newcomer
  • *
  • Posts: 2
HI, I'm Indonesian and beginner in programming, and for the english too. So, I'm sorry for it.

I'm curious, why my codeblock always deleted file that I save with the new name file (Save As ...).
Example :
I've opened exercise1.cpp, and save it with the new name exercise2.cpp, and then I closed the codeblock without making any changes after that. But, when I search in the directory, I've found nothing.
So, I was trying the same method again, but I didn't closed the C::B, but minimize it, and it gives me warning
"FILE CHANGED! C:\exersices2.cpp has been deleted, or is no longer available..

This matter can happened in normal ways, like if we open a file, then without closing the C::B, but minimize it, we deleted the file, and then the warning happened.

I've tried various ways, like uninstalled it with control panel, or RevoUninstaller, but it gives nothing.
So please help me.
Thanks

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7588
    • My Best Post
Re: C::B automatically deletes cpp file with the new name file
« Reply #1 on: May 14, 2013, 05:04:37 pm »
I think CB is refusing to save an unmodified file; it just looks like it was saved.
After a little bit, CB realizes the file does NOT exist.

I have NOT had the time to track down when this started happening.

I suggest posting the CB version number and your Operating System info.

I had the issues on Windows 7 32 bit, and I think it was CB 12.11; but, it might be a different version of CB.
Edit: Just confirmed the CB 12.11 has this bug for me. Never been positive that it is not a windows system settings.
But, I am leaning more and more to a CB bug.

Tim S.
« Last Edit: May 14, 2013, 05:10:08 pm by stahta01 »
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
Re: C::B automatically deletes cpp file with the new name file
« Reply #2 on: May 14, 2013, 05:57:48 pm »
stahta01: do you see this bug in the latest nightly?
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7588
    • My Best Post
Re: C::B automatically deletes cpp file with the new name file
« Reply #3 on: May 14, 2013, 10:18:47 pm »
stahta01: do you see this bug in the latest nightly?

Will test it; downloading it now.

Tim S.
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7588
    • My Best Post
Re: C::B automatically deletes cpp file with the new name file
« Reply #4 on: May 14, 2013, 11:42:59 pm »
stahta01: do you see this bug in the latest nightly?

Will test it; downloading it now.

Tim S.

Did NOT see the problem with downloaded Nightly SVN 8982.

Tim S.
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline Karsa

  • Single posting newcomer
  • *
  • Posts: 2
Re: C::B automatically deletes cpp file with the new name file
« Reply #5 on: May 15, 2013, 11:26:04 am »
stahta01 :
Yep, I think the same too. C::B refuses to save the unmodified file if we do the Save As condition, because when I save it with other  namefile then I make some changes, C::B will do the save.
My C::B is version 12.11, Windows 7 Ultimate 64 bit.

Can't find any solution for this. Why this is happened?  ???
because in other computer works fine, except mine.