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

Can't find the definition when using 'from xxx import *' in add folder to search path function. #7777

Closed
zhouwangyang opened this issue Dec 5, 2023 · 0 comments

Comments

@zhouwangyang
Copy link
Contributor

image

Steps to Reproduce

  1. module2.py file prepared with below code copied to c:\test
    def addcross(a: int, b: int): a = a+1 b = b+1 return a * b
  2. Right-click Search Paths Node in SE and select Add folder to Search Path.
  3. Type below code and make sure it works.
    from module2 import * print (module2.addcross(1,2))
    Expected behavior
    intelliSense for module2 works and print 6 in terminal.

Actual behavior
module2 can't be find, but it works from using 'import module2'
image

repro video
searchpath

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

1 participant