Skip to content

Go to definition not working when a function's default arguments includes one or more numbers with underscores #180

Closed

Description

From @ajmichaels on September 19, 2017 8:49

Environment data

VS Code version: 1.6.1
Python Extension version: 0.7.0
Python Version: 3.6.2
OS and version: OSX 10.11.6

Actual behavior

Go to definition doesn't work when a function's default arguments includes one or more numbers with underscores

Expected behavior

A number having underscores should not affect go to definition.

Copied from original issue: DonJayamanne/pythonVSCode#1220

Activity

  1. added
    bug
    on Nov 14, 2017
  2. brettcannon commented on Jan 11, 2018

    @brettcannon
    Member

    I can verify this is a problem:

    def foo1(a=1000000):
        pass
    
    
    def foo2(a=1_000_000):
        pass
    
    
    def bar():
        foo1()
        foo2()

    You can go to definition for foo1 but not foo2.

  3. MikhailArkhipov commented on Feb 13, 2018

    @MikhailArkhipov
  4. DonJayamanne commented on Feb 27, 2018

    @DonJayamanne
    Author

    Mikhail Arkhipov (@MikhailArkhipov)
    Go to def doesn't work for foo2

  5. brettcannon commented on May 7, 2018

    @brettcannon
    Member

    This was fixed as part of our Jedi 0.12.0 upgrade.

  6. locked as resolved and limited conversation to collaborators on Jul 11, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

bug

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions