Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Warning "Mapping is not an object" #3763

Closed
apiraino opened this issue Nov 13, 2024 · 0 comments · Fixed by #3831
Closed

Warning "Mapping is not an object" #3763

apiraino opened this issue Nov 13, 2024 · 0 comments · Fixed by #3831

Comments

@apiraino
Copy link

[2024-11-13 10:50:58.164] [warning] Mapping is not an object

This warning appears when starting Waybar without defining the object window-rewrite in the configuration.

How to reproduce:

{
    "modules-left": ["sway/workspaces"],
    "sway/workspaces": {
      // "window-rewrite": {}
   }
}

Uncommenting window-rewrite silence this warning. I guess this value does not have a default and when it's checked here it returns the warning.

Could it help assigning a default when the config is loaded (maybe here)?

Thanks

c4rlo added a commit to c4rlo/Waybar that referenced this issue Dec 17, 2024
Fixes Alexays#3763.

Also a little code simplications while we're at it.
yuannan pushed a commit to yuannan/Waybar that referenced this issue Feb 20, 2025
Fixes Alexays#3763.

Also a little code simplications while we're at it.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant