The MSys2 UCRT64 package gives a false failure message when installing an cbplugin.
Patch below
--- a/src/sdk/configmanager.cpp (revision 13538)
+++ b/src/sdk/configmanager.cpp (working copy)
@@ -1497,7 +1497,7 @@
if (plugin_path_global.IsEmpty())
{
if (platform::windows)
- ConfigManager::plugin_path_global = app_path + _T("/../lib/codeblocks/plugins");
+ ConfigManager::plugin_path_global = app_path + _T("\\..\\lib\\codeblocks\\plugins");
else if (platform::macosx)
ConfigManager::plugin_path_global = data_path_global + _T("/plugins");
else
Can you post the failure message?
I do not use MSYS, can you replace the block from line 1496 to 1519 with this?
Delete past statement; I have decided it might/should work. I will try it when I have time.
Last edit: Tim Stahlhut 2024-08-24
You could change to testing the native path separator instead; that should work. But, I have no idea what use case you are trying to avoid breaking. See wxFILE_SEP_PATH
Example it was tested and does still fix my problem.
Last edit: Tim Stahlhut 2024-08-14
The problem is caused by comparing two paths to the plugin DLL one uses "\" and the other uses both "/" and "\" so it fails and cause the error/warning message.
Last edit: Tim Stahlhut 2024-08-14
Going to try patch posted and see if it works; I think I failed to understand the or logic because now it looks to me that it will fix the issue. And, now it looks like it will not fix the issue. I hoping testing builds and I get good results.
Tim S.
Last edit: Tim Stahlhut 2024-08-24
Patch that I am trying it takes a while for me to build CB and then the plugin I am testing.
Tim S.
Miguel patch fails to fix issue tested using MSys2 ucrt64 enviroment.
Thanks for testing.
Applied in [r13575].
Related
Commit: [r13575]