Skip to content

problem of enum class auto-complete #207

Closed

Description

From caijunyi on October 26, 2017 6:11

Environment data

VS Code version: 1.17.2
Python Extension version: 0.7.0
Python Version: 3.6.3
OS and version: Win10

Actual behavior

no tooltip for the members of Enum class under the condition below

Expected behavior

pop-up auto-complete for the members of Enum class

Steps to reproduce:

"""problem of enum class auto-complete"""
# -*- coding: utf-8 -*-
from enum import Enum, unique


@unique
class TaskConfParams(Enum):
    project_name = 0
    project_path = 1
    data_path = 2
    output_path = 3
    scenarios_path = 4


@unique
class TaskParams(Enum):
    task_conf = TaskConfParams


def main():
    task_conf = TaskParams.task_conf.value
    task_conf.


if __name__ == '__main__':
    main()

enum

Copied from original issue: DonJayamanne/pythonVSCode#1340

Activity

  1. DonJayamanne commented on Nov 14, 2017

    @DonJayamanne
    Author

    From Siddhartha Gandhi (@gandhis1) on October 26, 2017 12:54

    What font/theme are you using, it looks really nice

  2. DonJayamanne commented on Nov 14, 2017

    @DonJayamanne
    Author

    From caijunyi on October 26, 2017 14:34

    Aha, it is the Material Theme and Roboto Mono for Powerline font.

  3. DonJayamanne commented on Nov 14, 2017

    @DonJayamanne
    Author

    caijunyi works for me.
    Will investigate this further.

  4. MikhailArkhipov commented on Jan 8, 2018

    @MikhailArkhipov

    I get

    image

    but not for value

    It might be b/c Jedi does not fully understand what the value is.

    image

  5. brettcannon commented on Apr 19, 2018

    @brettcannon
    Member

    This has been reported upstream in Jedi.

  6. MikhailArkhipov commented on Apr 25, 2018

    @MikhailArkhipov

    PyCharm can't do it either.

  7. brettcannon commented on Jul 29, 2019

    @brettcannon
    Member

    Closing as this is an upstream issue which we don't have direct control or influence over.

  8. locked as resolved and limited conversation to collaborators on Aug 5, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-intellisenseLSP-related functionality: auto-complete, docstrings, navigation, refactoring, etc.bugIssue identified by VS Code Team member as probable bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions