BeautifyRuby icon indicating copy to clipboard operation
BeautifyRuby copied to clipboard

Get's stuck on bigger files. Under both Windows and Linux

Open THPubs opened this issue 11 years ago • 9 comments

When I try to beautify large files (specially html.erb files), Sublime text gets stuck and I have to forcefully exit the application. Why is that?

THPubs avatar Dec 25 '14 03:12 THPubs

https://github.com/threedaymonk/htmlbeautifier/issues/17 closed

goooseman avatar Feb 02 '15 10:02 goooseman

Yes htmlbeautifier gem fixed the issue. But if we update to the fixed version of the gem, BeautifyRuby starts to throw this error : Error: invalid output. Check your ruby interpreter settings

THPubs avatar Mar 11 '15 09:03 THPubs

@THPubs for me everything works ok. maybe the problem in you $PATH

goooseman avatar Mar 11 '15 11:03 goooseman

@goooseman Hi, what is the path you use? Here's what I have used : "ruby": "~/.rvm/bin/rvm-auto-ruby"

THPubs avatar Mar 11 '15 11:03 THPubs

I'm os OS X with RVM and I install all Sublime Text necessary gems to system ruby so I don't change plugin's path setting. I use rvm use system sudo gem install htmlbeautifier

goooseman avatar Mar 11 '15 11:03 goooseman

Im in Ubuntu

THPubs avatar Mar 11 '15 11:03 THPubs

@THPubs I don't know if there a default ruby shipped with Ubuntu.If there any, this code will work. If not, I prefer just typing echo $PATH to terminal and copy-paste this string to settings.

goooseman avatar Mar 11 '15 11:03 goooseman

@goooseman After doing that the path will look like this "ruby": "/home/pubudu/.rvm/gems/ruby-2.2.1/bin:/home/pubudu/.rvm/gems/ruby-2.2.1@global/bin:/home/pubudu/.rvm/rubies/ruby-2.2.1/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/home/pubudu/.rvm/bin:/home/pubudu/.rvm/bin"

Now, not only for html.erb but also for only ruby files I get the error Error: invalid output. Check your ruby interpreter settings

THPubs avatar Mar 11 '15 11:03 THPubs

@THPubs because of this strange behaviors I decided to use system ruby with RVM. With rbenv everything works well with echo $PATH. So i can't help you with this problem.

goooseman avatar Mar 11 '15 11:03 goooseman