User forums > Using Code::Blocks
Can I make C::B portable?
Squeller:
OK, I've put the contents of %appdata%\codeblocks\ into my codeblocks directory. Those are:
--- Code: ---cbKeyBinder04v110.ini
cbKeyBinder04v19.ini
cbKeyBinder10v111.ini
cbKeyBinder10v111.ini.bak
codesnippets.xml
default.conf
DragScroll.ini
--- End code ---
...and a "share" folder with subfolders which are all empty. After deletion of the %appdata%\codeblocks\share\ folder and any startup of c::b, I get the error message:
"Can not enumerate files in directory U:\Dokumente und Einstellungen\User\Anwendungsdaten\codeblocks\share/codeblocks/plugins (error 3: System can't find path)"
Why does it want that empty directory?
Also, if finding all necessary config files in $(codeblocks) dir, why does it create these under %appdata% again? (Though they also appear in the codeblocks directory)?
--- Code: ---share\ (it creates this dir again, but not the plugins subfolder)
cbKeyBinder10v111.ini
codesnippets.xml
--- End code ---
darus:
I can't make it work too.
When I create an empty default.conf in CB folder and run CB, it pops an exception dialog:
--- Code: ---The application encountered an error at sdk\configmanager.cpp, on line 131.
The error message is:
TinyXML error: Error document empty.
In file: default.conf
At row 0, column 0.
Code::Blocks Version revision 3240 (gcc 3.4.5, build: Nov 16 2006 23:32:14)
--- End code ---
tiwag:
--- Quote from: darus on November 20, 2006, 08:30:20 am ---I can't make it work too.
When I create an empty default.conf in CB folder and run CB, it pops an exception dialog:
--- End quote ---
you should copy an already created an valid config file there
thomas:
--- Quote from: Squeller on November 19, 2006, 09:41:09 pm ---...and a "share" folder with subfolders which are all empty. After deletion of the %appdata%\codeblocks\share\ folder and any startup of c::b, I get the error message
--- End quote ---
--- Quote ---Also, if finding all necessary config files in $(codeblocks) dir, why does it create these under %appdata% again? (Though they also appear in the codeblocks directory)?
--- End quote ---
Because "user plugins" were added a long time after everything else, and because the person adding them was not the same as the person writing the other path handling functions. Such things happen.
Because nobody ever uses the relocation feature, we don't see the error, and we don't get feedback on it (until now). Therefore, things like that may go unnoticed. Even if we use the feature (as I did a few days ago), the problem doesn't show up on developers' machines either, as we do have those folders in our profile folders.
--- Quote ---cbKeyBinder10v111.ini
codesnippets.xml
--- End quote ---
Those are not strictly Code::Blocks, these belong to contrib plugins. Quite likely, they suffer from the same problem as the "empty folder" one, though.
thomas:
All those issues should be fixed now. I've tried launching Code::Blocks with no config at all, re-launch it in "normal" mode, and relaunch it in "relocated" mode, removing all installed files from the PC first.
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version