User forums > Using Code::Blocks
Bug Report: [#18755] C::B hangs for 20 seconds while opening large project...
MortenMacFly:
--- Quote from: MortenMacFly on October 27, 2012, 08:53:37 pm ---- file is immediately broken in project tree (although the "tree path" would be OK)
--- End quote ---
BTW: It seems there are two errors in that case:
- assume project on C:\Folder\project.cbp
- assume a file on \\server\folder\file.cpp
--> the file's absolute path is constructed from the common top level path plus the file's ("single slashed") UNC path like that:
C:\Folder\server\folder\file.cpp
--> the relative path is correct though:
\\server\folder\file.cpp
I'll commit a patch that will help to inspect what's going on in a minute...
MortenMacFly:
--- Quote from: MortenMacFly on October 27, 2012, 08:53:37 pm ---Unfortunately already the first trial fails miserably:
--- End quote ---
3rd post on that topic:
The rest seems to work well:
- saving project above/below source tree
- saving project on different drive
- having project files scattered across several drives
What does not work (and has very strange side-effects) is the following layout:
- project on/in C:\folder\project
- source files in C:\folder, C:\folder\src
- source files in D:\other_folder
--> now try to save the project under D:\other_folder\prj
--> weird project tree layout. including files with one letter, not existing.
--> seems the file name get truncated according the length of the folder
--> maybe its related to that check:
if ( tmpbaseF.GetDirCount() < base.GetDirCount() && ???
Jenna:
--- Quote from: MortenMacFly on October 27, 2012, 09:17:18 pm -----> maybe its related to that check:
if ( tmpbaseF.GetDirCount() < base.GetDirCount() && ???
--- End quote ---
This should only be reached if the projects base-path is on the same volume as the file being processed.
If this worls correctly, this can not be the cause.
Maybe the base-path is not correctly set after saving the project on different drive ?
rickg22:
Suddenly I'm starting to feel guilty for opening this can of worms :-[
I'm so sorry!!! (But still, I don't want to go back to that 20-second delay on project opening)
MortenMacFly:
--- Quote from: rickg22 on October 29, 2012, 05:04:10 am ---Suddenly I'm starting to feel guilty for opening this can of worms :-[
--- End quote ---
Its easy to re-recover: Come up with a patch that works! :-)
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version