-
-
Notifications
You must be signed in to change notification settings - Fork 68
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
Windows support #180
Comments
I have a very similar error. Windows 10. drupal-check is globally installed using composer. In my drupal project directory (or anywhere else on my whole computer for that matters) if I try any drupal check command:
Error is the same if I try So, is it an autoload problem or something ?
And I can see that it gets correct path at the |
Here is what did seem to work in my case. In |
So this looks like we need to support Windows. This probably needs to be wrapped in We also need to detect if Windows and use the |
Great, let's do that :-) |
It's close. I just don't know why this errors
|
I released https://github.com/mglaman/drupal-check/releases/tag/1.1.4, which calls PHPStan properly. But there's still an error that I can't quite figure out. A Windows user debugging would be helpful |
Re I installed drupal-check on windows 10 locally into my drupal directory using composer. I experienced the above issue. The problem is caused in
Later in So my fix is to change the above code to:
After making this change, drupal-check works as expected on Windows, at least for me. |
🤦 so my fix of appending Thank you @DanChadwick so much, I'm going to make a PR for this! 🙏 |
😱 Windows is green! Tagging a release |
How is drupal-check installed?
drupal-check is installed globally via Composer
Environment:
Describe the bug
I move to G:\xampp\htdocs\myDrupal and run command: drupal-check -a modules
Console output
Using Drupal root: G:\xampp\htdocs\myDrupal
Using vendor root: G:\xampp\htdocs\myDrupal/vendor
PHPStan configuration:
parameters:
tipsOfTheDay: false
reportUnmatchedIgnoredErrors: false
excludes_analyse:
- /tests/Drupal/Tests/Listeners/Legacy/
- /tests/fixtures/.php
- /settings.php
includes:
- C:\Users\Chris\AppData\Roaming\Composer\vendor\mglaman\drupal-check\src\Command/../../../../phpstan/phpstan-deprecation-rules/rules.neon
- C:\Users\Chris\AppData\Roaming\Composer\vendor\mglaman\drupal-check\src\Command/../../../../mglaman/phpstan-drupal/extension.neon
'"C:\Users\Chris\AppData\Roaming\Composer\vendor\mglaman\drupal-check\src\Command/../../../../phpstan/phpstan/phpstan"' is not recognized as an internal or external command,
operable program or batch file.
The text was updated successfully, but these errors were encountered: