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

Enable hot reloading of interface files #1779

Merged
merged 10 commits into from
Jun 9, 2024

Conversation

amylizzle
Copy link
Contributor

Screencast.from.2024-05-12.14-03-37.webm

Adds a new proc to /world ODHotReloadInterface which forces a reload of the cached interface file and notifies all connected clients to reload it.

Note this also cleans up some stuff that would probably causes issues with reconnecting too, so that's a nice bonus.

@boring-cyborg boring-cyborg bot added Client Involves the OpenDream client Compiler Involves the OpenDream compiler Runtime Involves the OpenDream server/runtime labels May 12, 2024
Copy link
Contributor Author

@amylizzle amylizzle left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

typo + using

OpenDreamClient/Interface/DreamInterfaceManager.cs Outdated Show resolved Hide resolved
TestGame/code.dm Outdated Show resolved Hide resolved
Copy link

github-actions bot commented Jun 6, 2024

This pull request has conflicts, please resolve those before we can evaluate the pull request.

@wixoaGit
Copy link
Member

wixoaGit commented Jun 9, 2024

I think it would be better to make this a server-side RT command

Copy link
Member

@wixoaGit wixoaGit left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Linter seems to have missed these whitespace issues.

Co-authored-by: wixoa <wixoag@gmail.com>
@amylizzle
Copy link
Contributor Author

I think it would be better to make this a server-side RT command

I think it's actually better to leave this as a DM side action, so it can be easily integrated into existing admin and debug tooling which is pretty much all DM already.

The eventual plan here is to integrate it with hot reloading actions of IDEs, but until that's in place I think this is the best approach.

@wixoaGit
Copy link
Member

wixoaGit commented Jun 9, 2024

I think it would be better to make this a server-side RT command

I think it's actually better to leave this as a DM side action, so it can be easily integrated into existing admin and debug tooling which is pretty much all DM already.

The eventual plan here is to integrate it with hot reloading actions of IDEs, but until that's in place I think this is the best approach.

Can we get an RT command regardless so this can be used on codebases that haven’t added it?

@github-actions github-actions bot added size/L and removed size/M labels Jun 9, 2024
@amylizzle amylizzle requested a review from wixoaGit June 9, 2024 19:09
@wixoaGit wixoaGit merged commit 89f5e6c into OpenDreamProject:master Jun 9, 2024
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Client Involves the OpenDream client Compiler Involves the OpenDream compiler Runtime Involves the OpenDream server/runtime size/L
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants