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
Can't implement expert_command with path to module name with error "Couldn't find {prompted_path} in the tree" because the tree has not yet been populate by the others commands.
# Check path validity when sending the command and not before for integtest compatibility
topnode = self.topnode
node = None
r = Resolver('name')
try:
node = r.get(topnode, node_path)
except Exception as ex:
raise click.BadParameter(f"Couldn't find {node_path} in the tree") from ex
The text was updated successfully, but these errors were encountered:
Can't implement expert_command with path to module name with error "Couldn't find {prompted_path} in the tree" because the tree has not yet been populate by the others commands.
Looks like the path is being checked before the execution time of the command here : "@accept_path(argument=True)".
hot fix on my local nanorc :
replace @accept_path(argument=True) by @click.argument('node-path', type=str)
Move the node check and retrive it when sending the command.
The text was updated successfully, but these errors were encountered: