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
-
Feature: Financial follow-up UI
難度 2/5 1-3 小時 新手友好度 85/100
維護者通常 1 天內回覆
-
難度 2/5 1-3 小時 新手友好度 78/100
woocommerce/woocommerce-gateway-stripe#6267 ·
維護者通常 1 天內回覆
-
難度 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 天內回覆