chaosparrot / talon_hud

Unofficial Talon Head Up Display scripts
68 stars 29 forks source link

log flooded with errors in Talon v0.2.0-349-gab2a #16

Closed seabadger closed 2 years ago

seabadger commented 2 years ago

After latest upgrade (to v0.2.0-349-gab2a), seeing a lot of this in my log:

2022-02-21 12:20:28 ERROR cb error topic="draw" cb=<bound method BaseWidget.draw_cycle of <user.talon_hud.widgets.statusbar.HeadUpStatusBar object at 0x118370e20>>
    9:                     talon/canvas.py:17 | 
    8:                     talon/canvas.py:164| 
    7:         talon/scripting/dispatch.py:144| 
    6:         talon/scripting/dispatch.py:135| 
    5: ---------------------------------------# [stack splice]
    4:             talon/scripting/rctx.py:233| # 'draw' user.talon_hud.display:draw_cycle()
    3:       user/talon_hud/base_widget.py:184| continue_drawing = self.draw(canvas)
    2: user/talon_hud/widgets/statusbar.py:226| if icon['image'] is not None and self...
    1:             user/talon_hud/theme.py:43 | if (full_image_name in self.image_dict):
TypeError: unhashable type: 'set'

From aegis on Talon slack:

Remove the natural language from the hud display for now to fix it
(https://talonvoice.slack.com/archives/G9YTMSZ2T/p1645464189259179)
This thing I think? https://github.com/chaosparrot/talon_hud/blob/master/display.py#L100
[display.py](https://github.com/chaosparrot/talon_hud/blob/master/display.py)
        # self.subscribe_content_id('status_bar', 'language')       
<https://github.com/[chaosparrot/talon_hud](https://github.com/chaosparrot/talon_hud)|chaosparrot/talon_hud>chaosparrot/talon_hud | Added by [GitHub](https://talonvoice.slack.com/services/B023ENALRT2)
(https://talonvoice.slack.com/archives/G9YTMSZ2T/p1645464240772459)
Otherwise you'll need to wait for chaosparrot or someone to fix the fact that the HUD assumes you can only have one conceptual language active at a time

commenting out the suggested line helped.

chaosparrot commented 2 years ago

I just pushed a fix to master for this issue - Please update to the latest version of the HUD to have it fixed