BeautifyRuby icon indicating copy to clipboard operation
BeautifyRuby copied to clipboard

Error: invalid output. Check your ruby interpreter settings.

Open alangallagher opened this issue 9 years ago • 3 comments

One more variable to look out for when you receive the above error.

I finally got BeautifyRuby to work by installing the older gem and modifying file type settings in the BeautifyRuby.sublime-settings. It now works on .erb and html.erb files, most files that is. I have several that still generate the invalid output error. By deleting parts of the file I have narrowed the problem to the last line that contains <%end%> and nothing else. The file has only one line and still gives the error.

To make a very long story short I found that the problem was with an erroneous with no matching

. Shouldn't BeautifyRuby be able to recognise that? It also gives the same error with an unmatched <%end%> which explains the above paragraph. Not sure if this is the expected behavior or not but it certainly is confusing when combined with the numerous other configuration variables. Hope this helps someone else. Otherwise a great program.

alangallagher avatar Mar 15 '15 15:03 alangallagher

The original comment is not complete. For some reason the table row symbols were parsed out of my comment. It should read "To make a very long story short I found that the problem was with an erroneous beginning table row with no matching end table row." .

alangallagher avatar Mar 15 '15 16:03 alangallagher

im facing the same problem.

i thank the developer for his work.

would be awesome if beautifyRuby could handle this issue.

benkoshy avatar Mar 30 '18 00:03 benkoshy

Error only happens on html.erb I deleted "\.html\.erb" in file_patterns": ["\\.html\\.erb" .......]

JuPlutonic avatar Apr 03 '20 10:04 JuPlutonic