When exec CodeSnippets.exe, it's auto change Window type: From Docked to External.
I reset Window type to Docked, and it's ok!
But when i exec CodeSnippets.exe, it's auto change too.
XPSP3.
Please give us the "exact" steps to re-create your problem.1. Run codeblocks.exe (is portable: default.conf with the same folder)
...default.conf.cbTemp still exists!...
Please give us the "exact" steps to re-create your problem.1. Run codeblocks.exe (is portable: default.conf with the same folder)
2. View - Code snappets, now, Opened the Code Snappets main UI.
3. CodeSnappets: Settings - Options -> Set Window Type to Docked and OK.
4. Quit Codeblocks.exe
5. run codesnippets.exe
6. quit codesnippets.exe (default.conf.cbTemp still exists!)
7. run codeblocks.exe
8. View - Code snappets
Now, CodeSnippets change Window Type to External
So, when running in portable mode, either use the CodeBlocks plugin version of CodeSnippets *or* use the standalone external version. But not both.Oh. Have any way to made both use?
So, when running in portable mode, either use the CodeBlocks plugin version of CodeSnippets *or* use the standalone external version. But not both.Oh. Have any way to made both use?
example: When run codesnippets.exe, it's not modify codesnippets.ini anything, but only read the codesnippets.xml ?
Hi, I find a strange problem.
I use the portable CB see:
http://forums.codeblocks.org/index.php/topic,10360.0.html
My codeblocks.exe was located in "F:\cb_svn\src\output"
But the "codesnippets.ini" was located in "F:\"
Is there something wrong?
Or this pulgin can't use the APPDATA related information to store its configuration?
Thanks
On its first run, CodeBlocks is returning an empty string as the config folder location in OnAttach() for plugins.
CodeSnippets will have to look for the APPDATA envar.
I'll work up a fix for CodeSnippets.
wxString ConfigManager::LocateDataFile(const wxString& filename, int search_dirs)
{
wxPathList searchPaths;
// user dirs have precedence
if (search_dirs & sdPluginsUser)
searchPaths.Add(GetPluginsFolder(false));
if (search_dirs & sdScriptsUser)
searchPaths.Add(GetScriptsFolder(false));
if (search_dirs & sdDataUser)
searchPaths.Add(GetDataFolder(false));
// then we have global dirs
if (search_dirs & sdPluginsGlobal)
searchPaths.Add(GetPluginsFolder(true));
if (search_dirs & sdScriptsGlobal)
searchPaths.Add(GetScriptsFolder(true));
if (search_dirs & sdDataGlobal)
searchPaths.Add(GetDataFolder(true));
// rest of the dirs
if (search_dirs & sdCurrent)
searchPaths.Add(::wxGetCwd());
if (search_dirs & sdConfig)
searchPaths.Add(GetConfigFolder());
if (search_dirs & sdHome)
searchPaths.Add(GetHomeFolder());
if (search_dirs & sdBase)
searchPaths.Add(GetExecutableFolder());
if (search_dirs & sdTemp)
searchPaths.Add(GetTempFolder());
// PATH env. var
if (search_dirs & sdPath)
searchPaths.AddEnvList(_T("PATH"));
return searchPaths.FindValidPath(filename);
}