Open macbookandrew opened 3 years ago
Totally agree. This has all been internal Shift logs, so they're a bit raw. We'll work to clean these up so there's a bit more direction on how you might resolve the issue yourself.
In this case, did removing the _ide_helper.php
file resolved the issue?
Unfortunately that didn’t resolve it. I was able to run the same shift on another project and it ran fine so must be something about the specific project, but I haven’t been able to dig any further yet.
All of the generic PHP shifts I tried on that specific project failed with the same error, though the Arrow functions did process and update some files before it failed.
Thanks for Workbench and Shift in general! I didn’t realize Workbench had a bunch of free tasks until the Laravel News podcast mentioned something about it in this week’s episode.
If you'd be willing to try the same task on the cloud-based Workbench and respond back with the build number, I may be able to help diagnose the issue by reviewing the server logs.
Otherwise, we should be able to patch this in the next week or so.
I can wait for the patch unless it would help you for me to run the same cloud-based task
The cloud based task might clue me into your problem. But in general, it's not necessary for us to improve the error reporting. So your call. If you run it, feel free to email support with your build number so I can take a look.
@jessarcher, can you see if we can somehow determine from Rector's output which file it failed to parse and report this back to the app.
What would you like to do? When a fatal error is thrown, it would be great to have a bit more context about what file was being processed when the error occured.
Example output when running the PHP7.3 Array Functions task:
I’ve searched my codebase for
class Collection
and ~it’s not coming up~ just found it in_ide_helper.php
from this package.If possible, it would be nice to see the file being processed when the error occurred so I can more easily track it down.
Before/After code snippets Perhaps something like this: