-
Notifications
You must be signed in to change notification settings - Fork 9
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
New files not syncing #37
Comments
Hmmm, this should work. Does the file appear on the other computer when you type something into it? |
@rationalcoding Is there a way of checking which files are set to sync on the server? |
Thanks. It seems by this and your other issue that most of the syncing isn't working correctly for you... Are you using Bracket's "new window" feature to test this, or a whole new instance of Brackets? What is your OS and Brackets version? And just to be sure, what is your Multihack-brackets and Multihack-server versions? Thanks, hope I can get to the bottom of this for you :) |
If you could post the Brackets console log, that would be immensely helpful as well. |
And no, you can't tell what files are being synced from the server. The server actually has nothing to do with the syncing, that is all peer-to-peer! |
Brackets console log:
If it helps I can also upload my full system information log |
@rationalcoding Oh I thought the server managed all the code. So what does the server do? How is it different from just doing it without making a server? |
I can't see anything wrong with your setup or logs immediately (it's nearly identical to my own setup), but I'll take a closer look later. The server sets up the P2P connection, serves multihack-web, and provides a proxy for versions without P2P support. You don't really need to run your own instance unless you have strict security concerns, have firewall issues, or want to save me some server bandwidth :p |
@rationalcoding OK. Thanks for replying so quickly. I love this extension when it is working but thus far it's been a bit unstable. If there is anything else I need to provide to help you debug it, just let me know. |
Fixed in |
Thanks again for all the bug reports. It's a shame these things made it past testing, but there were some major changes a few weeks ago. I'll try to be more careful in the future. :) |
@rationalcoding Thanks for all the work. Unfortunately it still doesn't work. Now it won't sync at all for some reason. Whether it's on the same PC or multiple ones, it isn't syncing. At first, it was showing the other computer in the room. Then, after disconnecting and reconnecting there were duplicates of one of the computers. Now, I can't seem to get it to work at all. I will try to reproduce. I don't get why I am having so many issues. Could it be to do with me using windows 10? |
Hmmm... I'm starting to think that might be the case. I'll get a VM up to try and reproduce. I'm the meantime, could you switch to the public server (to rule out any server issues), and post your log next time syncing fails? |
@rationalcoding It seems to work on one computer (multiple brackets instances) just fine on the public server. I had thought I had tried the public server by not hosting a multihack-server but I forgot to clear my custom hostname preference 😄. On two computers (on the public server), however, it is still behaving strangely. The steps I carried were as follows:
computer1 log:
new in computer1 log after computer2 connects
computer2 log:
Both computers can see the other in the room but nothing is syncing. One more thing, I updated brackets to "Release 1.9 build 1.9.0-17312" to see if that would help (it didn't). |
Oh, the P2P connection failed. That should be just intermittent though. Can you confirm this happens repeatedly? |
Paging @kifhan. Any ideas on why this might be happening, I know you took a look at this the other day. Another reason to implement a fallback on P2P connections too. |
@rationalcoding Yes. I tried it multiple times to see if it was reproducible. It might be to do with it being online. I will test it on a LAN tomorrow. |
Ah, you weren't connected to the internet? Just your LAN? |
I was connected to the internet but the other computer was on the same LAN. This time it is in another location connected to the internet. |
@nextgensparx I can confirm it's not a Windows 10 issue btw. |
@rationalcoding Still exactly the same. computer1 log:
computer2 log:
You said it fixes some stuff in the web version should I try that instead of the brackets version? |
You could try the web version. That would help rule out some network issues. |
It appears to behave exactly the same from the web version. I can see the other computer in the room but no files are syncing. In brackets on the same computer, I can connect to the web version just fine like having two instances of brackets running. It's also throwing the same error I believe: |
It's definitely a network issue then. Sometimes these ICE failures just "go away", so I encourage you to try again later. You could also try disabling any firewalls on your machine and router and see if that helps. Using a VPN may also work. These failures aren't related to Multihack, but WebRTC in general. I'm working on switching to the fallback when this happens, but it'll take some time. |
Closing in favour of #45. Feel free to continue discussion here. |
@rationalcoding OK. If it's out of your control that's fine. Would this still happen if the computers were on the same LAN? |
It's possible, yes. ICE is very complex and can fail for a large number of network-related reasons. |
@rationalcoding OK it appears to work on LAN. Another issue is trying to delete the new file. When I press delete on computer1 it deletes on computer1 but not on computer2. The logs (after pressing delete) are shown below; computer1 (delete orange.js)
(btw you misspelled 'selection' as 'seleciton' 😄 ) computer2
This only happens sometimes. Other times, it deletes it successfully on both computers. |
It should also fix your deletion issue. For some reason I was just wiping the file if it was open, but not anymore. |
@nextgensparx Did |
@rationalcoding Sorry for not responding. Currently on holiday. I will try and test this when I get back. |
@rationalcoding An eternity later 😄, New files now sync, hooray! The extension fails to load sometimes but that might be because a conflicting extension:
It also occasionally still duplicates the contents of files, but I can't reproduce it. |
Great. I've fixed the babel-polyfill conflict in |
Issue
Creating a new file while connected to another computer through multihack-server does not create the file on the other computer.
Steps to reproduce
Expected result
A new file should be created on the computer 2
The text was updated successfully, but these errors were encountered: