KomodoEdit icon indicating copy to clipboard operation
KomodoEdit copied to clipboard

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

Open leon-id opened this issue 4 years ago • 1 comments

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

leon-id avatar Aug 10 '20 19:08 leon-id

Thanks for the report @leon-id.

th3coop avatar Aug 17 '20 19:08 th3coop