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

Inconsistent sync result depending on whether plugin is connected when the change happens #1009

Open
Dionysusnu opened this issue Jan 30, 2025 · 0 comments

Comments

@Dionysusnu
Copy link

I've noticed some inconsistent behaviour in Rojo where a file deletion is applied differently depending on whether the plugin is syncing at the time the filesystem change happens. Is this a bug, or just undefined behaviour?

Repro steps:

  • Start a fresh project with rojo init
  • create client/test/a.luau (content doesn't matter)
  • open a fresh baseplate template in studio
  • sync using rojo serve and the plugin
  • for behaviour B only: disconnect the plugin (keep rojo serve running)
  • delete client/init.client.luau
  • for behaviour B only: reconnect plugin

In behaviour A (plugin connected), StarterPlayerScripts.Client becomes a Folder, and the LocalScript is deleted
In behaviour B (plugin disconnected), StarterPlayerScripts.Client exists twice, once as the original LocalScript, and once as a Folder

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

1 participant