Open primkey7607 opened 2 years ago
Hi @primkey7607 thank you for the feedback! I was unable to reproduce this with the latest Spyder (version 5.2.2). Could you check with that version?
For that you will need to create a new env to install Spyder from the conda-forge channel:
conda create -n spyder_env python=3.8 spyder=5.2.2 -c conda-forge
or use our MacOS installer: https://github.com/spyder-ide/spyder/releases/download/v5.2.2/Spyder.dmg
Let us know if something of the above helps!
Hi @dalthviz thanks for the quick followup! I finally got around to updating to spyder 5.2.2, and it worked--I am unable to reproduce the issue as well.
However, I'm really sorry--I tried following my own instructions and couldn't reproduce the issue on 5.1.5 (the version I was using), either!
But I know now when this issue occurs: it occurs specifically when I create a file in a directory, but don't save it, and then change the directory name (rather than just writing to a file that already existed in the directory). I edited my issue description to explain this better. Hopefully that will help. Also, I get this problem on 5.2.2 as well.
Hi again @primkey7607 thank you for providing new info! With the new steps I was able to reproduce this! We will check it in a future release :+1:
Just in case when checking this I also get from the Anaconda prompt from where I launched spyder the following:
ERROR:spyder.plugins.editor.utils.autosave:KeyError when retrieving hash of D:\Acer\Documentos\Spyder\Proyectos\test1\testing_rename\tests.py
ERROR:spyder.plugins.editor.utils.autosave:KeyError when retrieving hash of D:\Acer\Documentos\Spyder\Proyectos\test1\testing_rename\tests.py
ERROR:spyder.plugins.editor.utils.autosave:KeyError when retrieving hash of D:\Acer\Documentos\Spyder\Proyectos\test1\testing_rename\tests.py
ERROR:spyder.plugins.editor.utils.autosave:KeyError when retrieving hash of D:\Acer\Documentos\Spyder\Proyectos\test1\testing_rename\tests.py
Just in case when checking this I also get from the Anaconda prompt from where I launched spyder the following:
ERROR:spyder.plugins.editor.utils.autosave:KeyError when retrieving hash of D:\Acer\Documentos\Spyder\Proyectos\test1\testing_rename\tests.py ERROR:spyder.plugins.editor.utils.autosave:KeyError when retrieving hash of D:\Acer\Documentos\Spyder\Proyectos\test1\testing_rename\tests.py ERROR:spyder.plugins.editor.utils.autosave:KeyError when retrieving hash of D:\Acer\Documentos\Spyder\Proyectos\test1\testing_rename\tests.py ERROR:spyder.plugins.editor.utils.autosave:KeyError when retrieving hash of D:\Acer\Documentos\Spyder\Proyectos\test1\testing_rename\tests.py
Yes, I see similar messages on the anaconda prompt as well on my end.
Description
What steps will reproduce the problem?
I believe this issue occurred because I tried saving a file I was still working on after renaming the directory the file was in. Here are the steps:
I think this should be enough to reproduce this error.
Traceback
Versions
Dependencies