Developer forums (C::B DEVELOPMENT STRICTLY!) > Development

Project File Corruption (reproducable)

<< < (2/2)

troels:

--- Quote from: gmb300 on September 06, 2007, 09:05:02 pm ---I've narrowed the steps down.

--- End quote ---
This happens on Windows too (following the steps -> empty project)
/Troels

gmb300:
New Set of Steps to Reproduce

1). Open fresh codeblocks
2). File -> New -> Project
3). Create console application
4). Reasonable defaults are okay
5). Project -> Properties
6). Click Build Targets Tab
7). Set Type to 'Dynamic library'
8). Uncheck the box Auto-generate filename extension
9). Set Output Filename to 'bin/Debug/testcb.dll'
10). Click OK
11). File -> Save Project
12). Click 'Rebuild' on the toolbar
13). File -> Close Project
14). File -> Open ... The project file does not exist!

gmb300:
The problem is with Clean() ing, CodeBlocks thinks the project file is a static library. So C::B adds the project file to the list of files to be deleted.

Pseudo-Code:

if (project_target_type == ttDynamicLib &&
    m_PrefixGenerationPolicy == tgfpPlatformDefault &&
    m_ExtensionGenerationPolicy == tgfpNone)
  then
    call DirectCommands::GetTargetCleanCommands()
      return List_of_Files_To_Be_Deleted(Object Files, Project File)

Biplab:
Bug confirmed. Thanks for the report. Hopefully we'll be able to fix this soon. :)

Biplab:
Fix committed in revision 4435. Thanks for pointing this nasty bug. :)

Navigation

[0] Message Index

[*] Previous page

Go to full version