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
Describe the bug
According to the documentation, there should be a "Visual editor" option when open flow.dag.yaml file in VSCode. However, I didn't see "Visual editor" in my VSCode.
How To Reproduce the bug
Steps to reproduce the behavior, how frequent can you experience the bug:
Follow this documentation to create an init flow via pf.
Once the project is created, open the flow.dag.yaml file in VSCode.
Didn't see any "Visual editor" option in the editor.
Expected behavior
See "Visual editor" on the top-left corner of the file editor.
Screenshots
Running Information(please complete the following information):
Promptflow Package Version using pf -v: 0.1.0b5
Operating System: Windows 11
Python Version using python --version: Python 3.11.4
VSCode version: 1.82.0
Additional context
Wonder if it's virtual env related.
Prompt flow VSCode extension is installed.
I use a virtual environment with VSCode workspace. promptflow and promptflow-tools are installed in the virtual env.
I can see the Prompt flow VSCode extension complains about missing promptflow and promptflow-tools. Maybe the extension does not support virtual env?!
The text was updated successfully, but these errors were encountered:
@Vivihung if you just update the promptflow SDK, you may need to reload your VSCode window, and then check the install dependecy again to see whether you venv can pickup the latest library, and then you cango to flow.dag.yaml to select the venv you have pf installed, which you should be able to see the visual editor
Thanks for your suggestions. I can see the visual editor on one of my machine (not the repro one though). Will spend a bit more time with the repro machine and share findings here.
Update on my investigation - The problem seems related to the VSCode Python extension. The reason the PF dependencies don't get detected correctly is due to the Python interpreter wasn't set to the right virtual env, and cannot be updated.
An easy way to identify this issue is to open a python file in VSCode. If the Python interpreter in the VSCode status toolbar (in bottom of the VSCode window) shows warning even selecting the right env python from the command bar, then you hit this issue.
My way to resolve it is
Uninstall all VSCode extensions that depends on the Python extension.
Describe the bug
According to the documentation, there should be a "Visual editor" option when open flow.dag.yaml file in VSCode. However, I didn't see "Visual editor" in my VSCode.
How To Reproduce the bug
Steps to reproduce the behavior, how frequent can you experience the bug:
pf
.flow.dag.yaml
file in VSCode.Expected behavior
See "Visual editor" on the top-left corner of the file editor.
Screenshots
Running Information(please complete the following information):
pf -v
: 0.1.0b5python --version
: Python 3.11.4Additional context
Wonder if it's virtual env related.
The text was updated successfully, but these errors were encountered: