Recent Posts

Pages: [1] 2 3 4 5 6 ... 10
1
Help / Re: The tabs close when you save a file.
« Last post by christo on Today at 08:34:14 pm »
I could reproduce the issue. Editor is closed by below call trace. Looks like it is caused by Glob feature. I'm not much familiar with that feature. When I remove all the glob related data from the cbp manually, issue was not seen.

Code
#0  cbEditor::~cbEditor (this=0x452eda0) at cbeditor.cpp:843
#1  0x00007ffff63a86df in wxWindowBase::Destroy (this=0x452eda0) at ../src/common/wincmn.cpp:570
#2  0x00007ffff626634d in wxBookCtrlBase::DeletePage (this=0x1251170, nPage=37) at ../src/common/bookctrl.cpp:412
#3  0x00007ffff7771d65 in cbAuiNotebook::DeletePage (this=0x1251170, page=37) at cbauibook.cpp:475
#4  0x00007ffff7878992 in EditorManager::Close (this=0x11fb930, editor=0x452eda0, dontsave=false) at editormanager.cpp:758
#5  0x00007ffff78788fd in EditorManager::Close (this=0x11fb930, filename=..., dontsave=false) at editormanager.cpp:745
#6  0x00007ffff77b3cad in cbProject::RemoveFile (this=0x30ddcf0, pf=0x30ee360) at cbproject.cpp:1016
#7  0x00007ffff7916c7b in ProjectLoader::UpdateGlob (this=0x7fffffffd390, glob=...) at projectloader.cpp:1143

2
Nightly builds / The 11 August 2026 build (13948) is out.
« Last post by killerbot on Today at 05:11:44 pm »
We switched to gcc 15.2.0 (on 09 April 2026) --> download the new wx/mingw dll's see link below

Get the compiler we use here : https://github.com/brechtsanders/winlibs_mingw/releases/download/15.2.0posix-14.0.0-ucrt-r7/winlibs-x86_64-posix-seh-gcc-15.2.0-mingw-w64ucrt-14.0.0-r7.7z

Get quick announcements through the RSS feed http://www.codeblocks.org/nightly/CodeBlock_RSS.xml

Before you use a nightly make sure you understand how it works.

A link to the unicode windows wxWidget dll(s) for Code::Blocks : https://sourceforge.net/projects/codeblocks/files/Binaries/Nightlies/Prerequisites/wxmsw33u_gcc_cb_wx333_2D_gcc1520-mingw64.7z
A link to Mingw64 dll's needed by Code::Blocks : http://sourceforge.net/projects/codeblocks/files/Binaries/Nightlies/Prerequisites/Mingw64dlls15.2.0.7z


The 11 August 2026 build is out.
  - Windows :
   http://sourceforge.net/projects/codeblocks/files/Binaries/Nightlies/2026/CB_20260811_rev13948_win64.7z
  - Linux :
   none

The current SDK version is : 2.25.0

Resolved Fixed:

  • increase amount of global user vars from 7 to 8
  • show CPU architecture in about screen (and alike) as well to differ 64 bit Intel/ARM
  • fix crash on Clang/ARM compiled version of C::B on Windows
  • introduce new global variables to remove some code: AppProcessor, AppBitType, AppCompilerVersion
  • updated nlohman JSON to v3.12.0 to try to fix a compiler issue on ARM
  • actually fix a compiler issue with cyclic definitions of Diagnostics and CodeAction structs on more strict compilers
  • added Code::Blocks projects files and workspace for ARM compilation (WoA64)
  • added ARM batch files for resources for various projects
  • src\uservardlgs.cpp: Fix assert/crash because of incorrect print format
  • clangd_client: Search for compiler master path in .conf 'user_sets' when searching 'sets' fails

