Recent Posts

Pages: 1 [2] 3 4 5 6 7 ... 10
11
Plugins development / Re: Code completion using LSP and clangd
« Last post by Pecan on May 01, 2024, 05:28:21 pm »
On Windows 11 opening the project file itself in Windows (not directly through Codeblocks) does not parse the project on opening. Reparsing is needed to be done manually. Doing so through Codeblocks works fine.
Steps to reproduce:
1. Codeblocks not running
2. Double-click on any project file *.cbp

On Plugin wiki https://wiki.codeblocks.org/index.php/CB_Clangd_Client the first link to the plugin repository page is not working.

For information, there is a discussion of doxygen support for Clangd - https://github.com/clangd/clangd/issues/529
Re: Fixed Clangd and parser not parsing when user cold starts CB via DDE. Commit rev 13515
12
Nightly builds / Re: The 27 April 2024 build (13513) is out.
« Last post by Miguel Gimenez on April 30, 2024, 04:32:07 pm »
OK, thank you
13
Nightly builds / Re: The 27 April 2024 build (13513) is out.
« Last post by Wkerry on April 30, 2024, 12:45:23 pm »
See https://sourceforge.net/p/codeblocks/tickets/663/ as it has then patch and looks like the patch has been accepted by Morten MacFly. Hopefully it will get merged quickly.
14
Nightly builds / Re: The 27 April 2024 build (13513) is out.
« Last post by Miguel Gimenez on April 30, 2024, 12:31:57 pm »
@danselmi, do you plan to commit this?
15
Using Code::Blocks / Re: CB with Wx Widgers giving normal console output
« Last post by Miguel Gimenez on April 30, 2024, 11:21:18 am »
It is possible, just go to Project->Properties->Build targets and change Type from "GUI application" to "Console application"
16
Using Code::Blocks / CB with Wx Widgers giving normal console output
« Last post by jmClifford on April 30, 2024, 08:34:59 am »
Hi. From the web (an example from a tutorial by a "Mr Luke") uses WxWidgets (not CB) and gives a console output.  The source is attached. 

Is this possible with CB and WxWidgets.??

This source (main.cpp) compiles OK.  An example of a compile is;
Quote
-------------- Clean: Debug in Events (compiler: GNU GCC Compiler)---------------

Cleaned "Events - Debug"

-------------- Build: Debug in Events (compiler: GNU GCC Compiler)---------------

g++.exe -pipe -mthreads -D__GNUWIN32__ -D__WXMSW__ -DWXUSINGDLL -DwxUSE_UNICODE -Wall -g -D__WXDEBUG__ -IC:\WxWidgetsSetup\include -IC:\WxWidgetsSetup\lib\gcc_dll\mswud -IC:\WxWidgetsSetup\include -IC:\WxWidgetsSetup\lib\gcc_dll -c C:\u\CodeBlock_C++\wx_WidgetsLuke\04_Events\main.cpp -o obj\Debug\main.o

windres.exe -IC:\WxWidgetsSetup\include -IC:\WxWidgetsSetup\lib\gcc_dll\mswud  -J rc -O coff -i C:\u\CODEBL~1\WX_WID~1\04_EVE~1\resource.rc -o obj\Debug\resource.res

g++.exe -LC:\WxWidgetsSetup\lib\gcc_dll -o bin\Debug\Events.exe obj\Debug\main.o  obj\Debug\resource.res -mthreads  -lwxmsw32ud C:\WxWidgetsSetup\lib\gcc_dll\libwxmsw32ud.a C:\WxWidgetsSetup\lib\gcc_dll\libwxmsw32u.a -mwindows
Output file is bin\Debug\Events.exe with size 828.74 KB

Process terminated with status 0 (0 minute(s), 5 second(s))
0 error(s), 0 warning(s) (0 minute(s), 5 second(s))


Regards JC......
17
Nightly builds / Re: The 27 April 2024 build (13513) is out.
« Last post by blauzahn on April 30, 2024, 12:46:20 am »
Thank you.

It compiles (tried on arch linux), a touched cbp or cpp file is detected like it should be.
One issue I observe in the "Open files List" is that relative paths are turned into
absolute paths. They should remain relative paths.

As for the code:
Code
#include <wx/fswatcher.h>
seems avoidable in FileExplorer.h if wxFileSystemWatcherEvent and wxFileSystemWatcher* are forward-declared. Compiletime is already not ideal when compiling cb.

Have you considered making
Code
wxFileSystemWatcher *m_fs_watcher;
a std::unique_ptr?

I like the fact that the patch is focussed on the necessary changes. Have you considered a second patch with refactorings e.g. moving initialization of non-static data-members in the ctor body into
a member initializer list  or using default member initializers?
18
Nightly builds / Re: The 27 April 2024 build (13513) is out.
« Last post by danselmi on April 29, 2024, 09:23:53 pm »
As promised
Find attached the previously mentioned patch.
19
Nightly builds / Re: The 27 April 2024 build (13513) is out.
« Last post by blauzahn on April 29, 2024, 01:58:16 pm »
As mentioned in the ticket: If C++17 is an acceptable lower limit, the std::filesystem will become available. If it provides the needed functionality to replace libgamin in cb, I would prefer std over wxWidgets. Since I have not used neither std::filesystem nor wxFilesystemwatcher yet, I can not say. At least it has a non-member function named 
Code
last_write_time
.
20
Nightly builds / Re: The 27 April 2024 build (13513) is out.
« Last post by Wkerry on April 29, 2024, 09:52:50 am »
See https://sourceforge.net/p/codeblocks/tickets/663/ for "Don't use deprecated gamin library", which may be helpful.
Pages: 1 [2] 3 4 5 6 7 ... 10