Recent Posts

Pages: 1 2 3 4 [5] 6 7 8 9 10
41
Using Code::Blocks / Re: CB 25.02 - BrowseTracker crash on startup
« Last post by Pecan on June 20, 2025, 06:14:43 pm »
I cannot reproduce this problem.

Is this actually on Windows 10?
Please tell us the OS your using, and exactly how you installed CodeBlocks on that system so I can try to re-produce the steps that caused the error.

SideNote: both Addr2Line and (gdb) Info Line show "No statements found" at the BrowseTracker addresses from the crash report. And spending 4 hours trying to guess where in OnAttached() this occured produced no results.
42
Help / Re: Debugging problem in a console application with ncurses library
« Last post by Krice on June 20, 2025, 12:38:08 pm »
It seems like you need to add envinronment variable for (any) IDE which is TERM=xterm so I did that (Settings-environment-environment variables) and now the debugger runs, but it doesn't open a terminal window of the program, it's like the program just runs in the background somewhere (alt+tab doesn't show it either). Someone had fixed this in Eclipse by enabling "Use external console for inferior (open a new console window for input/output)". Is this possible in Code::Blocks, to open an "external" console window?
43
Help / Re: Cppcheck settings?
« Last post by Krice on June 20, 2025, 12:07:51 pm »
You can add these flags in settings|environment|CppCheck/Vera++|CppCheck arguments.

Right, the settings were there.. I tried to find it from Editor settings. Thanks, now it works.
44
Help / Re: Codeblocks not working on macos sonoma
« Last post by Miguel Gimenez on June 20, 2025, 10:12:27 am »
Disable the CodeCompletion plugin (rename CodeCompletion.dylib). You can later enable the new Clangd_client plugin.

The problem is in ClassBrowser::SetParser(), may be you can debug this (we do not have access to Macs).
45
Help / Re: Codeblocks not working on macos sonoma
« Last post by vwdvaan on June 20, 2025, 06:18:42 am »
Same here on Sonoma 14.7.2.
I compiled myself wxWidgets-3.2.8.1 and CodeBlocks-25.04 but it's crashes after i open CodeBlocks:
Code
<?xml version="1.0" encoding="UTF-8"?>
<report version="1.0" kind="exception">
  <system description="macOS Sonoma Version 14.7.2 (Build 23H311)"/>
  <stack>
    <frame level="0" function="wxFatalSignalHandler(int)" offset="0" address="0x10852f0ac"/>
    <frame level="1" function="_sigtramp" offset="0" address="0x7ff80638dfdd"/>
    <frame level="2" function="_sigtramp" offset="0" address="0x7ff7b8cb5e88"/>
    <frame level="3" function="ClassBrowser::SetParser(ParserBase*)" offset="0" address="0x117d74f7c"/>
    <frame level="4" function="ParseManager::CreateClassBrowser()" offset="0" address="0x117df6b72"/>
    <frame level="5" function="CodeCompletion::OnAttach()" offset="0" address="0x117d97c39"/>
    <frame level="6" function="cbPlugin::Attach()" offset="0" address="0x10883ee1c"/>
    <frame level="7" function="PluginManager::AttachPlugin(cbPlugin*, bool)" offset="0" address="0x1089a06ca"/>
    <frame level="8" function="PluginManager::LoadAllPlugins()" offset="0" address="0x1089a734d"/>
    <frame level="9" function="MainFrame::ScanForPlugins()" offset="0" address="0x107309f0a"/>
    <frame level="10" function="MainFrame::MainFrame(wxWindow*)" offset="0" address="0x1073048e3"/>
    <frame level="11" function="MainFrame::MainFrame(wxWindow*)" offset="0" address="0x10730cc7d"/>
    <frame level="12" function="CodeBlocksApp::InitFrame()" offset="0" address="0x10724a3b1"/>
    <frame level="13" function="CodeBlocksApp::OnInit()" offset="0" address="0x10724c791"/>
    <frame level="14" function="wxApp::CallOnInit()" offset="0" address="0x109b05480"/>
    <frame level="15" function="wxEntry(int&amp;, wchar_t**)" offset="0" address="0x1084abbe1"/>
    <frame level="16" function="main" offset="0" address="0x107248a43"/>
    <frame level="17" function="start" offset="0" address="0x7ff805fd3345"/>
  </stack>
</report>

46
Help / Re: Cppcheck settings?
« Last post by blauzahn on June 19, 2025, 08:19:35 pm »
You can add these flags in settings|environment|CppCheck/Vera++|CppCheck arguments. So, if you have a c++ project e.g.:
Code
--verbose --enable=all --xml --language=c++ --std=c++20

If you do not need cross-translation checks, then the option -j 8 can use multiple cores to speed things up significantly.

The messages should show up readable in the CppCheck/Vera++ messages log panel.

47
Help / Re: Cppcheck settings?
« Last post by Miguel Gimenez on June 19, 2025, 06:19:36 pm »
I used it with C::B and did not need command line switches; it will default to the last version of C or C++.

Anyway, cppcheck usage is OT here; you can ask in their forum.

EDIT:

Quote
is there a way to read .xml output in human readable format?

Are you using the GUI?
48
Help / Cppcheck settings?
« Last post by Krice on June 19, 2025, 12:44:10 pm »
When I run cppcheck (on latest Code::Blocks) it's reporting warnings about invalid C code (using classes...) but at the same time it's also reporting all typical C++ warnings. The class warning tells to "Use --std, -x or --language to enforce C++." How do you add those flags for cppcheck? It's kind of annoying to get those extra warnings for each class. Also, is there a way to read .xml output in human readable format?
49
Help / Re: Debugging problem in a console application with ncurses library
« Last post by Krice on June 19, 2025, 12:37:12 pm »
What is the value of the environment variable TERM of the terminal session ?

How do you check that? By the way, the problem seems to be curses, if I try a SDL2 project then debugging works. I think I read somewhere that when debugging curses programs people have to run two terminal instances, one for curses and another for gdb, but that is on command line.
50
Help / Re: Debugging problem in a console application with ncurses library
« Last post by Bug Killer on June 18, 2025, 03:02:51 pm »
What is the value of the environment variable TERM of the terminal session ?
Pages: 1 2 3 4 [5] 6 7 8 9 10