Regressions/Confirmed/Annoying/Common bugs:


    3
    Help / Re: The tabs close when you save a file.
    « Last post by dthu on Today at 05:24:19 am »
    I traced the behavior of C:B but I got lost, I'll try again later.

    Code
    <?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
    <CodeBlocks_project_file>
    <FileVersion major="1" minor="6" />
    <Project>
    <Option title="ajedrez4" />
    <Option pch_mode="2" />
    <Option compiler="gcc" />
    <Build>
    <Target title="Debug">
    <Option output="bin/Debug/ajedrez4" prefix_auto="1" extension_auto="1" />
    <Option object_output="obj/Debug/" />
    <Option type="1" />
    <Option compiler="gcc" />
    <Option use_console_runner="0" />
    <Option projectLinkerOptionsRelation="2" />
    <Compiler>
    <Add option="-g" />
    </Compiler>
    </Target>
    <Target title="Release">
    <Option output="bin/Release/ajedrez4" prefix_auto="1" extension_auto="1" />
    <Option object_output="obj/Release/" />
    <Option type="0" />
    <Option compiler="gcc" />
    <Option projectLinkerOptionsRelation="2" />
    <Compiler>
    <Add option="-O2" />
    </Compiler>
    <Linker>
    <Add option="-s" />
    </Linker>
    </Target>
    </Build>
    <Compiler>
    <Add option="-pedantic" />
    <Add option="-Wextra" />
    <Add option="-Wall" />
    <Add option="-std=c++23" />
    <Add option="`wx-config --cflags`" />
    <Add option="-Werror" />
    </Compiler>
    <Linker>
    <Add option="`wx-config --libs`" />
    <Add library="wx_gtk3u_richtext-3.3" />
    </Linker>
    <UnitsGlob directory="../../../../../4chess-viewer/src" wildcard="" recursive="0" id="2701167546" addToProject="1">
    <Option target="Debug" />
    <Option target="Release" />
    </UnitsGlob>
    <Unit filename="../../../../../4chess-viewer/src/CBJugador.h">
    <Option glob="2701167546" />
    </Unit>
    <Unit filename="../../../../../4chess-viewer/src/CBPagina.h">
    <Option glob="2701167546" />
    </Unit>
    <Unit filename="../../../../../4chess-viewer/src/CBTurn.h">
    <Option glob="2701167546" />
    </Unit>
    <Unit filename="../../../../../4chess-viewer/src/ChessBoard.cpp">
    <Option glob="2701167546" />
    </Unit>
    <Unit filename="../../../../../4chess-viewer/src/ChessBoard.h">
    <Option glob="2701167546" />
    </Unit>
    <Unit filename="../../../../../4chess-viewer/src/ChessBook.cpp">
    <Option glob="2701167546" />
    </Unit>
    <Unit filename="../../../../../4chess-viewer/src/ChessBook.h">
    <Option glob="2701167546" />
    </Unit>
    <Unit filename="../../../../../4chess-viewer/src/ChessFiles.cpp">
    <Option glob="2701167546" />
    </Unit>
    <Unit filename="../../../../../4chess-viewer/src/ChessFiles.h">
    <Option glob="2701167546" />
    </Unit>
    <Unit filename="../../../../../4chess-viewer/src/ChessFrame.cpp">
    <Option glob="2701167546" />
    </Unit>
    <Unit filename="../../../../../4chess-viewer/src/ChessFrame.h">
    <Option glob="2701167546" />
    </Unit>
    <Unit filename="../../../../../4chess-viewer/src/ChessNotation.cpp">
    <Option glob="2701167546" />
    </Unit>
    <Unit filename="../../../../../4chess-viewer/src/ChessNotation.h">
    <Option glob="2701167546" />
    </Unit>
    <Unit filename="../../../../../4chess-viewer/src/ChessParameters.h">
    <Option glob="2701167546" />
    </Unit>
    <Unit filename="../../../../../4chess-viewer/src/ChessStyleBoard.h">
    <Option glob="2701167546" />
    </Unit>
    <Unit filename="../../../../../4chess-viewer/src/Common.h">
    <Option glob="2701167546" />
    </Unit>
    <Unit filename="../../../../../4chess-viewer/src/ajedrez4App.cpp">
    <Option glob="2701167546" />
    </Unit>
    <Extensions>
    <lib_finder disable_auto="1" />
    </Extensions>
    </Project>
    </CodeBlocks_project_file>
    4
    Help / Re: The tabs close when you save a file.
    « Last post by christo on Today at 05:17:13 am »
    Is it possible to share your .cbp file also?
    5
    Help / Re: The tabs close when you save a file.
    « Last post by dthu on Today at 04:36:58 am »
    After deleting the file, the problem persists. An identical file was generated.
    6
    Help / Re: The tabs close when you save a file.
    « Last post by Miguel Gimenez on Yesterday at 11:05:37 am »
    Delete the .layout file, it will be recreated.
    7
    Help / The tabs close when you save a file.
    « Last post by dthu on August 09, 2026, 08:34:46 pm »
    I had a project started with the source code located in its default position. I decided to move the code. In C::B, I removed all the files and then added them to their new location. I don't know if it's related, but since then, the program closes the tabs associated with the project files every time I save or compile. I realized that the .layout file is different from other projects, so I'm placing it here.

    I've experienced this problem in both the stable version and r13923 on Linux.

    Code
    <?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
    <CodeBlocks_layout_file>
    <FileVersion major="1" minor="0" />
    <ActiveTarget name="Debug" />
    </CodeBlocks_layout_file>
    8
    I will fix the png next week, currently I do not have access to the repository.
    9
    Help / Re: Code::Blocks always add #ifndef HEADER_ on some .h files
    « Last post by MortenMacFly on August 08, 2026, 06:34:11 pm »
    It seems you have installed / activated a plugin called "Header Guard" (headerguard.dll).
    De-activate or un-install this plugin if you don't need it and this will be gone.
    10
    Even without actually compiling cb with llvm/clang you can benefit A LOT from its toolbox to find errors and dubious code.

    1) Use the clangd_client cb-plugin. I only activate it temporarily, look at its findings and deactivate it afterwards due to its early stage.
    2) Use clang-tidy as a "compiler" on any c++ project from within cb. Like with compiler warnings, clicking onto one jumps to the corresponding code line. This one I use very often.  I started using it with cb over 10 years ago.
    3) Use scan-build from the commandline when building cb or any other project that compiles makefiles (e.g. via cmake). Gives a nice report.

    Apart from llvm/clang I still recommend the cb-plugin for cppcheck.

    The tools do have false positives. You can configure .clang-tidy. I disabled some warnings but in general I like to keep warnings on. At spots with false positives you can apply local suppressions (NOLINT, NOLINTNEXTLINE, cppcheck-suppress etc.). When using one of the tools for the first time on a larger codebase you might be flooded with warnings. Don't dispair. One strategy to attack the list systematically is to disable all but one type of warning. Fix those and proceed with the next type of warning. This might also happen after an update of one of the tools. A week ago, llvm forked clang-23 and started to provide packages for clang-24. The latter added a new check for [misc-const-correctness]. I like it.


    Pages: [1] 2 3 4 5 6 ... 10