iynere / InvisibleTabsSpacesSwitcher

Sublime Text plugin: converts spaces to tabs while you work, then back to spaces when you're done (or vice versa)
https://packagecontrol.io/packages/Invisible%20Tabs%20Spaces%20Switcher
MIT License
4 stars 1 forks source link

This addon is a VIRUS - BEWARE - Do not download - it will corrupt ALL of your files.... it saves on LOAD before you even have a chance to configure and sets tabs at RANDOM SIZES... so I end up with 1 tab and 2 spaces for a line indented once or 3 times... my entire project is corrupted. #2

Open Acecool opened 6 years ago

Acecool commented 6 years ago

I downloaded this because it is supposed to replace SPACES with TABS... The problem is, by default it sets ALL TABS to SPACES and ON LOAD it EDITS THE FILE AND SAVES IT!!!!!!

All of my python files are screwed... Instead of a tab being 4 spaces, as my settings state, some are 2, some are 4... some tabs are there and some are spaces... mixed indentation throughout the entire file, my entire project....

On top of this, you can't UNDO because of how it saves.. and because I restarted Sublime Text before I noticed this malicious addon infected all of my files.... I have a broken neck, back and severe nerve damage - what little time I can spend on work is now going to fix this... my last backup is too many days behind.....

This is so damned bad.. who would save a file on load without letting the user decide - as soon as the addon is installed, it infects all of your files or the next time the sublime text app is restarted.

Please steer clear... it also damaged my column alignment - instead of it using tabs, all of them are spaces...

No wonder some of my files are MEGABYTES when they used to be 100kb.... this is why I don't use spaces and why I'd prefer files I work on to be converted to tabs and why I downloaded this addon.....

Package Control link: https://packagecontrol.io/packages/Invisible%20Tabs%20Spaces%20Switcher


Why did I make this? I don't like working with spaces, but many development projects (Package Control, for example) require them—and coders working on teams often have different personal preferences. This lets you work the way you want to, without causing formatting issues online or making it harder to compare files when reviewing pull requests (GitHub will flag identical files for comparision if one has tabs and one has spaces).

When I installed it.. I could see the first bit - convert spaces to tabs in a file as soon as you open it... there is no mention of saving... it says you have to save for it to convert tabs to spaces ( and the first thing I did was disable that setting although it has a bug in the menu where the default and user files are split into 2 commands instead of 1... the issues page doesn't work at all either for the link which is why I'm posting this virus alert here.

I'm currently trying a technique to fix this by replacing tabs....

8 to 2, 7 to 2, 6 to 2, 5 to 2, 4 to 1, 3 to 1, 2 to 1.. but it still leaves a lot of spaces left over.... and I can't set a macro for it without finding some mod so this is all manual for all of my damned files...

Esteban-Rocha commented 6 years ago

Hey! first of all i do not condone poorly written code or a bad implementation, nor do I even know the author of this plugin (heck I do not even use sublime anymore just have it as a fallback editor), but you should really understand the big basic difference between a virus and a broken sublime text plugin.

I understand that you're frustrated by the result of this "crappy" plugin but you should maintain things clear and bold, because if you're not using GIT or any other half decent VCS good part of this responsibility it's on you for installing plugins that may introduce breaking changes and not applying software development good practices.

Besides of that you really should understand that most OSS as is implicit on the license it's without warranty of any kind and users have the responsibility of taking care when implementing them on their projects.

I'm really not here to take a stand against you, but you cannot just blame all on the developer of this even if it's a bad code (I don't know for sure I haven't tested this yet just assuming and giving credit to your issue), at least take things on the good side and learn from this to apply a proper backup policy and a control version policy for your projects.

Regards,