Skip to content

Tab completion for globals does not work in lines with dots #14836

@krassowski

Description

@krassowski

To reproduce:

import numpy as np
long_variable_name = 56

%config Completer.use_jedi = False

x = np.random(lo   # pressing <tab> here does not show `long_variable_name`
Last working Broken
8.26 8.27

8.26.0...8.27.0

The problem is a heuristic restored in #14474, which checks for "." in the line to decide between using attribute and global matcher, which is confirmed by the following working correctly:

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions