Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

problem of enum class auto-complete #207

Closed
DonJayamanne opened this issue Nov 14, 2017 · 7 comments
Closed

problem of enum class auto-complete #207

DonJayamanne opened this issue Nov 14, 2017 · 7 comments
Labels
area-intellisense LSP-related functionality: auto-complete, docstrings, navigation, refactoring, etc. bug Issue identified by VS Code Team member as probable bug

Comments

@DonJayamanne
Copy link

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

@DonJayamanne
Copy link
Author

From @gandhis1 on October 26, 2017 12:54

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

@DonJayamanne
Copy link
Author

From @caijunyi on October 26, 2017 14:34

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

@DonJayamanne
Copy link
Author

@caijunyi works for me.
Will investigate this further.

@brettcannon brettcannon added awaiting 1-verification area-intellisense LSP-related functionality: auto-complete, docstrings, navigation, refactoring, etc. bug Issue identified by VS Code Team member as probable bug labels Nov 14, 2017
@MikhailArkhipov MikhailArkhipov self-assigned this Jan 5, 2018
@MikhailArkhipov
Copy link

I get

image

but not for value

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

image

@brettcannon
Copy link
Member

This has been reported upstream in Jedi.

@MikhailArkhipov
Copy link

PyCharm can't do it either.

@brettcannon
Copy link
Member

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

@ghost ghost removed the needs upstream fix label Jul 29, 2019
@lock lock bot locked as resolved and limited conversation to collaborators Aug 5, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-intellisense LSP-related functionality: auto-complete, docstrings, navigation, refactoring, etc. bug Issue identified by VS Code Team member as probable bug
Projects
None yet
Development

No branches or pull requests

3 participants