You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When attempting to provide a default value for a choice object in a mapping rule, The following error is observed on the remote machine running in the virtual box.
Backedtrace
Error loading _terminal from C:\NatLink\NatLink\MacroSystem\_terminal.py
Traceback (most recent call last):
File "C:\NatLink\NatLink\MacroSystem\core\natlinkmain.py", line 322, in loadFile
imp.load_module(modName,fndFile,fndName,fndDesc)
File "C:\NatLink\NatLink\MacroSystem\_terminal.py", line 15, in <module>
import cli_typescript
File "C:\NatLink\NatLink\MacroSystem\cli_typescript.py", line 17, in <module>
class TypescriptRule(MappingRule):
File "C:\NatLink\NatLink\MacroSystem\cli_typescript.py", line 25, in TypescriptRule
Choice('modifiercommand', modifiercommand, None, None)
TypeError: __init__() takes at most 4 arguments (5 given)
Inclusion
_terminal.py
# Dragonfly module for controlling the Linux terminal# The context of this file will be strictly for terminal usefromaeneaimport*importcli_typescriptterminal_context=aenea.wrappers.AeneaContext(
ProxyAppContext(match='regex', title='(?i).*simon@simon.*'), # app_id='Terminal'AppContext(executable='Terminal')
)
grammar=Grammar("terminal", context=terminal_context)
....
grammar.add_rule(cli_typescript.TypescriptRule())
Nothing obvious is jumping out at me here. Both the old and new Dragonfly's Choice takes four arguments (plus implicit self), as do the testing mock and aenea's, so I'd expect this to work. Might try adding logging to see what exactly is being imported as Choice (I think you can just use print Choice before the crash and it should print to the Natlink window messages?) That should give you the filename where Choice is coming from, which would give more information. I don't know of a version in Aenea or related projects that takes 4 arguments (including self).
Most likely a configuration or install issue, though it's been awhile since I've worked actively on this. May also be worth asking on the dictation-toolbox Gitter.
When attempting to provide a default value for a choice object in a mapping rule, The following error is observed on the remote machine running in the virtual box.
Backedtrace
Inclusion
_terminal.py
Grammar
cli_typescript.py
The text was updated successfully, but these errors were encountered: