Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Visual Studio 2022 does not show intellisense when working with python #8126

Closed
balachander1964 opened this issue Jan 5, 2025 · 13 comments
Closed
Assignees

Comments

@balachander1964
Copy link

balachander1964 commented Jan 5, 2025

I am a python developer and am using Visual Studio 2022 to work with LangChain, OpenAI, and Vector Databases based projects. Visual Studio 2022 stopped bringing intellisense suggestions when typing my code. In addition, I am not able to enable intellisence from the options->Text Editor -> python -> General dialog box; check boxes that pertain to the intellisense are disabled. I deleted the .vs folder and restarted my VS environment. But nothing works. I will appreciate if you let me know how to fix this. Awaiting your reply. **
Steps to Reproduce

  1. Create a Python console application using Visual Studio 2022
    2.Add a source file that uses langchain, OpenAI, and VectorDB to implement Retrieval QA
    Close the project and exit VS. Restart the VS and losd the project and open the file again.
    3.After adding the import statement import langchain_community, type from langchain_community.

Expected behavior
The VS editor should list the members and child packages.

@StellaHuang95
Copy link
Contributor

Image
Thanks for reaching out. Does this happen to you consistently, or could be a race condition? Do you have the package installed in your active environment? Can you also go to Tools -> Options -> Python -> Analysis, set the log level to trace, repro the issue, can share the logs with us? This helps us diagnose if there's issue in Pylance, the language server that provides this feature.

@balachander1964
Copy link
Author

Hi Iappreciate your response to this issue. Sure, I will forward the logs today. I does not work even now. I see this problem in Visual Studio 2022 only while the VS Code works fine. As I am visually impaired, I totally depend only on VS 2022 and other editors does not support this level of accessibility. I will get beack with the logs today. Thanks

@balachander1964
Copy link
Author

Hi, Could you please let me know the path where I can find these log files? Awaiting your reply. Thanks

@balachander1964
Copy link
Author

Hi Stella, Forwarded here is the log from my VS 2022.

@balachander1964
Copy link
Author

activitylog.txt

@balachander1964
Copy link
Author

Hi Stella, The checkboxes that pertain to the intelisense appear disabled in the Tools->options->text editor->python item.
I will appreciate if you let me know how to fix this. Thank in advance.

@balachander1964
Copy link
Author

Forwarding my latest logs.

@balachander1964
Copy link
Author

activitylog.txt

@StellaHuang95
Copy link
Contributor

Hi @balachander1964, this is not the log we are looking for. If you could go to View -> Output -> Show output from Pylance, and save the logs to a .txt file and share that with us, that would be helpful. Please don't forget to change the log level to "Trace". Thank you.

@balachander1964
Copy link
Author

Sure Stella. I will forward the logs. Thanks

@balachander1964
Copy link
Author

activitylog.txt

@balachander1964
Copy link
Author

Uploading one more version of the log after running a python source file.
I tried to trigger the intellisense after running the source code as well.

activitylog_latest.txt

@balachander1964
Copy link
Author

This issue got sorted out after I installed the latest update.Thank you for your help.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants