User forums > Nightly builds

The 27 April 2024 build (13513) is out.

<< < (2/3) > >>

blauzahn:
@danselmi: Great!

Wkerry:
See https://sourceforge.net/p/codeblocks/tickets/663/ for "Don't use deprecated gamin library", which may be helpful.

blauzahn:
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
--- End code ---
.

danselmi:
As promised
Find attached the previously mentioned patch.

blauzahn:
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>
--- End code ---
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;
--- End code ---
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?

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version