Hirse / brackets-outline-list

Extension for Brackets and Phoenix to display a list of the functions or definitions in the currently opened document.
MIT License
79 stars 30 forks source link

Python functions with **kwargs argument are not listed in the outline #96

Closed gittar closed 7 years ago

gittar commented 7 years ago

Details about your environment Ubuntu 16.04 LTS

What did you do? Please include the actual source code causing the issue.

def whoami(**kwargs):
    return inspect.stack()[1][3]

What did you expect to happen? How did you expect the Outline to look? I expected the function whoami to appear in the outline list.

What actually happened? How did the Outline actually look? It did not appear in the outline. Others were listed ok.

Remark: The problem seems to be the **kwargs syntax. The following variants appear correctly in the outline list:

def whoami():
    return inspect.stack()[1][3]

def whoami(dummy):
    return inspect.stack()[1][3]
Hirse commented 7 years ago

Sorry for the late response. The fix should be in the next release.