Recent Posts

Pages: [1] 2 3 4 5 6 ... 10
1
Using Code::Blocks / Re: Editor : Swap header/source
« Last post by LETARTARE on Today at 01:12:45 am »
Thank you for being interested in the problem.

The first job is to remove the reported anomaly.
Have you tried the proposed test ?
Does your proposal delete it ?

I looked at your proposal (I didn't test it) :
1- for the modification of 'editor_configuration.xrc': it seems better to choose a 'wxCheckBox' because we only need a boolean to define the exchange either next to the selection or all right.

2- for the modification of the class 'EditorManager' the fact of using 'AddEditorBase(...)', to insert a page, can lead to confusion.
Maybe create an insertion method ? But it is true that in both cases a page is added.

That being the developers will notify.
2
Development / Re: multiple frames
« Last post by ollydbg on Today at 12:43:15 am »
I'd like to(once have a plan several years ago) create another frame which contains the cbEditors control. Because I'd like to use the C::B editor in a second desktop screen. But it is hard to implement, because it has to manage the index and other things for the cb editor management.
3
Using Code::Blocks / Re: Editor : Swap header/source
« Last post by christo on Yesterday at 07:09:02 pm »
Hi @Letartare,

I've implemented an option to open new tab to the right of current tab instead of last in the tab panel : https://github.com/josephch/codeblocks/commit/78858208489bd7ca3cb932ee5596eaee1c4bee27

I think this option is better to limiting this feature to just "swap hearder/source" as it will help to position tabs nearby when opening files when using features like "jump to definition" etc.

Could you please share your thoughts?

@Devs, could you please review and suggest if this is ok to be merged as this introduces a new option?
4
Plugins development / r13959 Plugins|contrib|profiler
« Last post by LETARTARE on Yesterday at 06:29:44 pm »
I found a translation problem in the extension 'plugins|contrib|profiler'
I filed a ticket:
https://sourceforge.net/p/codeblocks/tickets/1624/
5
Development / Re: multiple frames
« Last post by cppuser on Yesterday at 05:57:34 pm »
btw I am happy because someone used it in his/her code

in the wx forum.
https://forums.wxwidgets.org/viewtopic.php?t=52616

 :) :) :) :) :) :)
6
Hi, I used to use github action to build the C::B for windows under msys2/UCRT64 platform. It works OK for a long time.

Recently, I see the build error, I found that if I try to enable the "update" of the msys2 packages, then the github action get failed.
If I don't enable the update of the packages, I can build the C::B successfully, but the wxWidgets library is 3.3.2, not the latest wx 3.3.3.

Here is my github project:

https://github.com/asmwarrior/x86-codeblocks-builds

You can see the core script is this one:

https://github.com/asmwarrior/x86-codeblocks-builds/blob/main/.github/workflows/main64.yml

I tweak the yml files for a while, see the change logs of this file, and I can't solve this issue.

