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
This is legit Python and as expected, running python foo.py prints the string bar.
However, pylsp is confused by the fact that foo.py and the foo module have the same name, and won't visit the definition of bar() from foo.py. Renaming foo.py to foo2.py works around the issue.
The text was updated successfully, but these errors were encountered:
Consider the following file tree:
With contents:
This is legit Python and as expected, running
python foo.py
prints the stringbar
.However, pylsp is confused by the fact that
foo.py
and thefoo
module have the same name, and won't visit the definition ofbar()
fromfoo.py
. Renamingfoo.py
tofoo2.py
works around the issue.The text was updated successfully, but these errors were encountered: