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

Add protection against syncing non place projects #691

Merged
merged 4 commits into from
Jun 30, 2023

Conversation

boatbomber
Copy link
Member

@boatbomber boatbomber commented Jun 2, 2023

Closes #113.

Does what it says on the tin. When you try to sync a non-place project, it gives a clear message instead of crashing.

image

@kennethloeffler
Copy link
Member

Nice, easy. My only suggestion is to more explicitly tell the user what they need to do to fix this, because they might not know what a "non-place project" is or what they should be looking for. Change the message to something like:

Cannot sync a model as a place. Ensure Rojo is serving a project file that has a DataModel at the root of its tree and try again.

Maybe even show them what the project file should look like?

@boatbomber
Copy link
Member Author

Good change. We can link to the project format documentation.

@boatbomber boatbomber added type: enhancement Feature or improvement that should potentially happen scope: plugin Relevant to the Roblox Studio plugin size: small labels Jun 4, 2023
@Dekkonot Dekkonot merged commit 66c1cd0 into rojo-rbx:master Jun 30, 2023
3 checks passed
@boatbomber boatbomber deleted the handle-syncing-nonplace branch July 1, 2023 01:01
Dekkonot pushed a commit to UpliftGames/rojo that referenced this pull request Jan 11, 2024
Closes rojo-rbx#113.

Does what it says on the tin. When you try to sync a non-place project,
it gives a clear message instead of crashing.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
scope: plugin Relevant to the Roblox Studio plugin size: small type: enhancement Feature or improvement that should potentially happen
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Make plugin warn when syncing in something that isn't a place
3 participants