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.14k stars 299 forks source link

CodeIntel on Komodo IDE 12.0.1 fails when using python3 `with some_context(f"some_f_string_as_parameter")` #3880

Open leon-id opened 3 years ago

leon-id commented 3 years ago

Short Summary

Codeintel fails when it locates f-string passed as context parameter of with context(some_parameter).

Steps to Reproduce

Last two lines of the following code make codeintel to fail, leading to 'no symbols found' message in Symbol Browser

#!/usr/bin/env python3
# coding: utf-8

if __name__ == '__main__':
    extension = '.txt'
    with open('some_file' + extension, 'r') as working_context:
        print('codeintel works here')

    with open(f"another_file{extension}", 'r') as failing_context:
        print('codeintel fails if f-string is passed as context parameter')

Expected results

CodeIntel to show me symbols

Actual results

No symbols found.

Platform Information

Komodo Edit or IDE? IDE Komodo Version? version 12.0.1, build 91869, platform linux-x86_64, built on Mon Feb 10 19:37:24 2020 Operating System (and version)? Ubuntu 20.04 , Python 3.8.2

Additional Information

th3coop commented 3 years ago

Thanks for the report @leon-id.