Waybar icon indicating copy to clipboard operation
Waybar copied to clipboard

The clock disappears

Open yamadharma opened this issue 2 years ago • 3 comments

Error after start waybar:

[error] clock: ios_base::clear: unspecified iostream_category error

yamadharma avatar Sep 26 '24 16:09 yamadharma

I also encountered this problem when using Gentoo Linux + LLVM profile. This is a problem with dev-libs/date. I tried to submit a PR to gentoo. You can use the following patch

diff --git a/src/tz.cpp b/src/tz.cpp
index 89a08fd..872d262 100644
--- a/src/tz.cpp
+++ b/src/tz.cpp
@@ -603,6 +604,7 @@ static
std::string
get_alpha_word(std::istream& in)
{
+ std::ws(in);
std::string s;
while (!in.eof() && std::isalpha(in.peek()))
s.push_back(static_cast<char>(in.get()));

suoyuan666 avatar Oct 05 '24 13:10 suoyuan666

Thank you! This solved the problem.

yamadharma avatar Oct 05 '24 14:10 yamadharma

Closing — this was resolved/answered in the thread (config, environment, external dependency, or upstream — not a Waybar bug still open). Feel free to reopen if you're still stuck. 🙏

Alexays avatar Jul 03 '26 23:07 Alexays