-
-
Notifications
You must be signed in to change notification settings - Fork 89
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
[9.0.0] Enhance Cache support for Windows platform #176
Comments
Did you check Open-Source Code ? if answer is yes, please specify URL of repository |
No, I was checking a private project which is not available to the public. |
As it seems you are checking files on Windows, could you at least specify directories tree with command |
I'm only checking src and tests with phplint, this is the src-folder with "tree /A"
and this is tests
|
There are no special characters on your directories, probably it's one of the files you are checking that have special char. Could you identify it, when you it with the progress ( Don't forget to specify verbose level max |
Thanks for getting back! This is the command I'm now executing:
The output I'm getting from the above command is this:
From the exception message I'd guess that the whole path is used as the cache key which won't work because of the backslashes and the colon. |
Docker is a best compromise if you've a such environment installed on your Windows platform ! |
Otherwise do not use cache anymore ;-) |
While the filename is already "fixed" in Cache.php, line 141, may I rather suggest replacing the line |
Good catch, but your PR is not enough for me (sorry) ! Unit tests are missing, and I prefer to avoid hardcoding values So instead of
I'll use
Bugfix release with tests are allready available, will push it in next minutes : you can close your PR |
Version 9.0.2 has just been released ! Please check-out. |
I used hardcoded values, because you did ;) |
I know ! |
New Issue
Diagnose
Using version 9.0.0 via composer, upgraded from 5.5.
Running on Windows with XAMPP.
Summary
When starting phplint, I get the error:
"Cache key "C:\full\path(...)\Some.php" contains reserved characters "{}()/@:"."
where the cache key is the complete path to the first file being checked.
Expected behaviour
phplint should not issue an error and cache results (as in v5.5).
Actual behaviour
phplint issues an error when using cache.
Using the --no-cache-flag runs fine.
The text was updated successfully, but these errors were encountered: