Recent Posts

Pages: 1 2 3 4 5 [6] 7 8 9 10
51
Help / Re: Can't Run C Code MacOS Terminal
« Last post by jordi on January 20, 2022, 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
52
Help / Can't Run C Code MacOS Terminal
« Last post by jackNewport on January 20, 2022, 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!
53
I will give up on this at the end of the month if no one wants help until completed.
54
Plugins development / Re: Code completion using LSP and clangd
« Last post by ollydbg on January 20, 2022, 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?

55
Development / Re: Remove coders query from plugins
« Last post by ollydbg on January 20, 2022, 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.  ;)
56
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...
57
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.
58
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).
59
Development / Re: wiki updates - query about backup files for local setup
« Last post by ollydbg on January 19, 2022, 07:56:58 am »
I think every forum user should/could edit the wiki.

I will send an email to our admin for help.
60
Development / wiki updates - query about backup files for local setup
« Last post by AndrewCot on January 19, 2022, 04:18:44 am »
Let me know if I am going off on a tangent on this one and wasting my time.
I have been able to download the mediawiki Virtual Machine OVA file from the page below and get it running locally as a VirtualBox guest. This will allow me to learn about the wiki page layout and make changes to locally before requesting changes to the C::B wiki to ensure that the changes work and look okay.  The pages and areas that need updates that I have worked on are:   * Update the Windows build process. Some pages reference wxWidget 3.0 and others 2.8 and https://wiki.codeblocks.org/index.php/Installing_Code::Blocks_from_source_on_Windows references 3.1.4.
   * Create a Unix project/workspace build process, unless there is one that I have not found.
   * Update the Unix makefile process. The https://wiki.codeblocks.org/index.php/Installing_Code::Blocks_from_source_on_Linux has not been touched in a while and is in need of a major rework IMHO.   * Create a page for building the Debian deb packages, unless It is added to the https://wiki.codeblocks.org/index.php/Installing_Code::Blocks_from_source_on_Linux page

VM OVA download page:
     https://bitnami.com/stack/mediawiki/virtual-machine

But to make the changes without affecting anyone until I submit the changes for approval to be incorporated into the wiki  it looks like I need a backup of the wiki to install it locally. Is there a backup of the wiki available anywhere or can I get a backup of the wiki from someone? If there is another way of doing this that someone has used or knows about that works please let me know. If I am going about this wrong please let me know.
 
Pages: 1 2 3 4 5 [6] 7 8 9 10