Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: CKAN doesn't delete mods after i delete them manually #3954

Closed
1 task done
gamergab opened this issue Dec 14, 2023 · 9 comments · Fixed by #3955
Closed
1 task done

[Bug]: CKAN doesn't delete mods after i delete them manually #3954

gamergab opened this issue Dec 14, 2023 · 9 comments · Fixed by #3955
Labels
Support Issues that are support requests

Comments

@gamergab
Copy link

Is there an existing issue for this?

  • I have searched the existing issues

Operating System

Windows 11

CKAN Version

1.34.0

Games

KSP 1

Game Version

1.12.5

Did you make any manual changes to your game folder (i.e., not via CKAN)?

Deleted all the mods manually

Describe the bug

I expected CKAN to go through everything and delete them all as if nothing happened but it gives me error during installation for some reason.

Steps to reproduce

  1. Delete all mods manually, leaving only squad and squadexpansion folders in gamedata
  2. go into ckan and uncheck all mods
  3. press apply

Relevant log output

No response

@HebaruSan
Copy link
Member

Hi @gamergab, please show us the error it gives you. Without that, we can't really do anything with this report.

@HebaruSan HebaruSan added the Support Issues that are support requests label Dec 14, 2023
@gamergab
Copy link
Author

gamergab commented Dec 14, 2023 via email

@HebaruSan
Copy link
Member

Hi @gamergab, thanks for responding, but it looks like whatever you tried to send didn't come through. I think email attachments are not automatically posted into GitHub issues. So we'll still need the information about the error to get started here.

@gamergab
Copy link
Author

image_2023-12-14_142801335

@HebaruSan
Copy link
Member

Noting this here because this possibility was absolutely considered during development of that error mesage:

https://learn.microsoft.com/en-us/dotnet/api/system.io.file.delete?view=netframework-4.8#remarks

If the file to be deleted does not exist, no exception is thrown.

@gamergab
Copy link
Author

Is there a fix for this? i reinstalled the game and ckan to no avail?

@HebaruSan
Copy link
Member

Patient: Doctor, it hurts when I do this.
Doctor: Then don't do that!

For now the workaround is to not delete files manually.

@HebaruSan HebaruSan pinned this issue Dec 14, 2023
@gamergab
Copy link
Author

gamergab commented Dec 14, 2023 via email

@HebaruSan
Copy link
Member

As a workaround, you could open the <Game Root>/CKAN folder and rename registry.json to something else (or delete it, but renaming is safer in case you want to recover the data). This will make CKAN forget everything that was installed.

Or you could wait a day or two for the next CKAN release that will have this fixed.

@HebaruSan HebaruSan unpinned this issue Dec 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Support Issues that are support requests
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants