-
-
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
Class not found error from drupal.org deprecation checker #121
Comments
This didn't seem related to #124. I tried testing this manually with drupal-check so it's possible that at some point this was broken, but now is fixed in the project. Doing a little research mglaman/phpstan-drupal:0.11.14 was refactored, but that doesn't explain that on 2019.01.18 which used 0.12.1 that the same issue occurred. This is probably unrelated to drupal-check because drupalci uses phpstan directly so the Acquia reports are generated from that and not a local drupal-check run. |
Trying to run the same thing drupalci does manually confirms that it's still an issue. I think this is because there's different phpstan configurations and phpstan doesn't actually use the autoloader in phpstan-drupal.
I found extension.neon and if I include that within phpstan-drupal's phpstan.neon file then I get a different output for the above command. Maybe phpstan-drupal and/or drupalci should use a different phpstan.neo file? |
I copied that to a new blah.neon file, changed the drupal root to the full path to my drupal root above, and then I ran the command above with "blah.neon" instead of "phpstan.neon", and that came up clean. I also tried 0.12.1 and it ran clean as well. So I'm still confused as to why the output isn't correct on drupalci. |
Didn't plan on going down the rabbit hole, but I documented everything and tried reproducing using phpstan-drupal as part of the drupal root and still couldn't reproduce. I created https://www.drupal.org/project/infrastructure/issues/3107858 because this seems like something going on with CI rather than anything in phpstan-drupal itself. |
So, I didn't realize the 1.0 tag was 3 years old and uses the old functional test class location. I think if there was another release, then it should be working as expected, @jhodgdon-drp |
How is drupal-check installed?
I am not sure how it is installed -- this report is based on output at
https://dev.acquia.com/drupal9/deprecation_status/errors?project=porterstemmer%201.0
from the drupal.org deprecation checker.
Environment:
Again, not sure what the environment is.
Describe the bug
The test results from the drupal.org deprecation checker on https://www.drupal.org/project/porterstemmer are showing a "class not found" error that doesn't make sense. It's saying it cannot find the class Drupal\Tests\porterstemmer\Functional\LangCodeTest
However, DrupalCi is able to find this class for automated tests, and it is in:
https://git.drupalcode.org/project/porterstemmer/blob/8.x-1.x/tests/src/Functional/LangCodeTest.php
in the branch that is being tested.
This seems similar to #55 but that issue is marked closed/fixed, so I am opening another issue.
Console output
I don't have the console output. All I have is what is on the web page output:
Class Drupal\Tests\porterstemmer\Functional\LangCodeTest was not found while trying to analyse it - autoloading is probably not configured properly.
The text was updated successfully, but these errors were encountered: