Sublime Forum

Sublime Text 4 thinks my Ruby is Python

#1

Howdy,

Since upgrading to the latest release of Sublime Text 4 (build 4126), whenever I save a Ruby file, it is automatically reformatted as if it were Python, with trailing commas at the ends of arrays and hashes, using double-quotes in uninterpolated strings instead of single quotes, and generally defying good Ruby style guidelines.

I used to have SublimeLinter, SublimeLinter-Ruby, SublimeLinter-Rubocop, and Formatter packages installed, but this reformatting behavior keeps happening even after all of them have been removed and the app restarted.

Any ideas? I do not want my Ruby to look like Python. The linter gets testy. Thanks in advance for any ideas you might have.

0 Likes

#2

What other packages do you have installed? How did you remove those particular packages?

0 Likes

#3

I had removed all the linters (or so I thought) but I looked up how to get a full list of my installed packages that I could copy and paste, and I saw there “sublime-rufo”, a Ruby reformatter, which I had completely forgotten I’d installed. Removing that seems to have solved the problem. That package must be incompatible with Sublime Text 4’s latest build. I’d completely forgotten I’d installed it. Thanks!

BTW all packages were removed using the Package Control “Remove Package” function.

The copyable list of installed packages was found by following the most popular answer in this link: https://stackoverflow.com/questions/30002658/what-is-the-most-practical-way-to-list-all-the-installed-packages-in-sublime-tex

Otherwise I was just listing them by hand using Package Control.

0 Likes