Recent Posts

Pages: [1] 2 3 4 5 6 ... 10
1
Help / Re: How to change the default colours of the changebar
« Last post by vicent on Today at 09:49:28 pm »
The colors for the changebar are currently hard coded in

sdk\cbeditor.cpp:1619

[...]

Can you open a feature request on SF to make this colors configurable?

Done! (see https://sourceforge.net/p/codeblocks/tickets/1160/)

Thank you for the information.
2
Help / Re: Shift-TAB does not work
« Last post by Pecan on Today at 09:23:59 pm »
Can be... This happened after updating c::b but all version should have installed the plugin...
Anyway, my next question is, where is the binding for switch tabs/open documents? i have not found it...

main.cpp line 763
Code
    // New: Allow drag and drop of files into the editor
    SetDropTarget(new cbFileDropTarget(this));

    // Accelerator table
    m_AccelCount = 8;
    m_pAccelEntries.reset(new wxAcceleratorEntry[m_AccelCount]);
    m_pAccelEntries[0].Set(wxACCEL_CTRL | wxACCEL_SHIFT,  (int) 'W', idFileCloseAll);
    m_pAccelEntries[1].Set(wxACCEL_CTRL | wxACCEL_SHIFT,  WXK_F4,    idFileCloseAll);
    m_pAccelEntries[2].Set(wxACCEL_CTRL,                  (int) 'W', idFileClose);
    m_pAccelEntries[3].Set(wxACCEL_CTRL,                  WXK_F4,    idFileClose);
    m_pAccelEntries[4].Set(wxACCEL_CTRL,                  WXK_F6,    idFileNext);
    m_pAccelEntries[5].Set(wxACCEL_CTRL | wxACCEL_SHIFT,  WXK_F6,    idFilePrev);
    m_pAccelEntries[6].Set(wxACCEL_SHIFT,                 WXK_TAB,   idShiftTab);
    m_pAccelEntries[7].Set(wxACCEL_CTRL | wxACCEL_ALT,    WXK_TAB,   idCtrlAltTab);
    m_pAccel.reset(new wxAcceleratorTable(m_AccelCount, m_pAccelEntries.get()));

    SetAcceleratorTable(*m_pAccel);

Here's another possibility.
Let's say a user has an old (personality=default) and the Alt-Left key had an id=1234 in the old menu id.

The user then loads a new CB (personality=default also) which has Alt-Left key id=5678.

Keybinder will do it's best to resolve the conflict. But if another key, say Ctrl-A, has id=1234 Keybinder has to honor the Ctrl-A and drop the Alt-Left.

In general, Keybinder resolves assignments by:
1) Assign all keys in the .conf file the menu id.
2) If multiple .conf keys have the same menu id, the menu wins.

In both cases, a key could get switched around because the old menu id and the .conf menu id did not match, the .conf key was missing in the menu, or two keys in the .conf had the same menu id.

The best way around all these problems is to use separate personalities for each CB version you load.

Also watch out that when debugging, the personality might default to "debug". It'll overwrite debug.cbKeyBinder20.conf every time you close the debug session. Or if you don't set a personality, the debug session will overwrite the default.cbKeyBinder20.conf.
3
Help / Re: Error after Installation of Code::Blocks 20.03
« Last post by GShauffenburg on Today at 07:58:51 pm »
Thank you for the help.

Somehow there was a setting added to the Other Compiler Options tab that was causing my issue.

Everything is working again.
4
Help / Re: Error after Installation of Code::Blocks 20.03
« Last post by gd_on on Today at 06:27:32 pm »
If you installed C::B 20.03 with the official installer, you have certainly also installed gcc 8.1. This version of compiler was built in 2018. As far as I remember, c++20 or gnu++20 was not still available, but you should have gnu++2a effectively, which should work for you. If you really need gnu++20, you should update the compiler with a more recent version, for example the one provided with Msys2. Have a look in the codeblocks manual where you can eventually find other informations.
5
Help / Re: Error after Installation of Code::Blocks 20.03
« Last post by BlueHazzard on Today at 05:26:54 pm »
For compilation errors please always follow this guide:
http://wiki.codeblocks.org/index.php?title=FAQ-Compiling_(general)#Q:_How_do_I_report_a_compilation_problem_on_the_forums.3F

