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

[BUG] Window arguments not working? #1133

Open
pagedMov opened this issue Jul 4, 2024 · 2 comments
Open

[BUG] Window arguments not working? #1133

pagedMov opened this issue Jul 4, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@pagedMov
Copy link

pagedMov commented Jul 4, 2024

Description of the bug

I try to create a window that takes arguments, like "(defwindow bar [arg1 arg2])" but keep getting this error:
error: Wrong type of expression
┌─ test.yuck:1:19

1 │ (defwindow my_bar [arg1 ?arg2]
│ ──────────── Expected a List here

→ Expected: List
Got: Array

I copy+pasted the window arguments example directly from the documentation and it's still throwing this error. I don't think it's my environment either because I just moved from NixOS to Arch and it was behaving like this in NixOS as well. I'm on 0.6.0-1, which is apparently the latest version, are the docs up to date?

Reproducing the issue

(defwindow my_bar [arg1 ?arg2]
:geometry (geometry
:x "0%"
:y "6px"
:width "100%"
:height { arg1 == "small" ? "30px" : "40px" }
:anchor "top center")
:stacking "bg"
:windowtype "dock"
:reserve (struts :distance "50px" :side "top")
(my_widget :arg2 arg2))

This is the window arguments example ripped straight out of the documentation. It's the only code in my eww.yuck config. Attempting to start the eww daemon throws an error saying it got an Array when it wanted a List.

@pagedMov pagedMov added the bug Something isn't working label Jul 4, 2024
@ovalkonia
Copy link
Contributor

I was not able to reproduce the issue, it works just fine for me. Can you provide some more context?

@elkowar
Copy link
Owner

elkowar commented Jul 7, 2024

Make sure you're using eww 0.6.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants