Composer "Could not scan for classes" error during update
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 2/5
- Tiempo estimado
- 1-3 horas
- Aptitud para principiantes
- 30/100
- Tipo de issue
- Error
- Claridad
- Bastante claro
- Estado de actividad
- Estancado
- Stack tecnológico
- php
- Área
- build-system
Línea de trabajo
Start by reading the reported .gitignore rules and the included test-composer/composer.json in the installed plugin, then trace how the package is included during Composer installation. Confirm whether those files cause the class-scan warnings and identify the intended installation behavior. Done means the warnings’ cause and a reliable fix are established; the issue does not name tests or implementation files.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
I am receiving this error from Composer:
$ sudo -u www-data php composer.phar update
Could not scan for classes inside "/var/www/mail.<redact>.com/vendor/roundcube/carddav/carddav.php" which does not appear to be a file nor a folder
Could not scan for classes inside "/var/www/mail.<redact>.com/vendor/roundcube/carddav/dbmigrations/" which does not appear to be a file nor a folder
Loading composer repositories with package information
Updating dependencies
Nothing to modify in lock file
Installing dependencies from lock file (including require-dev)
Nothing to install, update or remove
Generating autoload files
30 packages you are using are looking for funding.
Use the `composer fund` command to find out more!
No security vulnerability advisories found.
The directory roundcube/carddav/ does not exist in the vendor directory. I searched the server to delete all of the user composer settings and cleared the composer cache using 'composer clearcache'. I also deleted the lock file and recreated it with an update and then I deleted the vendor folder and ran 'composer install'. None of those fixed the problem.
Next, I searched the vendor folder for 'roundcube/carddav'. This is more complicated because I have the carddav plugin installed and working correctly. I found that string in a file named /var/www/mail.(redact).com/vendor/roundcube/plugin-installer/test-composer/composer.json
The first part of the file contains:
{
"name": "roundcube/plugin-installer-test",
"require": {
"roundcube/carddav": "^4 || ^5"
},
Looking at the .gitignore for the plugin, I see this:
/test-composer/*
!/test-composer/composer.json
So it looks like when I delete the vendor directory and allow composer to re-install it, composer installs /vendor/roundcube/plugin-installer/test-composer/composer.json which it should not. Am I correct and can I just delete this directory to fix the error messages?
- Lenguaje dominante
- PHP
- Estrellas
- 35
- Forks
- 21
- Métricas de merge de PR
- Sin PR fusionados en 30 d
Preparar el entorno
Este proyecto no incluye contenedor de desarrollo, Dockerfile ni guía de contribución, así que la configuración corre por tu cuenta: empieza por su README y consulta nuestra guía para la primera contribución para los pasos generales.
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de roundcube/plugin-installer
-
Dificultad 3/5 1-2 días Aptitud para principiantes 53/100
roundcube/plugin-installer#68 · 1 comentario ·
-
Compatybility with PHP 5 brokenAbierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 34/100
roundcube/plugin-installer#56 · 1 comentario ·
-
Dificultad 4/5 3-5 días Aptitud para principiantes 35/100
roundcube/plugin-installer#55 · 8 comentarios ·
-
composer update (install step removed packages) fails because plugin-installer invokes autoloaderAbierto
Dificultad 4/5 3-5 días Aptitud para principiantes 25/100
roundcube/plugin-installer#38 · 4 comentarios ·
Todos los issues de roundcube/plugin-installer
Issues similares
-
Dificultad 1/5 Menos de una hora Aptitud para principiantes 86/100
Automattic/static-site-importer#3462 ·
Los mantenedores suelen responder en 1 día
-
Document lexicon.default.userconfig and lexicon.default.userconfig.enforced in config.sample.phpAbiertoenhancement feature: settings good first issue
Dificultad 1/5 1-3 horas Aptitud para principiantes 88/100
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
nextcloud/integration_openai#480 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 70/100
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
roundcube/roundcubemail#10468 ·
Los mantenedores suelen responder en 1 día