Comments (15)
I found an empty folder, and after deleting it the problem was solved. Thank you.
from cork.
@buresdv I have built the latest version and tested it. The issue had been resolved. Thank you.
from cork.
Would you be able to run Cork through Xcode? That would help me tremendously with tracking down what went wrong.
from cork.
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.
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.
No errors, starts without problems now.
Thanks for the quick fix!
from cork.
No problem 😊 Expect an update containing the fix soon
from cork.
After pulling the update, the program still crashes.
from cork.
@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.
Since building version 0.6, it has been crashing constantly.
from cork.
But versions 0.5 and earlier work normally without crashing.
from cork.
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.
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.
@steveshi I have created an issue for this, you can follow its progress here: #86
from cork.
@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)
- fail to compile reporting `App State.swift:232:107 Value of type 'String' has no member 'onlyLetters'` HOT 1
- please clarify the "If it isn't already selected, change the Build Scheme to Self-Compiled in Xcode's toolbar. " line in the installation instructions. HOT 4
- Support for `sudo` operations HOT 1
- Automatic package updates HOT 3
- Implement a better way of accessing broken packages HOT 1
- `Install` & `Search` button flashes when switching between them HOT 1
- Visual indicator to show outdated casks & option to upgrade --greedy HOT 5
- Build fail attempting to compile Cork HOT 1
- Convert outdated package getting system to JSON
- Switching displayable packages does not properly update the dock badge HOT 1
- Changing package filtering sends a silent notification
- Error while converting `String` to `Data` during the loading of outdated packages swallows the error
- Update codebase to Swift 6 and Strict concurrency checking HOT 1
- Modularize the various parts of the code
- Add support for the `--greedy` flag for outdated package and updating HOT 1
- Add basic info about the outdated package to the list of outdated packages
- Loading status for outdated packages on Status Page sometimes doesn't correctly update when updates finished being checked HOT 1
- Could not load packages HOT 4
- Cannot make use of bundle functionality - Error appears HOT 10
- Couldn't decipher homebrew response - when viewing taps in Cork.app HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cork.