-
Notifications
You must be signed in to change notification settings - Fork 146
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
Fixing connection/socket issues #150
Comments
Trying this now...
|
Fatal error on load...
|
This build also failed on your Jenkins CI - https://travis-ci.org/guard/guard-livereload/builds/87576582 |
It's complaining about this line: https://github.com/guard/guard-livereload/compare/misc_rework#diff-bec407288a23c17c3fa5f7f0e96b4e50R25 I dont know enough (or. indeed, anything) about Ruby to fix this. |
@njt1982 - you should migrate to Ruby 2.x (e.g. 2.2.3), because Ruby 1.9.3 is no longer officially supported. |
Ok I'll look into switching... I haven't in the past because: |
@e2 This worth a |
TL;DR - upgrading to latest versions immensely helps everyone in the long run@njt1982, @jibiel - https://www.ruby-lang.org/en/news/2014/01/10/ruby-1-9-3-will-end-on-2015 So it it fails on Ruby 1.9.3, it's actually probably a good thing. Currently, just by "supporting Ruby", we're supporting only Ruby 2.x anyway. I don't think we need to advertise that (until Ruby 3.x?). It probably doesn't make sense for every project out there to add a line to the README at this point. I probably wouldn't mind accepting patches for Ruby 1.9.3 - though it isn't really fair to the Ruby core developer team and the Ruby community to be supporting old versions "just in case". If someone REALLY needs 1.9.3 support for some strange reason, it shouldn't be hard to patch - and they'd be 100% responsible anyway. It also isn't fair to us to have reports about problems with old versions of gems - because everyone is working hard to keep everything bug-free and "improving" all the time (which takes a lot of time by itself). I'd rather have the cutting edge working perfectly - and immediately respond to newly created bugs and issues, than to "stay safe an keep things working as they are". The latest released version should be working perfectly (and better than the rest). If not, that's what experimental and testing branches are for. I'm not strict about this - just gently nudging the world in a better direction ;) |
@e2 Understood. I'm always using the latest versions myself since it's a breeze with a plenty of version managers out there. So yeah, we should definitely encourage that. I feel bad posting off-topic stuff in the issue tracker, so I've created Gitter room for the repo — https://gitter.im/guard/guard-livereload. |
Ok I have switched to a newer Ruby version - turns out RVM was beint a PITA and version locking me to 1.9.3 even though Brew had installed 2.2.x....
(some details redacted) Lets see if this works better... Odd that there are 2 connectios. I conly clicked the Chrome plugin icon once. |
This version is much more stable |
@njt1982 - I'm SO glad to hear that! |
That fix didn't worked for me either. I managed to make it work by adding |
Hi everyone,
If you're having such problems, I created a branch that may "fix things".
Just put this in your
Gemfile
:and then use Bundler, e.g.
bundle exec guard -d
Details
Some currently reported bugs may be due to stuff happening "out of order" and "race conditions".
One thing fixed: guard-livereload may have not yet finished connecting before files were changed.
This means things may be a bit "slower" if you're not working over local connections (if connecting is slower) - but if your connection is slow, you want to know. (Rather than having random failures).
I hope this branch helps track such stuff down.
Please let me know if this branch makes a difference. I could just release it, but I want to make sure it has the right changes to help with future issues. And that it does actually help.
If you're still getting errors DO let me know - I'll add more debugs/changes to help track down and kill these pesky bugs...
The text was updated successfully, but these errors were encountered: