Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

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

VSCode IntelliSense can't find the imports #5529

Closed
totkeks opened this issue Feb 15, 2025 · 2 comments
Closed

VSCode IntelliSense can't find the imports #5529

totkeks opened this issue Feb 15, 2025 · 2 comments

Comments

@totkeks
Copy link

totkeks commented Feb 15, 2025

The bug

I am using textual inside Visual Studio Code and have the issue that the imports are not properly auto-completed, as can be seen in the screenshot. Even clicking the more matches can't find it.

Image

The imports themselves work, when I add them manually. Like from textual.widgets import ... and then I get autocomplete for the classes inside.

Is there anything that textual does different when packaging their package / modules? Or is that rather an issue with the official Python extension in VSCode?

Copy link

We found the following entry in the FAQ which you may find helpful:

Feel free to close this issue if you found an answer in the FAQ. Otherwise, please give us a little time to review.

This is an automated reply, generated by FAQtory

@willmcgugan
Copy link
Collaborator

It works for me. Have you selected the appropriate Venv where Textual is imported?

Image

@Textualize Textualize locked and limited conversation to collaborators Feb 15, 2025
@willmcgugan willmcgugan converted this issue into discussion #5532 Feb 15, 2025

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants