erb-formatter
erb-formatter copied to clipboard
Formatter is too slow
I installed the VS Code extension[1] after seeing this in the README here:
Features:
- very fast
It takes ~1.7 seconds to format a single 33 lines of code ERB file on save.
VS Code extension output logs
executing: /Users/<user>/.rvm/gems/ruby-3.2.2/bin/erb-format --stdin-filename "/Users/<user>/Developer/jsp/app/views/devise/sessions/new.html.erb" --print-width 80
completed in 2s 464ms
executing: /Users/<user>/.rvm/gems/ruby-3.2.2/bin/erb-format --stdin-filename "/Users/<user>/Developer/jsp/app/views/devise/sessions/new.html.erb" --print-width 80
completed in 1s 716ms
executing: /Users/<user>/.rvm/gems/ruby-3.2.2/bin/erb-format --stdin-filename "/Users/<user>/Developer/jsp/app/views/devise/sessions/new.html.erb" --print-width 80
completed in 1s 946ms
executing: /Users/<user>/.rvm/gems/ruby-3.2.2/bin/erb-format --stdin-filename "/Users/<user>/Developer/jsp/app/views/devise/sessions/new.html.erb" --print-width 80
completed in 1s 745ms
executing: /Users/<user>/.rvm/gems/ruby-3.2.2/bin/erb-format --stdin-filename "/Users/<user>/Developer/jsp/app/views/devise/sessions/new.html.erb" --print-width 80
completed in 1s 803ms
executing: /Users/<user>/.rvm/gems/ruby-3.2.2/bin/erb-format --stdin-filename "/Users/<user>/Developer/jsp/app/views/devise/sessions/new.html.erb" --print-width 80
completed in 1s 710ms
executing: /Users/<user>/.rvm/gems/ruby-3.2.2/bin/erb-format --stdin-filename "/Users/<user>/Developer/jsp/app/views/devise/sessions/new.html.erb" --print-width 80
completed in 1s 771ms
executing: /Users/<user>/.rvm/gems/ruby-3.2.2/bin/erb-format --stdin-filename "/Users/<user>/Developer/jsp/app/views/devise/sessions/new.html.erb" --print-width 80
completed in 1s 767ms
executing: /Users/<user>/.rvm/gems/ruby-3.2.2/bin/erb-format --stdin-filename "/Users/<user>/Developer/jsp/app/views/devise/sessions/new.html.erb" --print-width 80
completed in 1s 763ms
executing: /Users/<user>/.rvm/gems/ruby-3.2.2/bin/erb-format --stdin-filename "/Users/<user>/Developer/jsp/app/views/devise/sessions/new.html.erb" --print-width 80
completed in 1s 701ms
executing: /Users/<user>/.rvm/gems/ruby-3.2.2/bin/erb-format --stdin-filename "/Users/<user>/Developer/jsp/app/views/devise/sessions/new.html.erb" --print-width 80
completed in 1s 681ms
Am I doing something wrong? Can this be made faster?
[1] https://marketplace.visualstudio.com/items?itemName=elia.erb-formatter