-
-
Notifications
You must be signed in to change notification settings - Fork 67
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
Error: Class was not found while trying to analyse it - autoloading is probably not configured properly. #55
Comments
It looks like I should expand #54 to not only test the built phar but also include it globally and test. And test with Cloudflare. |
Seeing this issue as well. Installed via:
|
Interesting. I'll add checks on #54 |
@vijaycs85 those failures are actually due to |
@johnzzon I also cannot reproduce. I just tagged 1.0.9, care to try that? Also, my tests are using the phar. I'll make an update attempting via the global install. |
Still no go.
|
@dalin- what is cgr? Can you try without cgr and using the phar? I have automated test coverage for the Phar and Is this Can you also run with |
@mglaman FWIW, those first 4 lines are identical whether I'm using CGR, or the .phar. What's weird is that when I run via CGR it's only looking at class files and not at .module/.install/etc. files.
|
CGR resolves dependency problems but creates a whole new mess for assumptions. And Drupal Check relies on a lot of assumptions. Would you mind opening a new issue specifically for CGR installs? I can then whip up a CircleCI job and figure out what is happening |
version 1.0.9 fixes the same issue also when running checks locally, when using
|
Opened an issue with CGR: |
@dalin- oh sorry I meant here, I probably need to do some extra work on my end. |
I'm going to close this as I think the original issue is fixed, and then tackle CGR. |
I'm running into this issue while trying to scan my custom modules. Contrib seem to be ok. The use case I am trying to support is:
Every custom module in my codebase throws the |
@mikemadison13 can you open a new issue. And please don't use it at a project level. The preferred method is a Phar |
Problem
drupal-checker modules/contrib/[module name]
throwsClass [Class name] was not found while trying to analyse it - autoloading is probably not configured properly.
Environment details
composer global require mglaman/drupal-checker
)composer require --prefer-source drupal/cloudflare
)Output
The text was updated successfully, but these errors were encountered: