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

VS Code shows wrong order of dict #566

Closed
danieltuzes opened this issue Mar 19, 2021 · 2 comments
Closed

VS Code shows wrong order of dict #566

danieltuzes opened this issue Mar 19, 2021 · 2 comments

Comments

@danieltuzes
Copy link

The issue has been closed, but the bug is still not resolved:
microsoft/vscode-python#3236
microsoft/vscode-python#7787

Environment data

  • VS Code version: 1.54.3
  • Extension version (available under the Extensions sidebar): v2021.3.658691958
  • OS and version: Win 10
  • Python version (& distribution if applicable, e.g. Anaconda): 3.6
  • Type of virtual environment used (N/A | venv | virtualenv | conda | ...): conda
  • Value of the python.languageServer setting: pylance v2021.3.2

Expected behaviour

The debugger shows the dict element in the right order.

Actual behaviour

The debugger shows the dict elements in a wrong order.

Steps to reproduce:

Debug the code by inserting a breakpoint at the print statement:

atoms = {"H": 0, "He": 1, "Li": 2, "Be": 3}
print(atoms)

The debugger will show an alphabetic order. The function print produces the right result though.

Untitled-1

@karthiknadig karthiknadig transferred this issue from microsoft/vscode-python Mar 19, 2021
@fabioz
Copy link
Collaborator

fabioz commented Mar 25, 2021

Note: I'm working on a fix for this.

fabioz added a commit to fabioz/debugpy that referenced this issue Mar 25, 2021
@fabioz fabioz closed this as completed in 0dd74a7 Mar 25, 2021
@danieltuzes
Copy link
Author

Any information on when and how it will be included in the new version?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants