Coder Social home page Coder Social logo

Comments (15)

steveshi avatar steveshi commented on May 18, 2024 1

I found an empty folder, and after deleting it the problem was solved. Thank you.

from cork.

steveshi avatar steveshi commented on May 18, 2024 1

@buresdv I have built the latest version and tested it. The issue had been resolved. Thank you.

from cork.

buresdv avatar buresdv commented on May 18, 2024

Would you be able to run Cork through Xcode? That would help me tremendously with tracking down what went wrong.

from cork.

polkabrothers avatar polkabrothers commented on May 18, 2024

Tried running compiling and running through Xcode. Same result.
I get 3 issues:

HelpButton

'controlShadowColor' was deprecated in macOS 11.0: Use a color that matches the semantics being used, such as separatorColor

'controlShadowColor' was deprecated in macOS 11.0: Use a color that matches the semantics being used, such as separatorColor

Install Package

Variable 'packageToInstall' was never used; consider replacing with '_' or removing it

I get this error when trying to run through Xcode:

Cork/Get Contents of Folder.swift:57: Fatal error: 'try!' expression unexpectedly raised an error: Error Domain=NSCocoaErrorDomain Code=260 "The file “INSTALL_RECEIPT.json” couldn’t be opened because there is no such file." UserInfo={NSFilePath=/opt/homebrew/Cellar/php/8.1.13/INSTALL_RECEIPT.json, NSUnderlyingError=0x6000007e84e0 {Error Domain=NSPOSIXErrorDomain Code=2 "No such file or directory"}}
2023-03-31 14:05:07.144081+0200 Cork[29871:227244] Cork/Get Contents of Folder.swift:57: Fatal error: 'try!' expression unexpectedly raised an error: Error Domain=NSCocoaErrorDomain Code=260 "The file “INSTALL_RECEIPT.json” couldn’t be opened because there is no such file." UserInfo={NSFilePath=/opt/homebrew/Cellar/php/8.1.13/INSTALL_RECEIPT.json, NSUnderlyingError=0x6000007e84e0 {Error Domain=NSPOSIXErrorDomain Code=2 "No such file or directory"}}
(lldb)

from cork.

buresdv avatar buresdv commented on May 18, 2024

Can you try building from the branch install-receipt-missing-fix? I tried fixing it, so just confirm if I did it right.

from cork.

polkabrothers avatar polkabrothers commented on May 18, 2024

No errors, starts without problems now.
Thanks for the quick fix!

from cork.

buresdv avatar buresdv commented on May 18, 2024

No problem 😊 Expect an update containing the fix soon

from cork.

steveshi avatar steveshi commented on May 18, 2024

After pulling the update, the program still crashes.
截屏2023-04-01 12 03 13

from cork.

buresdv avatar buresdv commented on May 18, 2024

@steveshi Has this crash happened to you in other previous versions? Because looking at the code, if Cork crashes at that step, something is seriously wrong with your Homebrew installation.

At that point, it looks through the folder that contains all the Formulae. And this crash can only happen only if your Formulae folder exists and is accessible, one of your packages is registered with Homebrew as working, but the package does not have any versions installed, which is impossible.

from cork.

steveshi avatar steveshi commented on May 18, 2024

Since building version 0.6, it has been crashing constantly.

from cork.

steveshi avatar steveshi commented on May 18, 2024

But versions 0.5 and earlier work normally without crashing.

from cork.

buresdv avatar buresdv commented on May 18, 2024

I suppose that's when I switched from Homebrew's extremely slow system to my own custom system, which checks for more problems than Homebrew.

Anyway, how many installed packages do you have installed? If it's not too many, you could have a look through the folder /opt/homebrew/Cellar (Apple Sillicon) or /usr/local/Cellar (Intel) to see if there are any folders that don't have any sub-folders in them (every folder in that Cellar folder should have at least one sub-folder).

If there are no folders that have any sub-folders, it's something different. It would be really useful to know to know what I'm supposed to fix.

from cork.

buresdv avatar buresdv commented on May 18, 2024

No problem 😊 I will create an issue that will add this checking into Cork and offer to fix it for you, so this doesn't happen in the future.

from cork.

buresdv avatar buresdv commented on May 18, 2024

@steveshi I have created an issue for this, you can follow its progress here: #86

from cork.

buresdv avatar buresdv commented on May 18, 2024

@steveshi Your problem has been fixed and a new version that includes the automatic fixing of this problem is out 😉

https://elk.zone/mstdn.social/@davidbures/110140730430120957
https://elk.zone/mstdn.social/@davidbures/110142600790912240

from cork.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.