GithubHelp home page GithubHelp logo

Comments (9)

acmcelwee avatar acmcelwee commented on August 26, 2024 2

@Liquidmantis I was in the same position as you. I'm guessing this TODO is relevant to us:

-- TODO: Add instructions to README.md to call stackline:start(userPrefs) from init.lua, and remove this.
hs.timer.doUntil(function() -- {{{
return stackline.manager
end, function()
stackline.start()
end, 0.1) -- }}}

For myself, I fixed it by updating my init.lua to include this:

hs.timer.waitUntil(function()
  return stackline.manager
end, function() 
  stackline.manager:toggleIcons()
end, 0.1)

from stackline.

CyrilPeponnet avatar CyrilPeponnet commented on August 26, 2024 1

It fixed it for me indeed.

from stackline.

Liquidmantis avatar Liquidmantis commented on August 26, 2024 1

Ah, I found my problem by looking more closely at the stack trace. I had stackline.manager:toggleIcons() in my init.lua and commenting that out resolves the issue. I'm still digging around to figure out why that broke with the recent changes, though.

[Edit] maybe it's a race condition? Once things are loaded I can run that command in the Hammerspoon console and it toggles the icons as expected.

from stackline.

Liquidmantis avatar Liquidmantis commented on August 26, 2024

I just updated Stackline and get similar wfilter errors. I too have Yabai HEAD installed, but with the scripting additions, and had Stackline working until I updated just now.

from stackline.

Liquidmantis avatar Liquidmantis commented on August 26, 2024

Looks like this is from the hs.filter changes in 71dc951. If I checkout 4791ca1, which is where I think I was prior to updating, things work again. Checking out 71dc951 introduces the errors, though.

from stackline.

AdamWagner avatar AdamWagner commented on August 26, 2024

Hi @Liquidmantis @CyrilPeponnet

I'm sorry.
I'm new at this, and don't know how to "release" breaking updates. Maybe a pinned issue describing the changes?

Please update your init.lua file:

FROM:
local stackline = require "stackline.stackline.core"
or
local stackline = require "stackline.stackline.stackline"

TO:

stackline = require "stackline.stackline.stackline"

from stackline.

CyrilPeponnet avatar CyrilPeponnet commented on August 26, 2024

No worries, it works :p thanks for that.

from stackline.

Liquidmantis avatar Liquidmantis commented on August 26, 2024

@AdamWagner I had already switched to the global variable, unfortunately.
https://github.com/Liquidmantis/dotfiles/blob/master/hammerspoon/init.lua

@CyrilPeponnet this fixed it for you then?

from stackline.

AdamWagner avatar AdamWagner commented on August 26, 2024

You nailed it @acmcelwee. Thanks for helping out!

It sounds like completing that TODO would be a good thing to focus on next. #33

from stackline.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.