cs50 / ide-issues

1 stars 1 forks source link

Unable to delete a file #49

Closed kzidane closed 4 years ago

kzidane commented 4 years ago

I made a directory called readability and opened a file readbility.c in it. I accidentally deleted the file. Since I had not coded much, I just decided to open a new file of the same name. However, when I type in the command 'open readability.c,' the same deleted file opens up but it does not show up in the file tree. And I am unable to compile it because the file does not actually exist in the readability directory. Is there a way I can start the pset2 Readability afresh? I tried by deleting the directory. But when I made the directory once again and tried to open the readability.c file in it, the same deleted file is opened 20200428_162435 up.

Originally posted by @Abhigya3159 in https://github.com/cs50/ide-issues/issues/18#issuecomment-620538247

kzidane commented 4 years ago

@Abhigya3159 did you delete the file while it's open? If so, try closing the file before deleting it.

Abhigya3159 commented 4 years ago

I closed the file and then tried deleting it. I used the rm command to delete the file but it does not work because the file does not exist in the file tree.

On Tue, Apr 28, 2020 at 6:04 PM Kareem Zidane notifications@github.com wrote:

@Abhigya3159 https://github.com/Abhigya3159 did you delete the file while it's open? If so, try closing the file before deleting it.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/cs50/ide-issues/issues/49#issuecomment-620577040, or unsubscribe https://github.com/notifications/unsubscribe-auth/APIWKBZGZYNCMFI6DNAM2UDRO3EMBANCNFSM4MSZHOQQ .

kzidane commented 4 years ago

To create a new fill the, click the + icon and choose New File or right-click on the folder and choose the same option.

Abhigya3159 commented 4 years ago

It worked. Thank you.