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

Make config migration more robust #670

Merged
merged 3 commits into from
Apr 14, 2023
Merged

Make config migration more robust #670

merged 3 commits into from
Apr 14, 2023

Conversation

Erimelowo
Copy link
Member

Please release 0.7.1 along with this

@Erimelowo Erimelowo added Type: Bug Something isn't working Priority: High Important feature or blocks something important labels Apr 13, 2023
Comment on lines +226 to 228
} catch (Exception e) {
LogManager.severe("Error during config migration: " + e);
}
Copy link
Member

Choose a reason for hiding this comment

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

If anything goes wrong, do we make a backup of the original config? We most definitely should. If it's not viable to do it on an error, then do it before any config migration is done.

Copy link
Member Author

Choose a reason for hiding this comment

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

Not sure that’s possible with how it is currently set, but Uriel wants to rewrite the whole config system or something anyways…

Copy link
Member

Choose a reason for hiding this comment

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

I think butter is saying to just copy the config file and put it into a .old one

Copy link
Member Author

Choose a reason for hiding this comment

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

I know, but does the class have access to the file itself? All I see is that it has access to the content… not even the file path, and we can’t access vrServer because it’s in lateinit

Copy link
Member

Choose a reason for hiding this comment

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

sigh, yeah lets leave it for the rewrite

Copy link
Member

Choose a reason for hiding this comment

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

Unfortunate, probably "okay" then as long as it's fairly reliable

@Eirenliel Eirenliel merged commit d6255cf into main Apr 14, 2023
@Eirenliel Eirenliel deleted the vrconfig-crash-again branch April 14, 2023 13:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Priority: High Important feature or blocks something important Type: Bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants