I renamed a folder while python files (within that folder) were opened.
Traceback
File "/Users/semvijverberg/miniconda3/envs/RGCPD/lib/python3.7/site-packages/spyder/plugins/editor/plugin.py", line 2241, in renamed_tree
self.renamed(source=fname, dest=new_filename)
File "/Users/semvijverberg/miniconda3/envs/RGCPD/lib/python3.7/site-packages/spyder/plugins/editor/plugin.py", line 2230, in renamed
new_filename=to_text_string(dest))
File "/Users/semvijverberg/miniconda3/envs/RGCPD/lib/python3.7/site-packages/spyder/plugins/editor/widgets/editor.py", line 1550, in rename_in_data
self.set_current_filename(current_fname)
File "/Users/semvijverberg/miniconda3/envs/RGCPD/lib/python3.7/site-packages/spyder/plugins/editor/widgets/editor.py", line 1699, in set_current_filename
editor = self.data[index].editor
IndexError: list index out of range
ERROR:spyder.plugins.editor.utils.autosave:KeyError when retrieving hash of /Users/semvijverberg/surfdrive/Scripts/RGCPD/publications/NPJ_2021/clusters_check.py
ERROR:spyder.plugins.editor.utils.autosave:KeyError when retrieving hash of /Users/semvijverberg/surfdrive/Scripts/RGCPD/publications/NPJ_2021/clusters_check.py
Hi @semvijverberg thanks for the feedback! I was able to reproduce this if I change a folder name while having a project open. We will try to resolve this in a future release :+1:
Description
What steps will reproduce the problem?
I renamed a folder while python files (within that folder) were opened.
Traceback
Versions
Dependencies