promptflow icon indicating copy to clipboard operation
promptflow copied to clipboard

[BUG] [VSCode Extension] Generating tool meta... forever

Open Anbang-Hu opened this issue 3 years ago • 3 comments

Describe the bug When creating a new python node, visual editor could get stuck in Generating tool meta... Close and reopen visual editor can solve the issue.

How To Reproduce the bug Steps to reproduce the behavior, how frequent can you experience the bug:

This is not always reproducible. It happens occasionally.

image image

Screenshots

  1. On the VSCode primary side bar > the Prompt flow pane > quick access section. Find the "install dependencies" action. Please it and attach the screenshots there.
  2. Please provide other snapshots about the key steps to repro the issue.

Environment Information

  • Promptflow Package Version using pf -v: 0.1.0b7.post1
  • Operating System: Windows 10
  • Python Version using python --version: Python 3.9.18
  • VS Code version. v1.0.12
  • Prompt Flow extension version.
  • On the VS Code bottom pane > Output pivot > "prompt flow" channel, find the error message could be relevant to the issue and past them here. That would be helpful for our trouble shooting.
  • If your code to repro the issue is public and you want to share us, please share the link.

Additional context Add any other context about the problem here.

Anbang-Hu avatar Oct 13 '23 23:10 Anbang-Hu

Hi, @Anbang-Hu Are there any spaces in your directory? I have fixed a similar issue caused by that. Can you try the latest version of the extension 1.1.2?

naiyunzhang avatar Oct 18 '23 02:10 naiyunzhang

@naiyunzhang , I can't repro any more.

Anbang-Hu avatar Oct 25 '23 16:10 Anbang-Hu

I found this happens when there is an error in my file where the promptflow tool is defined. For example if I am using a python script and defining a tool there, and there is a mismatch between the inputs in the yaml and the inputs in my tool function, the generating tool meta will time out.

tyler-suard-parker avatar Jun 18 '24 17:06 tyler-suard-parker