noctalia-shell icon indicating copy to clipboard operation
noctalia-shell copied to clipboard

[BUG] build fails on 5213fae8

Open YuvrajSinghGitbub opened this issue 5 months ago • 2 comments

Submission checklist

  • [x] I have searched existing issues and confirmed this is not a duplicate.
  • [x] I am using the latest available version of Noctalia.

Bug description

Hello, the latest build 5213fae8cc0ebb0996d0df7cf5155d1d4cf4d7a6 fix(scripting): push nil for unhandled getConfig setting types fails to build. I am attaching the appropriate information below.

Steps to reproduce

git pull just build release && just install release

Expected behavior

Previously the build always used to succeed as it should

Actual behavior

Failing to properly build

Logs / error output

meson compile -C build-release
INFO: autodetecting backend as ninja
INFO: calculating backend command to run: /usr/bin/ninja -C /home/giogio/build/noctalia-shell/build-release
ninja: Entering directory `/home/giogio/build/noctalia-shell/build-release'
[9/509] Compiling C++ object notification_filter_test.p/src_notification_notification_filter.cpp.o
FAILED: [code=1] notification_filter_test.p/src_notification_notification_filter.cpp.o
c++ -Inotification_filter_test.p -I. -I.. -I../src -flto=auto -fdiagnostics-color=always -DNDEBUG -D_FILE_OFFSET_BITS=64 -std=c++20 -O3 -march=native -mtune=native -fomit-frame-pointer -ffunction-sections -fdata-sections -isystem../third_party/nlohmann -isystem../third_party/wuffs -isystem../third_party/tomlplusplus -MD -MQ notification_filter_test.p/src_notification_notification_filter.cpp.o -MF notification_filter_test.p/src_notification_notification_filter.cpp.o.d -o notification_filter_test.p/src_notification_notification_filter.cpp.o -c ../src/notification/notification_filter.cpp
../src/notification/notification_filter.cpp: In function ‘bool notificationMatchesBlacklist(const std::vector<std::__cxx11::basic_string<char> >&, const NotificationFilterFields&)’:
../src/notification/notification_filter.cpp:47:55: error: ‘const std::string’ {aka ‘const class std::__cxx11::basic_string<char>’} has no member named ‘contains’
   47 |     if (!token.empty() && !appName.empty() && appName.contains(token)) {
      |                                                       ^~~~~~~~
[10/509] Compiling C++ object process_test.p/src_core_process.cpp.o
FAILED: [code=1] process_test.p/src_core_process.cpp.o
c++ -Iprocess_test.p -I. -I.. -I../src -flto=auto -fdiagnostics-color=always -DNDEBUG -D_FILE_OFFSET_BITS=64 -std=c++20 -O3 -march=native -mtune=native -fomit-frame-pointer -ffunction-sections -fdata-sections -isystem../third_party/nlohmann -isystem../third_party/wuffs -isystem../third_party/tomlplusplus -MD -MQ process_test.p/src_core_process.cpp.o -MF process_test.p/src_core_process.cpp.o.d -o process_test.p/src_core_process.cpp.o -c ../src/core/process.cpp
../src/core/process.cpp: In function ‘bool {anonymous}::isSafeFlatpakAppId(std::string_view)’:
../src/core/process.cpp:101:32: error: ‘using std::string_view = class std::basic_string_view<char>’ {aka ‘class std::basic_string_view<char>’} has no member named ‘contains’
  101 |     if (appId.empty() || appId.contains('/') || appId.contains('\\')) {
      |                                ^~~~~~~~
../src/core/process.cpp:101:55: error: ‘using std::string_view = class std::basic_string_view<char>’ {aka ‘class std::basic_string_view<char>’} has no member named ‘contains’
  101 |     if (appId.empty() || appId.contains('/') || appId.contains('\\')) {
      |                                                       ^~~~~~~~
../src/core/process.cpp:104:19: error: ‘using std::string_view = class std::basic_string_view<char>’ {aka ‘class std::basic_string_view<char>’} has no member named ‘contains’
  104 |     return !appId.contains("..");
      |                   ^~~~~~~~
[18/509] Compiling C++ object noctalia.p/src_config_config_overrides.cpp.o
ninja: build stopped: subcommand failed.
error: recipe `build` failed on line 24 with exit code 1

Noctalia version

5213fae8cc0ebb0996d0df7cf5155d1d4cf4d7a6

Compositor

Niri

Distribution

Arch-based

Environment information

CPU: AMD Ryzen 5 3550H (8) @ 2.10 GHz
C compiler (gcc): gcc (GCC) 16.1.1 20260430
Meson: 1.11.1

Additional context

No response

YuvrajSinghGitbub avatar Jun 07 '26 17:06 YuvrajSinghGitbub

They just changed to c++23. Can you try: just rebuild release in that folder and see if that fixes it. If that doesn't work delete your build-* folders) and rerun your just commands.

Mathew-D avatar Jun 07 '26 17:06 Mathew-D

that did fix the issue. Thank you!

YuvrajSinghGitbub avatar Jun 07 '26 19:06 YuvrajSinghGitbub