-
-
Notifications
You must be signed in to change notification settings - Fork 6.9k
[BUG] debugSupportingFiles no longer works #14161
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
Comments
I cannot edit this issue, so let me add additional information. I can consistently reproduce this from master. Here is the stacktrace when running the command above:
Looking at it, it looks like the issue comes from this line :
as in, Note that pretty printing works for operation or models so it seems quite a specific issue. I can reproduce consistently on all configs I try, so it seems that the problem is not localized. Examples :
System is a Mac OS Ventura running openjdk 17.0.2 2022-01-18. Tried playing with |
I can reproduce the same issue with v6.1.0, v6.0.0, and even v5.4.0. Looks like I either have a tricky system, or I am the only one using that option ^^ |
Alright, been using
(Couldn't use It appears the bug was introduced in |
Alright, diving further, the error goes away if I comment out that part of the
ef8e55c#diff-8b968986cd609d4ff488d18da27a0a46020d12478584614d625ff7b4640fb4d8R211 |
Ok, I think I understand what happens. As I understand it, it basically contains the whole operation again in different formats, leading to infinite loops when asking to JSON.print the structure further down the line. I'd appreciate some advice at this point. Can someone confirm the problem and offer a potential solution? Should we
Thanks! |
Thanks for doing this research. This is the preferred solution. Want to fix it in a PR? |
Hey there, I'll give a stab at it! Though not exactly sure how, given the method is called by the |
Created #14266 to propose a fix. |
🎉 |
I think this can be closed @spacether @wing328 ? Or are you folks waiting for a version release? (happy new year in advance BTW!) |
This issue was fixed in #14298 |
Bug Report Checklist
Description
[BUG] debugSupportingFiles no longer works
openapi-generator version
Latest, may have shown up in 6.2.1 per Slack chat
OpenAPI declaration file content or url
Generation Details
Steps to reproduce
Run any generate command with debugSupportingFiles turned on
Related issues/PRs
Suggest a fix
The text was updated successfully, but these errors were encountered: