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

It showed empty class name when type @. #7807

Open
linette-zyy opened this issue Jan 17, 2024 · 3 comments
Open

It showed empty class name when type @. #7807

linette-zyy opened this issue Jan 17, 2024 · 3 comments
Labels

Comments

@linette-zyy
Copy link

Environment
image

Expected behavior
image

Actual result and screenshots
image

@linette-zyy linette-zyy changed the title It shows empty option when type @. It shows empty class name when type @. Jan 17, 2024
@linette-zyy linette-zyy changed the title It shows empty class name when type @. It showed empty class name when type @. Jan 17, 2024
@StellaHuang95
Copy link
Contributor

StellaHuang95 commented Jan 17, 2024

One of the completion items returned from pylance is

{
        "label": "",
        "kind": 7,
        "data": {
          "workspacePath": "C:\\Users\\stellahuang\\source\\repos\\PythonApplication9\\PythonApplication9",
          "filePath": "C:\\Users\\stellahuang\\source\\repos\\PythonApplication9\\PythonApplication9\\PythonApplication9.py",
          "position": {
            "line": 1,
            "character": 5
          },
          "funcParensDisabled": true,
          "symbolLabel": ""
        },
        "sortText": "05.0000.",
        "command": {
          "title": "",
          "command": "pylance.completionAccepted",
          "arguments": []
        }
      },

needs to investigate why it returns empty string

@StellaHuang95
Copy link
Contributor

The empty label comes from the symbol table.
image

@StellaHuang95
Copy link
Contributor

image

@StellaHuang95 StellaHuang95 removed their assignment May 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants