BlingCorp / bling

Utilities for the awesome window manager
https://blingcorp.github.io/bling/
MIT License
852 stars 49 forks source link

require error in helpers #180

Closed necreativny closed 2 years ago

necreativny commented 2 years ago

im getting error: /usr/share/awesome/lib/awful/client/shape.lua:67: attempt to call local '_shape' (a table value) when i import blink. this error gets away if i comment shape import in helpers

-- ..bling/helpers/init.lua

return {
    client = require(... .. ".client"),
    color = require(... .. ".color"),
    filesystem = require(... .. ".filesystem"),
    -- shape = require(... .. ".shape"),
    time = require(... .. ".time"),
}
Nooo37 commented 2 years ago

That's weird. Can you post your rc.lua? What if you added local in the bling/helpers/shape.lua file? Maybe something is colliding there, there is no reason it shouldn't be local

-shape = {}
+local shape = {}
necreativny commented 2 years ago

ahh, right! i declared 'shape' in my global rc.lua, adding local it is imported properly