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
{{ message }}
Repository navigation
Missing autocompletion for python files in folders without __init__.py (Python Language Server) #2213
Extension version (available under the Extensions sidebar): 2018.7.0
OS and version: macOS 10.13.5
Python version (& distribution if applicable, e.g. Anaconda): 3.6
Type of virtual environment used (N/A | venv | virtualenv | conda | ...): virtualenv
Relevant/affected Python packages and their versions: None
Actual behavior
Expected behavior
Normal completion for nested files
Steps to reproduce:
Trying to import from python file in folder without __init__.py
Logs
Logs for completed foo.bar()
Starting Microsoft Python language server.
[Info - 10:05:14 AM] Created Microsoft.PythonTools.Interpreter.Ast.AstPythonInterpreter instance from Microsoft.PythonTools.Interpreter.Ast.AstPythonInterpreterFactory
Initializing for /usr/local/opt/python/bin/python3.6
##########Linting Output - pylint##########
--------------------------------------------------------------------
Your code has been rated at 10.00/10 (previous run: 10.00/10, +0.00)
##########Linting Output - pylint##########
--------------------------------------------------------------------
Your code has been rated at 10.00/10 (previous run: 10.00/10, +0.00)
Output from Console under the Developer Tools panel (toggle Developer Tools on under Help)
Thanks for letting us know about this, @yzinets. I was able to reproduce the problem. We'll take a look at it. I expect that the new language server is not taking namespace packages into account.
Activity
ericsnowcurrently commentedon Jul 31, 2018
Thanks for letting us know about this, @yzinets. I was able to reproduce the problem. We'll take a look at it. I expect that the new language server is not taking namespace packages into account.
MikhailArkhipov commentedon Aug 23, 2018
microsoft/PTVS#4138
luabud commentedon Sep 11, 2019
Fixed upstream (microsoft/python-language-server#12)