Komodo / KomodoEdit

Komodo Edit is a fast and free multi-language code editor. Written in JS, Python, C++ and based on the Mozilla platform.
http://www.komodoide.com/komodo-edit
Other
2.16k stars 303 forks source link

Symbol Browser: Locate Scope not working #2727

Open th3coop opened 7 years ago

th3coop commented 7 years ago

Steps to Reproduce

Open a file with mutliple functions or classes Open Symbol Browser Move cursor in file so it is in different functions or classes and watch the symbol browser

Expected results

The symbol browser to scroll to and highlight the current scope my cursor is in

Actual results

Some times the highlights scope with move to the current scope, some times not. It never scrolls.

additional Info

I'm seeing the "sometimes" action in Blackfile.py from the KomodoIDE repo. Any function above UploadKomodoPackages will cause the Symbol Browser to highlight the new scope. If I go below UploadKomodoPackages it will no longer change the current scope in the symbol browser. THere are no related errors in the logs.

Naatan commented 7 years ago

I cannot reproduce this. Can you share a file that has this problem?

th3coop commented 7 years ago

I'm seeing the "sometimes" action in Blackfile.py from the KomodoIDE repo.

@Naatan see the additional info section.

Naatan commented 7 years ago

This appears to be a bug in resolveScope. @mitchell try selecting any scope between UploadKomodoPackages and BuildXdebug in Blackfile.py, it will always return the same line number.

Naatan commented 7 years ago

Reproduced this with Codeintel v2, so not a Komodo 11 bug.

mitchell-as commented 7 years ago

Note to self: this is a Python scanner bug. The functions in question do not have their "lineend" attribute set.