Any one can help? Thanks.
8
Note that the stack trace though is a little different than my previous encounter with this version of the pop up warning: "iCCP: known incorrect sRGB profile". Using CODE::BLOCKS r13957 produces this stack trace"
Code
#0 ??	png_compare_ICC_profile_with_sRGB (png_ptr=0x8f86710, profile=0x8faf750 "", adler=60355580) (C:\msys64\home\NateJoe\wxWidgets\wxRegEx_changes\NewConfig\wxWidgets-3.2.11\src\png\png.c:2391)
#1 0x7ffcb78b1aac wx_png_icc_set_sRGB(png_ptr=0x8f86710, colorspace=0x8f86bd0, profile=0x8faf750 "", adler=60355580) (C:\msys64\home\NateJoe\wxWidgets\wxRegEx_changes\NewConfig\wxWidgets-3.2.11\src\png\png.c:2434)
#2 0x7ffcb78ca776 wx_png_handle_iCCP(png_ptr=0x8f86710, info_ptr=0x8f86c50, length=0) (C:\msys64\home\NateJoe\wxWidgets\wxRegEx_changes\NewConfig\wxWidgets-3.2.11\src\png\pngrutil.c:1595)
#3 0x7ffcb78b7586 wx_png_read_info(png_ptr=0x8f86710, info_ptr=0x8f86c50) (C:\msys64\home\NateJoe\wxWidgets\wxRegEx_changes\NewConfig\wxWidgets-3.2.11\src\png\pngread.c:225)
#4 0x7ffcb7421127 (anonymous namespace)::wxPNGImageData::DoLoadPNGFile(this=0x5fc9c0, image=0x5fd5d0, wxinfo=...) (C:\msys64\home\NateJoe\wxWidgets\wxRegEx_changes\NewConfig\wxWidgets-3.2.11\src\common\imagpng.cpp:322)
#5 0x7ffcb7421a7f wxPNGHandler::LoadFile(this=0x29eb1c0, image=0x5fd5d0, stream=..., verbose=true) (C:\msys64\home\NateJoe\wxWidgets\wxRegEx_changes\NewConfig\wxWidgets-3.2.11\src\common\imagpng.cpp:431)
#6 0x7ffcb7414593 wxImage::DoLoad(this=0x5fd5d0, handler=..., stream=..., index=-1) (C:\msys64\home\NateJoe\wxWidgets\wxRegEx_changes\NewConfig\wxWidgets-3.2.11\src\common\image.cpp:2870)
#7 0x7ffcb7414b2c wxImage::LoadFile(this=0x5fd5d0, stream=..., type=wxBITMAP_TYPE_ANY, index=-1) (C:\msys64\home\NateJoe\wxWidgets\wxRegEx_changes\NewConfig\wxWidgets-3.2.11\src\common\image.cpp:2946)
#8 0x7ffca2d80780 cbLoadImageFromFS(image=..., filename=..., bitmapType=wxBITMAP_TYPE_ANY, fs=...) (C:\msys64\home\NateJoe\CodeBlocks\codeblocks-code-r13957-trunk_Just333\src\sdk\globals.cpp:1143)
#9 0x7ffca2d80885 cbLoadBitmap(filename=..., bitmapType=wxBITMAP_TYPE_ANY, fs=0x0) (C:\msys64\home\NateJoe\CodeBlocks\codeblocks-code-r13957-trunk_Just333\src\sdk\globals.cpp:1158)
#10 0x7ffc3eba9ffd wxsResourceTree::wxsResourceTree(this=0x8f83710, Parent=0x8fa52f0) (C:\msys64\home\NateJoe\CodeBlocks\codeblocks-code-r13957-trunk_Just333\src\plugins\contrib\wxSmith\wxsresourcetree.cpp:81)
#11 0x7ffc3eba3f2c wxSmith::BuildBrowsers(this=0x7252d30) (C:\msys64\home\NateJoe\CodeBlocks\codeblocks-code-r13957-trunk_Just333\src\plugins\contrib\wxSmith\wxsmith.cpp:196)
#12 0x7ffc3eba2db2 wxSmith::OnAttach(this=0x7252d30) (C:\msys64\home\NateJoe\CodeBlocks\codeblocks-code-r13957-trunk_Just333\src\plugins\contrib\wxSmith\wxsmith.cpp:102)
#13 0x7ffca2ce6007 cbPlugin::Attach(this=0x7252d30) (C:\msys64\home\NateJoe\CodeBlocks\codeblocks-code-r13957-trunk_Just333\src\sdk\cbplugin.cpp:73)
#14 0x7ffca2da7e71 PluginManager::AttachPlugin(this=0x6a53130, plugin=0x7252d30, ignoreSafeMode=false) (C:\msys64\home\NateJoe\CodeBlocks\codeblocks-code-r13957-trunk_Just333\src\sdk\pluginmanager.cpp:203)
#15 0x7ffca2db046e PluginManager::LoadAllPlugins(this=0x6a53130) (C:\msys64\home\NateJoe\CodeBlocks\codeblocks-code-r13957-trunk_Just333\src\sdk\pluginmanager.cpp:1202)
#16 0x7ff6336a1efc MainFrame::ScanForPlugins(this=0x306de80) (C:\msys64\home\NateJoe\CodeBlocks\codeblocks-code-r13957-trunk_Just333\src\src\main.cpp:1507)
#17 0x7ff633699941 MainFrame::MainFrame(this=0x306de80, parent=0x0) (C:\msys64\home\NateJoe\CodeBlocks\codeblocks-code-r13957-trunk_Just333\src\src\main.cpp:794)
#18 0x7ff633633982 CodeBlocksApp::InitFrame(this=0x1cdb70) (C:\msys64\home\NateJoe\CodeBlocks\codeblocks-code-r13957-trunk_Just333\src\src\app.cpp:571)
#19 0x7ff633635406 CodeBlocksApp::OnInit(this=0x1cdb70) (C:\msys64\home\NateJoe\CodeBlocks\codeblocks-code-r13957-trunk_Just333\src\src\app.cpp:810)
#20 0x7ff633750845 wxAppConsoleBase::CallOnInit(this=0x1cdb70) (C:\msys64\home\NateJoe\wxWidgets\wxRegEx_changes\NewConfig\wxWidgets-3.2.11\include\wx\app.h:93)
#21 0x7ffcb718241d wxEntryReal(argc=@0x7ffcb81c17d0: 9, argv=0x1cd950) (C:\msys64\home\NateJoe\wxWidgets\wxRegEx_changes\NewConfig\wxWidgets-3.2.11\src\common\init.cpp:481)
#22 0x7ffcb721e890 wxEntry(argc=@0x7ffcb81c17d0: 9, argv=0x1cd950) (C:\msys64\home\NateJoe\wxWidgets\wxRegEx_changes\NewConfig\wxWidgets-3.2.11\src\msw\main.cpp:179)
#23 0x7ffcb721ea84 wxEntry(hInstance=0x7ff633630000, nCmdShow=10) (C:\msys64\home\NateJoe\wxWidgets\wxRegEx_changes\NewConfig\wxWidgets-3.2.11\src\msw\main.cpp:339)
#24 0x7ff633632c43 WinMain(hInstance=0x7ff633630000, hPrevInstance=0x0, lpCmdLine=0xf4c37 "--debug-log --no-dde --no-check-associations --multiple-instance --no-splash-screen --verbose -p debug", nCmdShow=10) (C:\msys64\home\NateJoe\CodeBlocks\codeblocks-code-r13957-trunk_Just333\src\src\app.cpp:381)
#25 0x7ff6337b75aa main(argc=<optimized out>, argv=<optimized out>, envp=<optimized out>) (D:/W/B/src/mingw-w64/mingw-w64-crt/crt/crtexewin.c:62)
#26 0x7ff633631157 __tmainCRTStartup() (D:/W/B/src/mingw-w64/mingw-w64-crt/crt/crtexe.c:266)
#27 0x7ffd6dfc7374 KERNEL32!BaseThreadInitThunk() (C:\WINDOWS\System32\kernel32.dll:??)
#28 0x7ffd6ea5cc91 ntdll!RtlUserThreadStart() (C:\WINDOWS\SYSTEM32\ntdll.dll:??)
#29 ?? ?? () (??:??)

