Project Structure Window serious usability flaws and bugs.
Hello,
yesterday I ran through a somewhat serious problem using PyCharm, which I decided to report now, after sleeping over it.
I tried to change the Content Root Setting for my current project within the Project Structure window. The window is split into two parts (left a directory view + right a content root-list).
Here comes the problem: I was about to remove the Content Root entry under my cursor on the right side using the keyboard Delete Button (OSX; above the return key).
But what actually happened: It removed the selected directory on the left pane from the disk instead. No questions asked. It also teared down any PyCharm instance I had running. They just completely stalled.
There are several Problems:
- I do not want to delete a directory in that view ever (I have i trillion other ways to do it)
- I do want to get a question before deleting files
- I do want deleted files to be moved into the trash of the OS (this is what it is for)
- I do not want PyCharm to tear itself and all its instances down
- I do want to be able to undo such an inconvenient operation
Given the consequences there I consider this a serious bug; There are multiple ways to handle it. The least of this would be to have a Confirmation-Dialog and a non-crashing Interface.
However, I could recover from the situation (after I calmed down, though): Given I knew the directory structure and the files I changed since the last commit, I could recreate the directories by hand and from there I could use the local history to restore the files piece by piece.
Upload id: 2021_02_24_KXzTbLGQvEnNLj1s (file: Bildschirmfoto 2021-02-24 um 11.07.58.png)
Please sign in to leave a comment.
Sorry to ask, but since it didn't get any reaction for all that time: is that behavior expected or no one just cares?
Hello Richard,
Please accept my sincere apologies for the late reply.
> is that behavior expected or no one just cares?
We definitely care, thank you for spending time to report this. For sure, this is an issue that should be resolved, or at least we should reconsider the UI to make it clear the directory will be deleted from the disk.
I have submitted an issue with details here https://youtrack.jetbrains.com/issue/PY-47452 , please follow it for updates.
Information on how to use YouTrack: https://intellij-support.jetbrains.com/hc/en-us/articles/207241135-How-to-follow-YouTrack-issues-and-receive-notifications
Should you have any additional questions please let me know.