Composer "Could not scan for classes" error during update
还没有人认领这个 Issue。
评估
- 难度
- 2/5
- 预计耗时
- 1-3 小时
- 新手友好度
- 30/100
- Issue 类型
- 缺陷
- 描述清晰度
- 基本清楚
- 活跃度
- 停滞
- 技术栈
- php
- 领域
- build-system
调研方向
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.
由索引模型根据 Issue 内容生成。
描述
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?
- 主要语言
- PHP
- 星标
- 35
- 派生
- 21
- PR 合并指标
- 30 天内没有已合并 PR
环境准备
这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
roundcube/plugin-installer 的其他 Issue
-
难度 3/5 1-2 天 新手友好度 53/100
roundcube/plugin-installer#68 · 1 条评论 ·
-
难度 2/5 1-3 小时 新手友好度 34/100
roundcube/plugin-installer#56 · 1 条评论 ·
-
难度 4/5 3-5 天 新手友好度 35/100
roundcube/plugin-installer#55 · 8 条评论 ·
-
composer update (install step removed packages) fails because plugin-installer invokes autoloader未关闭
难度 4/5 3-5 天 新手友好度 25/100
roundcube/plugin-installer#38 · 4 条评论 ·
查看 roundcube/plugin-installer 的全部 Issue
相似的 Issue
-
难度 1/5 1 小时以内 新手友好度 86/100
Automattic/static-site-importer#3462 ·
维护者通常 1 天内回复
-
Document lexicon.default.userconfig and lexicon.default.userconfig.enforced in config.sample.php未关闭enhancement feature: settings good first issue
难度 1/5 1-3 小时 新手友好度 88/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 76/100
nextcloud/integration_openai#480 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 70/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 76/100
roundcube/roundcubemail#10468 ·
维护者通常 1 天内回复