Source: llvm-toolchain-14
Version: 1:14.0.6-2
Severity: important
Usertags: protobuf3_21
Tags: ftbfs bookworm sid

Hi,

Currently your package FTBFS for other reasons already, but the
upcoming Protobuf transition will also break it. I attach the fixing
patch to make it easier for you.

Regards,
Laszlo/GCS
diff -Nur a/clang-tools-extra/clangd/index/remote/monitor/Monitor.cpp b/clang-tools-extra/clangd/index/remote/monitor/Monitor.cpp
--- a/clang-tools-extra/clangd/index/remote/monitor/Monitor.cpp	2022-01-23 01:26:53.000000000 +0100
+++ b/clang-tools-extra/clangd/index/remote/monitor/Monitor.cpp	2022-09-08 19:17:39.103577486 +0200
@@ -67,8 +67,8 @@
       google::protobuf::util::MessageToJsonString(Response, &Output, Options);
   if (!JsonStatus.ok()) {
     clang::clangd::elog("Can not convert response ({0}) to JSON ({1}): {2}\n",
-                        Response.DebugString(), JsonStatus.error_code(),
-                        JsonStatus.error_message().as_string());
+                        Response.DebugString(), (int)JsonStatus.code(),
+                        JsonStatus.message().as_string());
     return -1;
   }
   llvm::outs() << Output;

Reply via email to