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

unexpected token error #6528

Closed
ghost opened this issue Jun 25, 2021 · 4 comments
Closed

unexpected token error #6528

ghost opened this issue Jun 25, 2021 · 4 comments
Labels

Comments

@ghost
Copy link

ghost commented Jun 25, 2021

Bug Report

Subject Details
Rector 328b5b4

I'm getting:
[ERROR] Unexpected token "", expected ')' at offset 578

Minimal PHP Code Causing Issue

That's what I would like to know! The error tells me nothing and I don't even know what file

Expected Behaviour

[ERROR] Unexpected token "", expected ')' at /path/to/somewhere/where/that/happens.php on line 123 at offset 578

Could you anyhow refactor that message accordingly?

@ghost ghost added the bug label Jun 25, 2021
@TomasVotruba
Copy link
Member

Thank you for your report!

We'll need an isolated failing demo link from: http://getrector.org/demo,
that way we can reproduce the bug.

@ghost
Copy link
Author

ghost commented Jun 28, 2021

well I just used the option -vvv and posted the contents of the last listed file to the demo page.
That might be the one https://getrector.org/demo/1ebd7ec3-a03d-65cc-9771-5d818f32be4e

anyway your error messages should be more precise ;)

@TomasVotruba
Copy link
Member

TomasVotruba commented Jun 28, 2021

Thanks! The demo link is very hard to read. We need a smaller demo like 5-10 lines that causes the issue.

Feel free to improve the error message if you find a way 👍

@TomasVotruba
Copy link
Member

TomasVotruba commented Jul 5, 2021

Closing for lack of narrow feedback. We cannot do anything about it with reproducible failing CI

TomasVotruba added a commit that referenced this issue Dec 12, 2024
rectorphp/rector-src@184ce76 [FileProcessor] Remove unnecessary FileDiffFactory::createTempFileDiff() take 2 (#6528)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant