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

forc-fmt takes too long on long method call chains #7021

Open
xunilrj opened this issue Mar 14, 2025 · 1 comment
Open

forc-fmt takes too long on long method call chains #7021

xunilrj opened this issue Mar 14, 2025 · 1 comment
Assignees
Labels
bug Something isn't working formatter team:tooling Tooling Team

Comments

@xunilrj
Copy link
Contributor

xunilrj commented Mar 14, 2025

Maybe nobody will ever write code like this, but a "long" method chain puts "forc-fmt" in "infinite loop". I waited for 5m and nothing.

f.debug_tuple("").field(self.0).field(self.1).field(self.2).field(self.3).field(self.4).field(self.5).field(self.6).field(self.7).field(self.8).field(self.9).field(self.10).field(self.11).field(self.12).field(self.13).field(self.14).field(self.15).field(self.16).field(self.17).field(self.18).field(self.19).field(self.20).field(self.21).field(self.22).field(self.23).field(self.24).field(self.25).finish();

When I break this into 25 statements, it works normally.

@sdankel sdankel added bug Something isn't working formatter team:tooling Tooling Team labels Mar 14, 2025
@KevinMomanyi
Copy link

Is this issue still available?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working formatter team:tooling Tooling Team
Projects
None yet
Development

No branches or pull requests

3 participants