The installed compiler does not support this option. Places where this option can be set:

  • Project->Build options->Select the project name on the left->Compiler flags
  • Project->Build options->Select the project name on the left->Other compiler options
  • Project->Build options->Select your build target on the left->Compiler flags
  • Project->Build options->Select your build target on the left->Other compiler options
  • Settings->Compiler->Global compiler settings->compiler settings->Compiler flags
  • Settings->Compiler->Global compiler settings->compiler settings->Other compiler options
6
Help / Error after Installation of Code::Blocks 20.03
« Last post by GShauffenburg on Today at 04:20:20 pm »
Hello group,

I am new to Code::Blocks and have uninstalled and the reinstalled the latest release (20.03) several times, with a reboot each time, but cannot resolve my issue.  I am working through the examples for C++ ALL-IN-ONE for dummies and am getting the following message after installing the latest release:
=== Build: Debug in VariadicTemplate (compiler: GNU GCC Compiler) ===
error: unrecognized command line option '-std=gnu++20'; did you mean '-std=gnu++2a'?
=== Build failed: 1 error(s), 0 warning(s) (0 minute(s), 0 second(s)) ===

Did I miss something when I performed the install or is there something else that I need to install in addition to Code::Blocks?  I have checked and there is no option for a C++20 compiler and the complier selected is C++17 GNU C++ language standard (ISO C++ plus GNU extensions).   So I am not sure where the gnu++ 20 is even coming from.

Any help or suggestions in how to diagnose and resolve this issue would be greatly appreciated.

Regards,

Graham
7
Help / Re: SVN 12550 does not compile
« Last post by ollydbg on Today at 09:57:58 am »
If you add PCH to the first plugin I can do it to the others (I have never used precompiled headers)


I see AndrewCot already did that, see here: https://github.com/acotty/codeblocks_sf/commit/9fc1965e72e1c4ef96227f8a84f2423563f25f4b

I can download his change/patch from:
https://github.com/acotty/codeblocks_sf/commit/9fc1965e72e1c4ef96227f8a84f2423563f25f4b.patch

Then use the command line "patch -p1 < 9fc1965e72e1c4ef96227f8a84f2423563f25f4b.patch" to apply to my local git repo. (git am does not work, I'm not sure why)
8
Help / Re: Shift-TAB does not work
« Last post by BlueHazzard on Today at 09:00:24 am »
Can be... This happened after updating c::b but all version should have installed the plugin...
Anyway, my next question is, where is the binding for switch tabs/open documents? i have not found it...
9
Help / Re: SVN 12550 does not compile
« Last post by ollydbg on Today at 08:25:37 am »
What version of  guyu's compiler were you using? 11.2.0 release 0 or release 1 or some other version?
gytx_x86_64-11.2.0-posix-seh_r1, which is released Aug 01, 2021.
I have this compiler in two PCs, and both got the same PCH warning message: "sdk_precomp.h.gch: had text segment at different address".
So, I switch to using Msys2's gcc now.
10
Help / Re: Shift-TAB does not work
« Last post by Pecan on Today at 07:29:26 am »
I have a other issue with switch tabs:
Normally alt+ arrow key should activate the browsetracker switch editor, but for me it activates the switch tab dialog?

My guess: that these keys are being switched around because different versions of CB are being used with the same personality.

KeyBinder resets a key to the default menu assignment if a  user assigned key is no longer in the menu.

For example, if I've assigned Alt-left to a BrowserTracker menu item, then load a CB that does not enable BrowserTracker, the Alt-left gets lost in the personality=default keybinder .conf file.

If a previous assignment of ctrl-tab was assigned to say HexEditor, then I load a CB which has no HexEditor plugin, then the ctrl-tab will default back to the core CB assignment (switch tabs).

The only way around this is to use personality=<whatever> so key assignments don't get lost.

I have a personality=cb315 and a personality=cb30 etc.
I use a .bat file to set the personality for it's associated CB.

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