Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
ruffin-- opened this issue Oct 16, 2015 · 11 comments

Comments

@ruffin--
Copy link

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.

@rangercyh
Copy link

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

@rangercyh
Copy link

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

@liberborn
Copy link

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

@liberborn
Copy link

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

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.

@zhangdingding
Copy link

@liberborn did it right.

@YorkshireKev
Copy link

Reverting to previous commit worked for me. Thanks @liberborn

@rangercyh
Copy link

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

@nicholasblexrud
Copy link

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

@ruffin--
Copy link
Author

ruffin-- commented Nov 3, 2015

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.

@73rhodes
Copy link
Owner

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
Copy link
Owner

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants