community: Cannot use 'attribute' snippet in typescriptreact files

I tried to use snip attribute in a typescript react file and I got this error:

2024-05-20 07:44:06.559 ERROR cb error topic="phrase" cb=SpeechSystem.engine_event
   16:      lib/python3.11/threading.py:995 * # cron thread
   15:      lib/python3.11/threading.py:1038* 
   14:      lib/python3.11/threading.py:975 * 
   13:                    talon/cron.py:156 | 
   12:                     talon/vad.py:23  | 
   11:                     talon/vad.py:129 | 
   10: talon/scripting/speech_system.py:369 | 
    9:             talon/engines/w2l.py:742 | 
    8:      talon/scripting/dispatch.py:134 | # 'phrase' main:EngineProxy._redispatch()
    7: talon/scripting/speech_system.py:66  | 
    6: -------------------------------------# [stack splice]
    5:      talon/scripting/dispatch.py:134 | # 'phrase' main:SpeechSystem.engine_event()
    4: talon/scripting/speech_system.py:442 | 
    3:      talon/scripting/executor.py:111 | 
    2:  talon/scripting/talon_script.py:707 | 
    1:  talon/scripting/talon_script.py:610 | 
talon.scripting.talon_script.TalonScriptError: 
 in script at /Users/tkma6d4/.talon/user/community/core/snippets/snippets.talon:1:
 > user.insert_snippet_by_name(snippet)
ValueError: Unknown snippet 'html.attribute'

I am on latest (presently this sha) of community and all of my custom snippets can be found here.

Expected behavior: snippet would be inserted Actual behavior: an error in talon logs

About this issue

  • Original URL
  • State: closed
  • Created 3 years ago
  • Comments: 20 (13 by maintainers)

Commits related to this issue

Most upvoted comments

I don’t have the time to debug your make file. Please try this with a unmodified community. I can’t recreate the problem on my end and I need to make sure that it’s not something with your set up.

I can’t find an attribute snippet in your linked directory. For the future is probably better if you link to a specific commit sha instead of master. If you could provide me with the snippet you were using that fails for you I can try to debug this.