The .png file being loaded this time is:
Code
devel33_64\\share\\codeblocks/images/wxsmith/wxBitmapToggleButton16.png
which seems to have come from r13845 dated May 18, 2026.
9
Using Code::Blocks / Re: Editor : Swap header/source
« Last post by LETARTARE on August 19, 2026, 02:39:26 pm »
Not having found, I wrote a fix to do so.
But when analyzing the code I found an anomaly !

The class managing the exchange is called 'EditorManager' ('editormanager.h' and 'editormanager.cpp')

Also I offer you a test:
I use the renowned version 'cb-13951' (cb51) and 'cb-13958' (cb58)
(or any other available versions)

1- open any version of 'CB' but empty,
2- load the 'cb51.cbp' project, open the file 'include/editormanager.h'
3- load the 'cb58.cbp' project, open the file 'include/editormanager.h'
4- activate the project 'cb51' :
    4-1 select 'cb51::editormanager.h'
    4.2 use in the editor's survey menu' => 'Swap header/source' and validate :
    => a file ''cb51::editormanager.cpp' appears on the right ; it's good

    4.3-  select 'cb58::editormanager.h'
    4.4- use in the editor's survey menu' => 'Swap header/source' and validate :
    => the file 'cb51::editormanager.cpp' is selected !!, it's not the good file

This shows that the verification of belonging to the same project was not carried out in the code

If you could confirm these results, I'll drop off a ticket with the fix.
10
Development / Re: Quickly fully expanding a project's tree
« Last post by Miguel Gimenez on August 19, 2026, 11:19:00 am »
Delayed profile spammer reported to moderator.
Pages: [1] 2 3 4 5 6 ... 10