AY2021S1-CS2113T-W11-2/tp

Error occurred when editing trip with possible index error leading to it

Closed this issue · 5 comments

image

Take note of the highlight part

image

similar problem for delete trip.

Will you be removing that line?

occured -> occurred as well

Hello @ShawnTanzc ,

I was unable to reproduce this error. Could you give me a screenshot of your files inside the trippie_data directory, as well as the contents of your trippie.txt?

Deleting the directory might fix the problem. Update me! Will fix the typo issue though, thanks for pointing that out.

Hi! Ivander,
Heres the trippie data from the initial test as the issue above
image

I tried to replicated the issues and typed as similar as i have tested:
Part 1:
image
Part 2:
image
Exited and Part 3:
image
Delete trip show the same issue as well
image

You can try as follows
Here is my new trippie_data, apparently it doesnt delete from here by itself so... i not sure if we can do anything about it
image

Hello Shawn!

It turns out that the problem presists in Windows due to file permission errors.
We have found this as the source of issue. https://stackoverflow.com/questions/40706380/failed-to-delete-a-file-in-windows-using-java.

Thank you for reporting this!

This has been resolved in #139