Closed fidgetingbits closed 4 years ago
after the new fixes to ctrl.py there is a new error:
ctrl.py
2020-07-29 09:24:36 IO EMIT ['buffer_list'] 2020-07-29 09:24:36 IO COMPILING 2020-07-29 09:24:36 IO dfa rules built in 0.220s 2020-07-29 09:24:36 IO dfa rules linked 0.046s 2020-07-29 09:24:37 IO minimize + cfg in 1.142s 2020-07-29 09:24:37 IO DECODING detecting in viterbi toks: ###########_bufferer#_list## 432.703 ###########_bufferer#_list## result: buffer list 2020-07-29 09:24:37 IO DECODED ['buffer', 'list'] 2020-07-29 09:24:37 IO ResourceContext("user.fidget.apps.vim.vim.linux.talon") 2020-07-29 09:24:37 IO TalonScript(code='user.vim_command_mode_exterm(":ls\\n")') 2020-07-29 09:24:37 WARNING [watchdog] "talon.vad.<lambda>" @2.0s 43: lib/python3.7/threading.py:890 | 42: lib/python3.7/threading.py:926 | 41: lib/python3.7/threading.py:870 | 40: talon/cron.py:112 | 39: ----------------------------------------------# cron thread 38: talon/cron.py:77 | 37: talon/scripting/rctx.py:199 | 36: ----------------------------------------------# 'cron' main:call() 35: talon/vad.py:16 | 34: talon/engines/w2l.py:601 | 33: talon/scripting/dispatch.py:98 | 32: talon/scripting/dispatch.py:133 | 31: talon/scripting/dispatch.py:124 | 30: talon/scripting/rctx.py:199 | 29: talon/scripting/speech_system.py:41 | 28: talon/scripting/dispatch.py:98 | 27: talon/scripting/dispatch.py:133 | 26: talon/scripting/dispatch.py:124 | 25: talon/scripting/rctx.py:199 | 24: talon/scripting/speech_system.py:302 | 23: talon/scripting/actions.py:56 | 22: talon/scripting/types.py:249 | 21: talon/scripting/core.py:84 | 20: talon/scripting/actions.py:56 | 19: talon/scripting/types.py:249 | 18: talon/scripting/core.py:106 | 17: talon/scripting/actions.py:56 | 16: talon/scripting/types.py:249 | 15: talon/scripting/core.py:125 | 14: talon/scripting/actions.py:56 | 13: talon/scripting/types.py:249 | 12: user/fidget/debug/emit_context_handler.py:13 | script.run(actions, namespace=m) 11: talon/scripting/talon_script.py:521 | 10: talon/scripting/talon_script.py:431 | 9: talon/scripting/talon_script.py:210 | 8: talon/scripting/talon_script.py:398 | 7: talon/scripting/actions.py:56 | 6: talon/scripting/types.py:249 | 5: user/fidget/apps/vim/vim.py:1047| v.set_command_mode_exterm() 4: user/fidget/apps/vim/vim.py:1242| self.adjust_mode(self.COMMAND, escape_.. 3: user/fidget/apps/vim/vim.py:1275| escape_terminal=escape_terminal, 2: user/fidget/apps/vim/vim.py:1361| self.wait_mode_change("n") 1: user/fidget/apps/vim/vim.py:1298| time.sleep(timeout) 2020-07-29 09:24:38 ERROR 16: talon/scripting/talon_script.py:431 | 15: talon/scripting/talon_script.py:210 | 14: talon/scripting/talon_script.py:398 | 13: talon/scripting/actions.py:56 | 12: ------------------------------------# cron thread 11: talon/scripting/types.py:249 | 10: user/fidget/apps/vim/vim.py:1048| actions.insert(cmd) 9: ------------------------------------# 'cron' main:<lambda>() 8: talon/scripting/actions.py:56 | 7: talon/scripting/types.py:249 | 6: talon_plugins/main.py:34 | actions.key(c) 5: talon/scripting/actions.py:56 | 4: talon/scripting/types.py:249 | 3: talon_plugins/main.py:71 | ctrl.key_press(keyname, **kwargs) 2: ------------------------------------# 'phrase' user.w2l:_redispatch() 1: talon/linux/ctrl.py:306 | UnboundLocalError: local variable 'keycode_shift_l' referenced before assignment [The below error was raised while handling the above exception(s)] 2020-07-29 09:24:38 ERROR cb error topic="phrase" cb=<bound method SpeechSystem.engine_event of <talon.scripting.speech_system.SpeechSystem object at 0x6489930f1fd0>> 38: lib/python3.7/threading.py:890| 37: lib/python3.7/threading.py:926| 36: lib/python3.7/threading.py:870| 35: talon/cron.py:112| 34: ---------------------------------------------# cron thread 33: talon/cron.py:77 | 32: talon/scripting/rctx.py:199| 31: ---------------------------------------------# 'cron' main:<lambda>() 30: talon/vad.py:16 | 29: talon/engines/w2l.py:601| 28: talon/scripting/dispatch.py:98 | 27: talon/scripting/dispatch.py:133| 26: talon/scripting/dispatch.py:124| 25: talon/scripting/rctx.py:199| 24: ---------------------------------------------# 'phrase' user.w2l:_redispatch() 23: talon/scripting/speech_system.py:41 | 22: talon/scripting/dispatch.py:98 | 21: talon/scripting/dispatch.py:133| 20: talon/scripting/dispatch.py:124| 19: talon/scripting/rctx.py:201| 18: ---------------------------------------------# 'phrase' user.w2l:engine_event() 17: ---------------------------------------------# stack splice 16: talon/scripting/rctx.py:199| 15: talon/scripting/speech_system.py:302| 14: talon/scripting/actions.py:56 | 13: talon/scripting/types.py:249| 12: talon/scripting/core.py:84 | 11: talon/scripting/actions.py:56 | 10: talon/scripting/types.py:249| 9: talon/scripting/core.py:106| 8: talon/scripting/actions.py:56 | 7: talon/scripting/types.py:249| 6: talon/scripting/core.py:125| 5: talon/scripting/actions.py:56 | 4: talon/scripting/types.py:249| 3: user/fidget/debug/emit_context_handler.py:13 | script.run(actions, namespace=m) 2: talon/scripting/talon_script.py:521| 1: talon/scripting/talon_script.py:435| talon.scripting.talon_script.TalonScriptError: > user.vim_command_mode_exterm(':ls\n') UnboundLocalError: local variable 'keycode_shift_l' referenced before assignment 2020-07-29 09:24:38 IO [audio]=1050.000ms [emit]=513.241ms (0.49x) [decode]=1.640ms (0.00x) [total]=514.881ms (0.49x) 2020-07-29 09:24:38 IO
Another example:
2020-07-29 10:31:45 IO EMIT ['phrase_though_i_am_not_clear_why_at_the_moment'] 2020-07-29 10:31:45 IO DECODING detecting in viterbi toks: ###########_phrase###_though#_i#_am##_not#_clear###_why#_at#_the#_moment## 804.912 ###########_phrase###_though#_i#_am##_not#_clear###_why#_at#_the#_moment## 803.052 ###########_phrase###_though#_i#_am##_not#_clear###_why#_at#_the#_moment## 803.027 ###########_phrase###_though#_i#_am##_not#_clear###y#_at#_the#_moment## 802.196 ###########_phrase###_though#_i#_am##_not#_clear###_why#_at_at_the#_moment## 802.139 ###########_phrase###_though#_i_i_am##_not#_clear###_why#_at#_the#_moment## 801.572 ###########_phrase###_though#_i#_am#_not_not#_clear###_why#_at#_the#_moment## 801.189 ###########_phrase###_though#_i#_am##_not#_clear###_why#_at#_that#_moment## 801.167 ###########_phrase###_though#_i#_am##_not#_clear###y#_at#_the#_moment## 800.802 ###########_phrase###_though#_i_i_am##_not#_clear###_why#_at#_the#_moment## 800.621 ###########_phrase###_though#_i#_am##_not#_clear##_why_why#_at#_the#_moment## 800.343 ###########_phrase###_though#_i#_am##_nott_clear###_why#_at#_the#_moment## 800.336 ###########_phrase###_though#_i#_am##_not#_clear###_why#_at_at_the#_moment## 800.311 ###########_phrase###_though#_i#_am##_not#_clear###y#_at_at_the#_moment## 800.254 ###########_phrase###_though#_i_i_am##_not#_clear###y#_at#_the#_moment## 800.135 ###########_phrase###_though#_i#_am##_not#_clear###_why#_at#_the#_moment_moment# 800.008 ###########_phrase###_though#_i#_am_am#_not#_clear###_why#_at#_the#_moment## 799.929 ###########_phrase###_though#_i#_am##_not#_clear###_why#_at#_the_the_moment## 799.712 ###########_phrase###_though#_i#_am#_not_not#_clear###_why#_at#_the#_moment## 799.687 ###########_phrase###_though#_i#_am#_not_not#_clear###y#_at#_the#_moment## 799.593 ###########_phrase###_though#_i#_a##_not#_clear###_why#_at#_the#_moment## 799.511 ###########_phrase###_though#_i#_am##_not#_clear###_why#_at#_thee_moment## 799.424 ###########_phrase###_though#_i_i_am##_not#_clear###_why#_at_at_the#_moment## 799.001 ###########_phrase###_though#_i#_am##_not#_clear###_why#_at#_the#_mo## result: phrase though i am not clear why at the moment 2020-07-29 10:31:46 IO DECODED ['phrase', 'though', 'i', 'am', 'not', 'clear', 'why', 'at', 'the', 'moment'] 2020-07-29 10:31:46 IO ResourceContext("user.fidget.misc.formatters.talon") 2020-07-29 10:31:46 IO TalonScript(code='insert(user.text)') 2020-07-29 10:31:46 IO phrase though I am not clear why at the moment 2020-07-29 10:31:46 ERROR 12: talon/scripting/talon_script.py:431| 11: talon/scripting/talon_script.py:210| 10: talon/scripting/talon_script.py:398| 9: talon/scripting/actions.py:56 | 8: -----------------------------------# cron thread 7: talon/scripting/types.py:249| 6: talon_plugins/main.py:34 | actions.key(c) 5: -----------------------------------# 'cron' main:<lambda>() 4: talon/scripting/actions.py:56 | 3: talon/scripting/types.py:249| 2: talon_plugins/main.py:71 | ctrl.key_press(keyname, **kwargs) 1: talon/linux/ctrl.py:306| UnboundLocalError: local variable 'keycode_shift_l' referenced before assignment [The below error was raised while handling the above exception(s)] 2020-07-29 10:31:46 ERROR cb error topic="phrase" cb=<bound method SpeechSystem.engine_event of <talon.scripting.speech_system.SpeechSystem object at 0x6489930f1fd0>> 38: lib/python3.7/threading.py:890| 37: lib/python3.7/threading.py:926| 36: lib/python3.7/threading.py:870| 35: talon/cron.py:112| 34: ---------------------------------------------# cron thread 33: talon/cron.py:77 | 32: talon/scripting/rctx.py:199| 31: ---------------------------------------------# 'cron' main:<lambda>() 30: talon/vad.py:16 | 29: talon/engines/w2l.py:601| 28: talon/scripting/dispatch.py:98 | 27: talon/scripting/dispatch.py:133| 26: talon/scripting/dispatch.py:124| 25: talon/scripting/rctx.py:199| 24: ---------------------------------------------# 'phrase' user.w2l:_redispatch() 23: talon/scripting/speech_system.py:41 | 22: talon/scripting/dispatch.py:98 | 21: talon/scripting/dispatch.py:133| 20: talon/scripting/dispatch.py:124| 19: talon/scripting/rctx.py:201| 18: ---------------------------------------------# 'phrase' user.w2l:engine_event() 17: ---------------------------------------------# stack splice 16: talon/scripting/rctx.py:199| 15: talon/scripting/speech_system.py:302| 14: talon/scripting/actions.py:56 | 13: talon/scripting/types.py:249| 12: talon/scripting/core.py:84 | 11: talon/scripting/actions.py:56 | 10: talon/scripting/types.py:249| 9: talon/scripting/core.py:106| 8: talon/scripting/actions.py:56 | 7: talon/scripting/types.py:249| 6: talon/scripting/core.py:125| 5: talon/scripting/actions.py:56 | 4: talon/scripting/types.py:249| 3: user/fidget/debug/emit_context_handler.py:13 | script.run(actions, namespace=m) 2: talon/scripting/talon_script.py:521| 1: talon/scripting/talon_script.py:435| talon.scripting.talon_script.TalonScriptError: > insert(user.text) UnboundLocalError: local variable 'keycode_shift_l' referenced before assignment 2020-07-29 10:31:46 IO [audio]=2550.000ms [emit]=408.387ms (0.16x) [decode]=461.176ms (0.18x) [total]=869.563ms (0.34x) 2020-07-29 10:31:46 IO
after the new fixes to
ctrl.py
there is a new error:Another example: