Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Symfony recipe update conflict resolution fails with phpstorm #1362

Open
Tib-z opened this issue Nov 20, 2024 · 2 comments
Open

Symfony recipe update conflict resolution fails with phpstorm #1362

Tib-z opened this issue Nov 20, 2024 · 2 comments

Comments

@Tib-z
Copy link

Tib-z commented Nov 20, 2024

When using PhpStorm v2024.*, running certain Symfony Flex recipe updates (e.g., composer recipes:update doctrine/doctrine-bundle) causes conflict resolution to fail. The following error is displayed in PhpStorm:

Error loading revisions to merge: cannot read object [Hash] '[File path]'

A bug report has already been submitted to the JetBrains issue tracker (IJPL-158448). However according to JetBrains staff, the error is triggered by a missing blob, potentially linked to the Symfony recipe repository or the update process itself.

I haven't investigated Symfony Flex internals or debugged the issue deeply, so I cannot determine whether this is a problem with Symfony Flex's handling of files during recipe updates or a bug in PhpStorm.

Steps to Reproduce (also refer to the jetbrains ticket for repro):

  • Use PhpStorm v2024.* with a Symfony project.
  • Run composer recipes:update doctrine/doctrine-bundle (or a similar recipe update).
  • Attempt to resolve conflicts through PhpStorm.
  • Observe the error: Error loading revisions to merge.

Expected Behavior:
Conflict resolution should work seamlessly after recipe updates without errors.

Actual Behavior:
Conflict resolution fails, displaying an error about being unable to read an object or file.

@Chris53897
Copy link

I can confirm this. It did happen only on symfony/asset-mapper.
This was the first one i picked to update.

@Tib-z Did it happen on all recipes or just the first one?

@Tib-z
Copy link
Author

Tib-z commented Nov 28, 2024

As far as I remember for me it happend with doctrine/doctrine-bundle and symfony/twig-bundle (not with the first one update).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants