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

Repository File not Found after First Download #23

Closed
zwang20 opened this issue Mar 15, 2019 · 2 comments
Closed

Repository File not Found after First Download #23

zwang20 opened this issue Mar 15, 2019 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@zwang20
Copy link

zwang20 commented Mar 15, 2019

The application quits unexpectedly after downloading the files.
After that, I attempted to run it in the terminal but it still did not work.

Terminal output:

Could not get repository from cache: Error Domain=NSCocoaErrorDomain Code=260 "The file “ckan_repository_cache.json” couldn’t be opened because there is no such file." UserInfo={NSFilePath=/Users/zwang20/Library/Application Support/Steam/steamapps/common/Kerbal Space Program/LaunchPad/ckan_repository_cache.json, NSUnderlyingError=0x7f926cc34b20 {Error Domain=NSPOSIXErrorDomain Code=2 "No such file or directory"}}
Success: 200
Nothing unpacked, file exists
count:  19630
Fatal error: The data couldn’t be read because it is missing.: file /Users/breakthesystem/Repositories/Launch Pad/CKANKit/CKANRepository.swift, line 163
Illegal instruction: 4

I have already tried to reinstall the application but it still returned the same output

@winsmith
Copy link
Owner

winsmith commented Mar 16, 2019

Seems you discovered a bug! Thanks for reporting. I'll investigate and see if I can release a fix!

@winsmith winsmith changed the title Application quits after opening Repository File not Found on First Startup Mar 16, 2019
@winsmith winsmith added the bug Something isn't working label Mar 16, 2019
@winsmith winsmith self-assigned this Mar 16, 2019
@winsmith winsmith changed the title Repository File not Found on First Startup Repository File not Found after First Download Mar 16, 2019
@winsmith
Copy link
Owner

winsmith commented Mar 17, 2019

The issue seems to be that LaunchPad / CKANKit can't parse ScottManleyHeadPack-1.0.0.ckan, a recent addition to CKAN.

The author of ScottManleyHeadPack is using a depends variant called any_of, which I haven't heard about before. (It might be new, I'll have to check the spec) This throws an error in parsing and crashes the app.

Since original CKAN is parsing this file, I'll create a new issue #24 to support that format. In the meantime, I'll just skip unparseable CKAN files. (Which is sad, because who wouldn't want Scott Manley's head in their game?)

[Release 1a4] fixes this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants