flow-development-collection icon indicating copy to clipboard operation
flow-development-collection copied to clipboard

BUG: `doctrine/migrations` has no more ConsoleLogger

Open Jan3k3y opened this issue 1 year ago • 3 comments

Is there an existing issue for this?

  • [X] I have searched the existing issues

Current Behavior

./flow doctrine:migrate

Class "Doctrine\Migrations\Tools\Console\ConsoleLogger" not found

Type: Error File: Data/Temporary/Development/SubContextBeach/SubContextInstance/Cache/Code/Fl ow_Object_Classes/Neos_Flow_Persistence_Doctrine_Service.php Line: 238 beach@6bc8157fb20c:/application$ ./flow doctrine:migrate Migrating up to Neos\Flow\Persistence\Doctrine\Migrations\Version20240906102606

Expected Behavior

./flow doctrine:migrate

Migrating up to ...

Steps To Reproduce

Updating neos/flow the doctrine/migrations package is updated to 3.9.x-dev. After './flow doctrine:migrate' there is an error (see current behavior) that ConsoleLogger was not found.

In there the ConsoleLogger was deleted and the Logger from Symfony is used instead.

See here: https://github.com/doctrine/migrations/commit/2700819827c0748ba33f3a3b0e4f0746cbcf05b6#diff-2cc9c3db4c79b32974d69ac0f6ff0438356f4ce1c39b918b5e0cea02b21dfdd5

Environment

- Flow: 9.0.x-dev
- PHP: 8.2.24

Anything else?

No response

Jan3k3y avatar Oct 21 '24 11:10 Jan3k3y

Are you sure about the PHP version? Because we officially support only PHP 8.3.x for Flow/Neos 9.0 ? That could already be the root of the issue otherwise.

kitsunet avatar Oct 21 '24 11:10 kitsunet

Pretty sure 🤔

image

Jan3k3y avatar Oct 22 '24 09:10 Jan3k3y

I'd say then our constraints are bad, but we definitely expect 8.3 at least

kitsunet avatar Oct 22 '24 09:10 kitsunet

I am sorry, too much going on, we are discussing PHP 8.3 as requirement but that is not the case right now.

Which version of the doctrine packages got installed?

kitsunet avatar Oct 24 '24 07:10 kitsunet

Maybe we both have been doing enough Neos stuff the last days…

I just checked the repo and found the change on the 4.0.x branch Currently i have a working codebase with neos/flow:9.0.x-dev requiring doctrine/migrations:^3.3

So I don't know what happened with my system But it's working again and I updated to php 8.3 after your last message

Jan3k3y avatar Oct 24 '24 08:10 Jan3k3y

No!! Still a problem with doctrine/migrations:3.9.x-dev https://github.com/doctrine/migrations/tree/3.9.x/src/Tools/Console

Jan3k3y avatar Oct 24 '24 09:10 Jan3k3y

Is fixed now

dlubitz avatar Dec 13 '24 16:12 dlubitz