Recent Posts

Pages: 1 2 [3] 4 5 6 7 8 ... 10
21
Nightly builds / Re: The 16 Januari 2022 build (12655) is out.
« Last post by Xaviou on Yesterday at 09:10:20 pm »
Hi

OS X version of this rev (12596) can be downloaded from my Google Drive.
There is a specific dmg file for versions 10.15 and 11.6 of the OS.
Note that these are not notarized versions of the application.

32 bits version for Windows can also be found in the same place.

Debian Buster and Bullseye (32 and 64 bits) can be installed from my repo.

The problem I talked about in my 9 january's post is still here.
I comes from the rev12597 modifications (this has been confirmed by the fact that disabling the "Forein Project Importer" plugin allows Code::Blocks to run correctly.
The problem is the last loop of the modified code :
Code
wxMenuItemList m_List = m_Menu->GetMenuItems();
    for (wxMenuItemList::iterator it = m_List.begin(); it != m_List.end(); ++it)
        importSubMenu->Append(*it);
The "GetMenuItems" call doesn't detach the menu entries of m_Menu so adding them "as is" to the newly created sub menu is not a good thing (but perhaps am I missing something...)
However, doing something like the following works fine:
Code
wxMenuItemList m_List = m_Menu->GetMenuItems();
wxMenuItem *item;
    for (wxMenuItemList::iterator it = m_List.begin(); it != m_List.end(); ++it)
    {
        item = *it;
        importSubMenu->Append(item->GetId(), item->GetItemLabel);
    }
But in this case, the content of m_Menu seems to never been destroyed.

Regards
Xav'
22
Development / Re: Remove coders query from plugins
« Last post by Miguel Gimenez on Yesterday at 07:30:10 pm »
Looks like Grepper has no public API. Searchcode has an API, but it is a one person project so it may end abruptly.

FWIW, if nobody has complained about Koders Query not working in the last 10 years I am pretty sure that the plugin is not used at all.
23
Help / Re: Can't Run C Code MacOS Terminal
« Last post by jordi on Yesterday at 07:24:44 pm »
From cb_console_runner man page:
"cb_console_runner  is part of the Code::Blocks IDE. It is used to launch console programs and wait for them to finish.  When the console program is finished, cb_console_runner displays "Press ENTER to continue".
It doesn't have any sense to use it in a terminal.
You could try:
/Applications/CodeBlocks.app/Contents/MacOS/cb_console_runner /filePath/bin/Debug/firstCDocument
cb_console_runner expects an executable file as first argument
24
Help / Can't Run C Code MacOS Terminal
« Last post by jackNewport on Yesterday at 03:51:34 pm »
This is the first time that I have tried to use Code::blocks, and when I try to run a simple C script (just hello world) I get this error in the Mac Terminal:
 
Code
'/Applications/CodeBlocks.app/Contents/MacOS/cb_console_runner DYLD_LIBRARY_PATH=$DYLD_LIBRARY_PATH:. /filePath '

conmputer:~ user$ '/Applications/CodeBlocks.app/Contents/MacOS/cb_console_runner DYLD_LIBRARY_PATH=$DYLD_LIBRARY_PATH:. /filePath/bin/Debug/firstCDocument '

-bash: /Applications/CodeBlocks.app/Contents/MacOS/cb_console_runner DYLD_LIBRARY_PATH=$DYLD_LIBRARY_PATH:. /filePath/bin/Debug/firstCDocument : No such file or directory

I have a feeling that this is a dumb mistake that is easily fixed, but I'm having trouble finding an answer. Thanks!
25
I will give up on this at the end of the month if no one wants help until completed.
26
Plugins development / Re: Code completion using LSP and clangd
« Last post by ollydbg on Yesterday at 08:07:39 am »
I see there are some code snippet like:

Code
m_MutexInputBufGuard.Lock;

m_MutexInputBufGuard.Unlock();

But in the code, we have to carefully handle the unlocking the wxMutex when return the function body, especially when there are multiply returns.

Is it possible to use the wxMutexLocker, and check the IsOK() function for checking whether it get locked or not.

There are only 2 locks in the code that can cause any trouble. The lock on the input buffer. One to write to the buffer, and one to get the next clangd response out of the buffer. And neither affect the UI thread.

I tried wxMutexLocker first before giving up on it.
I want to be able to unlock the input buffer and then do more work in the function.
When I unlocked the mutex before the function ended,  wxWidgets gave me errors about the mutex. I lost confidence that I could mix a wxMutexLocker and manual unlocks.

In fact, I removed all locks on the main UI thread and used idle time callbacks instead.

Yes, there are only There are only 2 locks in the code. Sometimes, I got error message about lock failed, I'm not sure why.

BTW: since the console pipe is connected with clangd.exe, I'm not sure why the locker is needed. Since the content is from a thread to the main GUI thread by the Event, when you got the Event, you were already in the main GUI thread, and the content in the Event(wxThreadEvent) is already deep copied. So, I think the locker is not necessary, am I correct?

27
Development / Re: Remove coders query from plugins
« Last post by ollydbg on Yesterday at 04:29:21 am »
There are some other code search engine, such as:

https://www.codegrepper.com

Or

https://searchcode.com/

Maybe, we can let the user choose which search engine they like.  ;)
28
Development / Re: wiki updates - query about backup files for local setup
« Last post by BlueHazzard on January 19, 2022, 08:21:37 pm »
@bluehazzard I just stumbled onto your https://github.com/bluehazzard/codeblocks_sf/wiki page and I will borrow info for the updates on the CB wiki as the pages have allot more info that I was going to put in. Great job. Pitty I did not know about it a year ago as it would have saved me allot of time and head ache, but at least I know about the pages now.

Well, it seems to be out of date already...
29
Development / Re: wiki updates - query about backup files for local setup
« Last post by AndrewCot on January 19, 2022, 08:33:08 am »
@bluehazzard I just stumbled onto your https://github.com/bluehazzard/codeblocks_sf/wiki page and I will borrow info for the updates on the CB wiki as the pages have allot more info that I was going to put in. Great job. Pitty I did not know about it a year ago as it would have saved me allot of time and head ache, but at least I know about the pages now.
30
Development / Re: wiki updates - query about backup files for local setup
« Last post by AndrewCot on January 19, 2022, 08:17:52 am »
I disagree in that you need to have shown that you are not going to cause havoc and are trying to help with C::B before being "granted" access.
If everyone got access then the bots and people show they have no idea or are not real devs (uni students etc) could cause major issues with regards to reverting their changes if they are bad changes (aka graffiti).
Pages: 1 2 [3] 4 5 6 7 8 ... 10