Share your repls and programming experiences

← Back to all posts
Realtime file updates
amasad (1381)

Repl.it now will sync your files in realtime. It even has a neat little cursor for when the system is giving you file updates 🤯

Try forking this repl, running it, and going to henlo.txt to see it in action:

Commentshotnewtop
eankeen (608)

awesome! this is a monumental feature

KeaganLandfried (7)

I've been waiting for this feature for years... literally!! Thank-you!

Septem151 (0)

So something in this update may have changed, because I'm unable to even create files in Java programs. It apparently gets created because subsequent calls to "createNewFile()" indicates that the file already exists, but upon refreshing the page it creates the file again as if it never existed. During the whole time, there is no file (or folder) present in the left-hand window.

amasad (1381)

@Septem151 hey there. Can you share the program that you're speaking about?

Septem151 (0)

@amasad
It’s affecting multiple repls, but this one prints whether the file is created or not. https://repl.it/@Septem151/test

amasad (1381)

@Septem151 Ok, we'll debug and get back to you.

AllAwesome497 (98)

So does this mean that editing files through repl may soon become stable?

amasad (1381)

@AllAwesome497 everything, overall should be a lot more stable today than it used to be. But, tell me, what exactly in your experience is not stable ?

AllAwesome497 (98)

@amasad Tested, and it is still an issue, (at least using the python method)
here is an example:
https://repl.it/@AllAwesome497/Python-file-storage-bug
Also sorry for the delayed response I had to write that script and I couldn't remember how to do it as its been a while since I have.
Edit: also forgot to mention, it also still doesn't update it live in python.

amasad (1381)

@AllAwesome497 that is a bug. We're looking into it.

With regards to realtime file updates it does actually work in Python. Try this: https://repl.it/@amasad/realtime-python-updates

AllAwesome497 (98)

@amasad Neat ok. Even if we can't use files as databases.

theangryepicbanana (739)

Yaaaay been waiting for this

Kognise (219)

Wow! Super useful, especially for debugging file write operations :)