Skip to content
This repository was archived by the owner on Apr 14, 2022. It is now read-only.
This repository was archived by the owner on Apr 14, 2022. It is now read-only.

No completion in namespace packages #12

Description

.
├── projecta
│   └── foo
│       ├── bar
│       │   └── __init__.py
│       └── __init__.py
└── projectb
    └── foo
        ├── baz
        │   └── __init__.py
        └── __init__.py

test.py:

import projectA.foo
import projectA.foo.bar
import projectB.foo
import projectB.foo.baz

projectA.

image

Jedi:
image

PyCharm:
image

Activity

  1. mchampanis commented on Oct 1, 2018

    @mchampanis

    i've also come across this:

    1. my own namespace package; completion started working when i added a blank __init__.py
    2. using the google.cloud packages; no __init__.py so no completion (e.g. https://pypi.org/project/google-cloud-bigquery/)
  2. rafales commented on Nov 27, 2018

    @rafales

    I'm running into the same problem. I'm using "native" namespace packages (as defined in PEP-0420, without init.py).

    I've set up project structure according to this example: https://github.com/pypa/sample-namespace-packages/tree/master/native

    I have installed those packages in virtualenv via pip install -e.

  3. MikhailArkhipov commented on Dec 4, 2018

    @MikhailArkhipov
    Author
  4. added a commit that references this issue on Nov 1, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions