When I update the code on the editor, the code on the terminal is not updated. When creating CLI applications, it's almost impossible to work, because most of the time the changes are not synced correctly.
Is there a way to sync?

| Software | Name/Version|
| ---------------- | ---------- |
| 小odesandbox | PROD-1553195562-ec6c48980
| Browser | 72.0.3626.109
| Operating System | Ubuntu 18.04
That's indeed weird, it should sync automatically. Does your console in the devtools say anything weird?
Hey @marcosc90 , thanks for your bug report!
This might (or might not) be related to #1455 (see my comment ). Either way, this is clearly not supposed to happen, will take a look at it ASAP!
That's indeed weird, it should sync automatically. Does your console in the devtools say anything weird?
Nothing weird, just a few errors when the page loads, but nothing else. No errors at all when saving, and even after refreshing the page, the file is completely saved, but the terminal is not updating correctly.
Hey @marcosc90 , thanks for your bug report!
This might (or might not) be related to #1455 (see my comment ). Either way, this is clearly not supposed to happen.
You're welcome. I don't know if it's related to that, don't think so, but I do have that issue too, and it doesn't bother me right now. My issue affects me directly since I'm unable to use the platform for CLI scripts.
It's probably related, but nodemon stopped working. The server is not restarting anymore.
Hey @marcosc90 ,
I can't really replicate this, has it been happening since? If so, do you have a consistent way to trigger it?
It has happened again, but I don't have a consistent way of triggering it. Once the sandbox is is initialized again, everything is synced.
So as a workaround, maybe a button to reinitialize the Sandbox can be added, or just a button to force sync.
I'll update if I find a way to trigger it.
Yeah, we will add a button that allows restarting the whole container (instead of just the devserver) soon-ish!
Please buzz me as soon as this happens again, if possible; it would be nice to be able to debug it live. Thanks!
Please buzz me as soon as this happens again, if possible; it would be nice to be able to debug it live. Thanks!
@lbogdan It's happening right now, if you give me a way to contact you privately, I can give you the link of the sandbox (It's an unlisted one)
@marcosc90 Sorry, I was asleep when you commented, we're probably in quite different time zones. For next time, I'm luca.bogdan on Skype.
Closing this, as I'm pretty sure it's been resolved by #1729 . @marcosc90 feel free to reopen if it's still happening for you.
@marcosc90 One more thing: before the sync issue happening, did you by any chance get a notification saying "10 updates in less than 2 seconds, disabling file synchronization"?
Hi @lbogdan I have the same sync issue as @marcosc90 with the "10 updates..." notification.
So I managed to reproduce the issue in minimal conditions, and got hit with the notification as soon as I tried to install packages in a subdirectory. From there on, nothing in the editor got updated the via command line.
Here's the link for the sandbox, https://zqlko706ol.sse.codesandbox.io/
Hope this comment is useful for you !
@bumpewto That's because, for now, we don't support syncing that many files. We honor .gitignore, though (only the one in the sandbox's root folder), so what you'll probably want to do is create one and put whatever you don't want to sync (like node_modules, build folders etc.) in there, e.g.:
#/.gitignore
front/node_modules
workspace/node_modules
# or just "node_modules" which will globally ignore all module folders
Alright that's crystal clear, thank you for your quick answer !
Most helpful comment
Hi @lbogdan I have the same sync issue as @marcosc90 with the "10 updates..." notification.
So I managed to reproduce the issue in minimal conditions, and got hit with the notification as soon as I tried to install packages in a subdirectory. From there on, nothing in the editor got updated the via command line.
Here's the link for the sandbox, https://zqlko706ol.sse.codesandbox.io/
Hope this comment is useful for you !