-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Test failure: Error resolving real path of 'spec/std/data/test_file.txt' #8547
Comments
related to #8431 ? Sometimes I wonder if |
@rdp yes that looks like it! I would like to try this to see if it fixes the issue:
But I'm struggling to figure out how to run a single spec.
Do you know how I can just run that one spec in the Crystal test suite? |
You need to use There's a bit more info here: https://github.com/crystal-lang/crystal/blob/master/CONTRIBUTING.md#the-standard-library (it might be outdated, I'm not sure) |
Ah thanks, yes that was it! I set up an alias so I don't forget that again:
|
I wanted to see if there might be an automated way to fix this issue on Mac, so I found out that these file permissions are managed in /Library/Application Support/com.apple.TCC/TCC.db. However, this file is protected by SIP, so it's read-only unless you boot into recovery mode (even with sudo.) FWIW, I figured out the SQL query that would work if it was writable:
So I went to System Preferences => Security & Privacy => Privacy => Full Disk Access. Then clicked the lock icon to make changes. Then I clicked "+" to add a new app, and navigated to my crystal source code folder. Then I needed to press Unfortunately that didn't fix the spec! I tried again with the So I'm not sure what else to try! This is how Julia fixed the issue: Replace realpath implementation with libuv |
I just saw this comment in gitter:
EDIT: Here's another relevant discussion on the deepmind/lab project: google-deepmind/lab#173 |
@ndbroadbent If you want to run a single spec, you can either do it "does stuff", focus: true do
end or run the spec file with the line number
|
Hello! I cloned the crystal repo (up to commit 54e68f0), and ran all of the tests with
make spec
. I got one test failure:The text was updated successfully, but these errors were encountered: