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
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.