Ask Your Question
1

Tracking variable references in f-strings

asked 2021-01-02 06:42:48 -0500

Michael gravatar image

updated 2021-01-02 08:44:17 -0500

I filed a bug report yet, but because it might be of interests for others too (and I've been bitten again), I would like emphasize the issue here again:

I'm using f-strings more and more. Up to now, Wing is not able to track variables in a comprehensive way, if they are used inside f-strings. This affects all tools: "Find Points of use", refactorings (renames!) etc.. The syntax highliter OTH 'sees' variables in f-strings (but of course also functions of them there only as a single entity). But perhaps this could be utilized for complete detection of this references. In my opinion, a solution of the problem is quite important for any non-trivial (yet by scope alone) refactoring usage.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2021-01-04 09:32:34 -0500

Yes, this is something we hope to address soon.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

2 followers

Stats

Asked: 2021-01-02 06:42:48 -0500

Seen: 773 times

Last updated: Jan 04