Sublime-JSLint icon indicating copy to clipboard operation
Sublime-JSLint copied to clipboard

Please heavens warn folks before swapping from old.JSLint to the new version! (and blasting the settings)

Open ruffin-- opened this issue 9 years ago • 11 comments

The update silently wiped out my settings file too. Not great.

I think it's worth putting in an option to use the old JSLint, not that it's difficult to replace the file locally, if you know where it's found. The new ES6 friendly JSLint (which I assume recently came out of beta?) gets much more opinionated than what's up at old.jslint.com -- no this, more draconian about loops, etc. I'm not sure that should be passively updated for plugin users. I realize the options have largely changed too, but you should keep the old ones if users have set them.

Boy, unexpected fun this afternoon.

ruffin-- avatar Oct 16 '15 20:10 ruffin--

how can I use the old version :(, unhappy now!!!!

rangercyh avatar Oct 17 '15 07:10 rangercyh

ok,I know how to use the old version ,now

rangercyh avatar Oct 17 '15 07:10 rangercyh

@rangercyh I'm facing the same issues. Please describe how to roll JSLint back to previous version?

liberborn avatar Oct 17 '15 21:10 liberborn

OK. just made git clone of this project, reverted it to previous version and replaced content of the package in Sublime. Stable commit: 8c99cc3e1420a9e411961c75ec28fa03164d9f8a.

Very unexpected stuff in very inconvenient time. It's not only about indentation. All of my JS files started producing so many errors. And no information in documentation how to configure JS Lint right.

liberborn avatar Oct 17 '15 21:10 liberborn

@liberborn did it right.

zhangdingding avatar Oct 19 '15 09:10 zhangdingding

Reverting to previous commit worked for me. Thanks @liberborn

YorkshireKev avatar Oct 19 '15 19:10 YorkshireKev

yes,I do the same ,it's a pity

rangercyh avatar Oct 20 '15 02:10 rangercyh

git clone https://github.com/73rhodes/Sublime-JSLint.git && cd S ublime-JSLint && git reset --hard 8c99cc3e1420a9e411961c75ec28fa03164d9f8a && git clean -f

Then Sublime Text > Preferences > Browse Packages > JSLint remove all files and copy and paste new files

nicholasblexrud avatar Oct 20 '15 18:10 nicholasblexrud

A few important tips, I guess, if you want to do this without bothering with gitting... NOTE: I also think, if you haven't set auto_upgrade_ignore, you might end up having your pulled version overwritten later as well. That would stink. ;^)

  • See the auto_upgrade_ignore option for the Sublime Text package manager.
  • Add JSLint to auto_upgrade_ignore in Preferences > Package Settings > Package Control > Settings – User [1].
  • Quit Sublime Text 2
  • Blast (delete) your current JSLint package folder.
    • (on Windows, that's likely `C:\Users\YourUserNameHere\AppData\Roaming\Sublime Text 2\Packages`)
      
  • Head to your ST backups folder to get the old plugin
    • (on Windows, that's likely C:\Users\YourUserNameHere\AppData\Roaming\Sublime Text 2\Backup)
  • Grab the one with the JSLint folder in it that's closest to the date of the change.
  • Copy and paste the JSLint folder from your backups folder into your packages folder.

[1] Edit: I think I screwed this up initially. As this faux-bug explanation says:

My guess is that you placed it in the wrong settings file. It should be in Preferences > Package Settings > Package Control > Settings – User and NOT Preferences > Settings – User.

ruffin-- avatar Nov 03 '15 14:11 ruffin--

Hey. Sorry for that. You can use any version of jslint though - it's configurable so you can use the version that ships with the ST package or another version somewhere else on your system. As for user preferences getting hosed, that totally sucks and I'm not sure if it's an ST thing or some crap with this package. Can you provide any other details?

73rhodes avatar Nov 13 '15 03:11 73rhodes

refer to https://github.com/douglascrockford/JSLint/commit/f819cf3c65d07086cf217c549c577fa77dc65fc9#commitcomment-14603692

73rhodes avatar Nov 24 '15 23:11 73rhodes