Composer "Could not scan for classes" error during update
まだ誰も着手していません。
評価
- 難易度
- 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 にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- 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 日以内に返信