SlickEdit Community
SlickEdit Product Discussion => SlickEdit® => Topic started by: jporkkahtc on October 01, 2019, 09:06:23 PM
-
In python, given this bit of code
def main(args):
with open("logfile.txt", 'a', newline='') as log_file:
print("LOG ", args, file=log_file)
Attempting to rename "log_file" fails with
---------------------------
SlickEdit Pro
---------------------------
Definition of 'log_file' not found.
---------------------------
OK
---------------------------
-
Not a quick-refactoring bug per-se. The problem is that "log_file" is not recognized as a local variable.
I'll file a bug for someone to look into fixing that in the Python parser.
-
Download v24.0.0.8. This is fixed in v24.0.0.8