talonvoice / beta

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

NameError: Rules shadow these built-in rules: ['word'] #84

Closed rntz closed 4 years ago

rntz commented 4 years ago

If I make a talon file containing only the following:

word: insert('WORD')

than I observe the following error:

2020-06-26 14:19:32 DEBUG [~] /home/rntz/.talon/user/mine/test.talon
2020-06-26 14:19:32 ERROR cb error topic="update_speech" cb=<bound method SpeechSystem.update_grammars of <talon.scripting.speech_system.SpeechSystem object at 0x7f8b54049f10>>
   26:       lib/python3.7/threading.py:890| 
   25:       lib/python3.7/threading.py:926| 
   24:       lib/python3.7/threading.py:870| 
   23:                    talon/cron.py:112| 
   22: ------------------------------------# cron thread
   21:                    talon/cron.py:77 | 
   20:          talon/scripting/rctx.py:199| 
   19: ------------------------------------# 'cron' main:<lambda>()
   18:                      talon/fs.py:31 | 
   17:                      talon/fs.py:24 | 
   16:          talon/scripting/rctx.py:199| 
   15: ------------------------------------# 'fs' main:on_change()
   14:          app/resources/loader.py:565| 
   13:          app/resources/loader.py:519| 
   12:      talon/scripting/registry.py:154| 
   11:      talon/scripting/registry.py:396| 
   10:      talon/scripting/dispatch.py:98 | 
    9:      talon/scripting/dispatch.py:133| 
    8:      talon/scripting/dispatch.py:126| 
    7:          talon/scripting/rctx.py:201| 
    6: ------------------------------------# 'update_speech' main:update_grammars()
    5: ------------------------------------# stack splice
    4:          talon/scripting/rctx.py:199| 
    3: talon/scripting/speech_system.py:193| 
    2:         talon/grammar/grammar.py:44 | 
    1:              talon/grammar/vm.py:285| 
NameError: Rules shadow these built-in rules: ['word']

as far as I can tell, I currently have no other files that define a command word or word <user.word>. (I've commented it out of knausj's misc/formatters.talon, and taken a look for other occurences, but they're all of the form word $SOME-SPECIFIC-WORD, e.g. word queue)

lunixbochs commented 4 years ago

fixed in next release