talonvoice / beta

Issue tracker for the private Talon Beta
10 stars 0 forks source link

dictate.parse_words action takes a capture, which doesn't work with .talon #26

Closed knausj85 closed 4 years ago

knausj85 commented 4 years ago

.talon:

(say | speak) <phrase> [over]: 
    insert(dictate.join_words(dictate.parse_words(phrase)))

or

(say | speak) <dgndictation> [over]: 
    insert(dictate.join_words(dictate.parse_words(dgndictation)))

Error:

`2020-02-22 12:47:09    IO running script TalonScript(code='insert(dictate.join_words(dictate.parse_words(dgndictation)))') capture= say this is a\determiner test
2020-02-22 12:47:10 ERROR cb error topic="phrase" cb=<bound method SpeechSystem.engine_event of <talon.scripting.speech_system.SpeechSystem object at 0x112e93250>>
   48:       lib/python3.7/threading.py:890| 
   47:       lib/python3.7/threading.py:926| 
   46:       lib/python3.7/threading.py:870| 
   45:                    talon/cron.py:110| 
   44: ------------------------------------# cron thread
   43:                    talon/cron.py:75 | 
   42:          talon/scripting/rctx.py:169| 
   41: ------------------------------------# 'cron' talon_plugins.engines.dragon:<lambda>()
   40:      talon/scripting/dispatch.py:91 | 
   39:      talon/scripting/dispatch.py:97 | 
   38:      talon/scripting/dispatch.py:132| 
   37:      talon/scripting/dispatch.py:123| 
   36:          talon/scripting/rctx.py:169| 
   35: ------------------------------------# 'phrase' talon_plugins.engines.dragon:_redispatch()
   34: talon/scripting/speech_system.py:44 | 
   33:      talon/scripting/dispatch.py:97 | 
   32:      talon/scripting/dispatch.py:132| 
   31:      talon/scripting/dispatch.py:123| 
   30:          talon/scripting/rctx.py:171| 
   29: ------------------------------------# 'phrase' talon_plugins.engines.dragon:engine_event()
   28: ------------------------------------# stack splice
   27:          talon/scripting/rctx.py:169| 
   26: talon/scripting/speech_system.py:278| 
   25:       talon/scripting/actions.py:32 | 
   24:         talon/scripting/types.py:238| 
   23:          talon/scripting/core.py:82 | 
   22:       talon/scripting/actions.py:32 | 
   21:         talon/scripting/types.py:238| 
   20:          talon/scripting/core.py:104| 
   19:       talon/scripting/actions.py:32 | 
   18:         talon/scripting/types.py:238| 
   17:          talon/scripting/core.py:122| 
   16:       talon/scripting/actions.py:32 | 
   15:         talon/scripting/types.py:238| 
   14:          talon/scripting/core.py:144| 
   13:  talon/scripting/talon_script.py:280| 
   12:  talon/scripting/talon_script.py:270| 
   11:  talon/scripting/talon_script.py:152| 
   10:  talon/scripting/talon_script.py:152| 
    9:  talon/scripting/talon_script.py:149| 
    8:  talon/scripting/talon_script.py:152| 
    7:  talon/scripting/talon_script.py:152| 
    6:  talon/scripting/talon_script.py:149| 
    5:  talon/scripting/talon_script.py:153| 
    4:  talon/scripting/talon_script.py:257| 
    3:       talon/scripting/actions.py:32 | 
    2:         talon/scripting/types.py:238| 
    1:          talon/scripting/core.py:250| 
AttributeError: 'Phrase' object has no attribute 'dgndictation'`
lunixbochs commented 4 years ago

Will be fixed in next beta