spyder-ide / spyder

Official repository for Spyder - The Scientific Python Development Environment
https://www.spyder-ide.org
MIT License
8.33k stars 1.61k forks source link

Serious Bug - Working Directory Deleted Permanently #21659

Open cyiannaki opened 10 months ago

cyiannaki commented 10 months ago

Problem Description

Hi,

I've reported this again in the past but the issue has not been resolved. I am running Spyder under Ubuntu and when I try to delete a file from the file explorer it triggers a permanent delete of the folder with all my work.

What steps reproduce the problem?

  1. It usually gets triggered when running in debug and then deleting a file from the file explorer within Spyder.
  2. It might also happen when not running in debug and then deleting any file.

Paste Traceback/Error Below (if applicable)

No error is shown. Spyder will show a message for every tab saying that the file doesn't exist and if I want to close the file.

Versions

Dependencies

Mandatory:

atomicwrites >=1.2.0 : 1.4.1 (OK) chardet >=2.0.0 : 5.0.0 (OK) cloudpickle >=0.5.0 : 2.1.0 (OK) cookiecutter >=1.6.0 : 2.1.1 (OK) diff_match_patch >=20181111 : 20200713 (OK) intervaltree >=3.0.2 : 3.1.0 (OK) IPython >=7.31.1,<9.0.0,!=8.8.0,!=8.9.0,!=8.10.0 : 7.34.0 (OK) jedi >=0.17.2,<0.19.0 : 0.18.1 (OK) jellyfish >=0.7 : 0.9.0 (OK) jsonschema >=3.2.0 : 4.14.0 (OK) keyring >=17.0.0 : 23.8.2 (OK) nbconvert >=4.0 : 7.0.0 (OK) numpydoc >=0.6.0 : 1.4.0 (OK) parso >=0.7.0,<0.9.0 : 0.8.3 (OK) pexpect >=4.4.0 : 4.8.0 (OK) pickleshare >=0.4 : 0.7.5 (OK) psutil >=5.3 : 5.9.1 (OK) pygments >=2.0 : 2.13.0 (OK) pylint >=2.5.0,<3.0 : 2.14.5 (OK) pylint_venv >=2.1.1 : 3.0.1 (OK) pyls_spyder >=0.4.0 : 0.4.0 (OK) pylsp >=1.7.2,<1.8.0 : 1.7.3 (OK) pylsp_black >=1.2.0 : 1.2.1 (OK) qdarkstyle >=3.0.2,<3.2.0 : 3.0.3 (OK) qstylizer >=0.2.2 : 0.2.2 (OK) qtawesome >=1.2.1 : 1.2.3 (OK) qtconsole >=5.4.2,<5.5.0 : 5.4.3 (OK) qtpy >=2.1.0 : 2.2.0 (OK) rtree >=0.9.7 : 1.0.0 (OK) setuptools >=49.6.0 : 65.3.0 (OK) sphinx >=0.6.6 : 4.3.2 (OK) spyder_kernels >=2.4.3,<2.5.0 : 2.4.3 (OK) textdistance >=4.2.0 : 4.4.0 (OK) three_merge >=0.1.1 : 0.1.1 (OK) watchdog >=0.10.3 : 2.1.9 (OK) xdg >=0.26 : 0.28 (OK) zmq >=22.1.0 : 23.2.1 (OK)

Optional:

cython >=0.21 : 0.29.32 (OK) matplotlib >=3.0.0 : 3.5.3 (OK) numpy >=1.7 : 1.21.6 (OK) pandas >=1.1.1 : 1.3.5 (OK) scipy >=0.17.0 : 1.7.3 (OK) sympy >=0.7.3 : None (NOK)

dalthviz commented 8 months ago

Hi @cyiannaki sorry for the late response and not addressing any previous issue! This seems indeed like quite a serious bug! Could you link to this issue the previous ones please?

I did a quick check on Windows but I was unable to reproduce this :thinking: Pinging @ccordoba12 (which maybe could be able to check on Linux). Also, do you have a Spyder project open when this happens?

Any other info to better understand this and reproduce in our side is greatly appreciated!