-
Notifications
You must be signed in to change notification settings - Fork 44
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
prettier-plugin-apex throwing Internal error in version 2.2.2 #1733
Comments
Hi there, thank you for reporting this issue. This is definitely very interesting, and I don't have a clear idea why it's happening just yet. Does this happen to only one file in your repository, or does it happen to every file? On a technical note, reading the stack trace, it looks like the program is running into a stack overflow during the serialization process. I'm very curious how that could've happened. |
One thing to try is to set the |
This worked. Thanks! |
It's happening to certain number of files but not all. I cannot share the exact file here but I'll try to get a similar class file where I can reproduce the issue. That should help you understand the problem better. And yes, it's just happening in the context of CI/CD, working just fine on my local machine. |
Self-Troubleshooting Checklist
Describe your issue
I'm running the prettier-plugin-apex in CI CD pipeline. Till version 2.1.4, everything is just fine but now in latest version 2.2.2. I'm getting some Internal error thrown by the plugin.
Though the plugin still scans and does it's job it seems but it keeps throwing error along.
I'm pasting the some portion of error log here due to length limitation for better understanding. Please find the complete log in the attached text file.
prettier_plugin_apex_errorlog.txt
Prettier options (if any)
No response
System Info
The text was updated successfully, but these errors were encountered: