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

jq error when having too deep sway window tree #151

Open
quantenzitrone opened this issue Aug 23, 2024 · 0 comments
Open

jq error when having too deep sway window tree #151

quantenzitrone opened this issue Aug 23, 2024 · 0 comments

Comments

@quantenzitrone
Copy link

quantenzitrone commented Aug 23, 2024

Because I use a script called autotiling on sway, I often end up with deep nested workspace layouts.

it has to be veeery deep for the error (it mostly doesn't get that far tho)
#1: root "root"
  #2147483647: output "__i3"
    #2147483646: workspace "__i3_scratch"
  #3: output "eDP-1"
    #4: workspace "0"
      #1570: con "(null)"
        #1597: con "(null)"
          #1608: con "(null)"
            #1613: con "(null)"
              #1616: con "(null)"
                #1619: con "(null)"
                  #1628: con "(null)"
                    #1632: con "(null)"
                      #1655: con "(null)"
                        #1672: con "(null)"
                          #1688: con "(null)"
                            #1694: con "(null)"
                              #1703: con "(null)"
                                #1735: con "(null)"
                                  #1740: con "(null)"
                                    #1745: con "(null)"
                                      #1751: con "(null)"
                                        #1756: con "(null)"
                                          #1761: con "(null)"
                                            #1766: con "(null)"
                                              #1772: con "(null)"
                                                #1777: con "(null)"
                                                  #1782: con "(null)"
                                                    #1787: con "(null)"
                                                      #1793: con "(null)"
                                                        #1798: con "(null)"
                                                          #1803: con "(null)"
                                                            #1808: con "(null)"
                                                              #1813: con "(null)"
                                                                #1818: con "(null)"
                                                                  #1823: con "(null)"
                                                                    #1829: con "(null)"
                                                                      #1834: con "(null)"
                                                                        #1841: con "(null)"
                                                                          #1846: con "(null)"
                                                                            #1851: con "(null)"
                                                                              #1856: con "(null)"
                                                                                #1861: con "(null)"
                                                                                  #1866: con "(null)"
                                                                                    #1871: con "(null)"
                                                                                      #1876: con "(null)"
                                                                                        #1881: con "(null)"
                                                                                          #1886: con "(null)"
                                                                                            #1891: con "(null)"
                                                                                              #1896: con "(null)"
                                                                                                #1901: con "(null)"
                                                                                                  #1906: con "(null)"
                                                                                                    #1911: con "(null)"
                                                                                                      #1916: con "(null)"
                                                                                                        #1921: con "(null)"
                                                                                                          #1926: con "(null)"
                                                                                                            #1931: con "(null)"
                                                                                                              #1936: con "(null)"
                                                                                                                #1941: con "(null)"
                                                                                                                  #1951: con "(null)"
                                                                                                                    #1956: con "(null)"
                                                                                                                      #1961: con "(null)"
                                                                                                                        #1966: con "(null)"
                                                                                                                          #1971: con "(null)"
                                                                                                                            #1976: con "(null)"
                                                                                                                              #1981: con "(null)"
                                                                                                                                #1986: con "(null)"
                                                                                                                                  #1991: con "(null)"
                                                                                                                                    #1996: con "(null)"
                                                                                                                                      #2001: con "(null)"
                                                                                                                                        #2006: con "(null)"
                                                                                                                                          #2011: con "(null)"
                                                                                                                                            #2016: con "(null)"
                                                                                                                                              #2021: con "(null)"
                                                                                                                                                #2026: con "(null)"
                                                                                                                                                  #2031: con "(null)"
                                                                                                                                                    #2037: con "(null)"
                                                                                                                                                      #2042: con "(null)"
                                                                                                                                                        #2047: con "(null)"
                                                                                                                                                          #2055: con "(null)"
                                                                                                                                                            #2104: con "(null)"
                                                                                                                                                              #2109: con "(null)"
                                                                                                                                                                #2114: con "(null)"
                                                                                                                                                                  #2119: con "(null)"
                                                                                                                                                                    #2125: con "(null)"
                                                                                                                                                                      #2130: con "(null)"
                                                                                                                                                                        #2135: con "(null)"
                                                                                                                                                                          #2143: con "(null)"
                                                                                                                                                                            #175: con "New Issue · franciscolourenco/done — Mozilla Firefox" (xdg_shell, pid: 829354, app_id: "firefox")
                                                                                                                                                                          #2139: con "(null)"
                                                                                                                                                                            #2138: con "swaymsg -t get_tree  ~" (xdg_shell, pid: 2739535, app_id: "Alacritty")

(by the way it took sway 12 seconds to swaymsg split none that 😂)

While this is a bug in autotiling and not in done, it also has effects on done:

  • the deeper the nesting the slower the startup performance of fish
  • at a certain point (something near that what I pasted above) jq returns an error like this:
jq: parse error: Exceeds depth limit for parsing at line 3326, column 352

I'm opening this, because maybe someone will have the same problem and can't find an answer (like me for a while) and mayybe this can be mitigated somehow (but I really don't expect it to be).

So feel free to close.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant