Skip to content

Outline: Navigation to some attributes jumps to the start of the file #2530

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

Closed
derekwallace opened this issue Sep 8, 2018 · 3 comments
Closed
Labels
bug Issue identified by VS Code Team member as probable bug

Comments

@derekwallace
Copy link

  • VS Code version: 1.28 insiders
  • Extension version (available under the Extensions sidebar): 2018.8.0
  • OS and version: Win10
  • Python version (& distribution if applicable, e.g. Anaconda): 3.6 python.org

Simple class below.

# comment

class Api:
   myclassattr   = 1

   def __init__(self, oD):
      self.oD  = oD
      self.dA  = {}
      x=1

   def _addUpload_UploadId(self):
      sMd5           = "X"
      self.dA[sMd5]  = "Y"

The outline thinks the self.dA is a class attribute.

image

Doublic click on dA and it jumps to line 1 of the file
image

@brettcannon brettcannon added bug Issue identified by VS Code Team member as probable bug needs verification labels Sep 10, 2018
@brettcannon
Copy link
Member

Can you please verify, @ericsnowcurrently ?

@ericsnowcurrently
Copy link

Thanks for letting us know about this, @derekwallace. I can reproduce the problem (using the new language server, but not under jedi). We'll look into it.

@luabud
Copy link
Member

luabud commented Sep 11, 2019

Fixed upstream (microsoft/python-language-server#108)

@luabud luabud closed this as completed Sep 11, 2019
@ghost ghost removed the needs upstream fix label Sep 11, 2019
@lock lock bot locked as resolved and limited conversation to collaborators Sep 18, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Issue identified by VS Code Team member as probable bug
Projects
None yet
Development

No branches or pull requests

4 participants