Bug #19243 2013-12-30 20:08

getfunky

Error when I try to save project in Dropbox

I am using code::blocks to work on C++, but when I try to finish configuring the project, and try to put a Dropbox directory as a save location, I get the message:

Couldn't save project

C:\Users\Me\Dropbox\CPP\fubar\fubar.cbp

(Maybe the file is write-protected?)

I have checked the file fubar.cbp and surprisingly it was created correctl, and is not read-only. When I close the project the layout file is saved correctly, it seems.

When I save in a non-Dropbox folder, everything works fine, no error message is given, but by my beginner eye I do not see any difference in the folders/files in the two cases.

I am working in Windows 7, have already set all the permissions to undo read-only, so none of my files are read-only. Am working with C::B 13.12.

Category
Application::Error
Group
Platform:Windows
Status
Open
Close date
 
Assigned to
 
getfunky 2013-12-30 20:10

Note I have also asked about this at the Dropbox forum:

https://forums.dropbox.com/topic.php?id=109724

getfunky 2013-12-30 20:13

Finally, here is the 'cbp.save-failed' file created when the error is thrown:

<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>

<CodeBlocks_project_file>

<FileVersion major="1" minor="6" />

<Project>

<Option title="checkit" />

<Option pch_mode="2" />

<Option compiler="gcc" />

<Build>

<Target title="Debug">

<Option output="bin/Debug/checkit" prefix_auto="1" extension_auto="1" />

<Option object_output="obj/Debug/" />

<Option type="1" />

<Option compiler="gcc" />

<Compiler>

<Add option="-g" />

</Compiler>

</Target>

</Build>

<Compiler>

<Add option="-Wall" />

<Add option="-fexceptions" />

</Compiler>

<Unit filename="main.cpp" />

<Extensions>

<code_completion />

<envvars />

<debugger />

<lib_finder disable_auto="1" />

</Extensions>

</Project>

</CodeBlocks_project_file>

ollydbg 2014-02-28 06:30

"try to put a Dropbox directory as a save location", I don't understand this. Sorry, I don't use dropbox, but you should better state how to reproduce this bug, thanks. Looks like an Dropbox issue? Because they may lock that file.

getfunky 2014-03-01 03:07

ollydbg: when I save a new project within my dropbox folder, I get the error I reported.

It may be a problem with Dropbox, but one that never happens with any other item I have ever saved at Dropbox (which is where I save all my work in every application I use). So DB and CB seem to be not playing nice together in a way that only is a problem with code blocks and no other program I have ever used.

Someone at the Dropbox site suggested the following:

"Eric T. : its likely a timing issue, when the file is saved DB get told about it, and opens the file to check for changes. If the orginal app attempts to open the file at that exact time, it can be denied.

I would expect the app is saving the file, closing the file, pausing to flush to disk (or is up to other mystery things), opening the file, comparing the file, and saying all done when it matches.

The error is likely that it cant open the file to compare it. as it has by chance collided with the small window of time DB open the file for. "