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

Separate data from executable #90

Open
wants to merge 13 commits into
base: master
Choose a base branch
from
Open

Conversation

teackot
Copy link

@teackot teackot commented Nov 10, 2022

Related to #89

@teackot teackot changed the title Separate data and executable Separate data from executable Nov 10, 2022
@teackot
Copy link
Author

teackot commented Nov 11, 2022

Also related #29

@qrrk
Copy link
Owner

qrrk commented Nov 11, 2022

Hi. Thanks for your work!
I've actually had a similar idea for a while with #46, but I see no reason not to do both.
I've got a lot going on IRL right now, so I'll give your PR a more thorough look a bit later (perhaps over the weekend).

@teackot
Copy link
Author

teackot commented Nov 11, 2022

I actually just implemented global settings and going to add an installation path option (doing this right in this PR)

@teackot
Copy link
Author

teackot commented Nov 11, 2022

I'll give your PR a more thorough look a bit later (perhaps over the weekend).

Yeah we're not in a hurry and I'm still adding stuff to this PR so that's fine

Copy link
Owner

@qrrk qrrk left a comment

Choose a reason for hiding this comment

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

Whew, finally got some time to look at this (but not super thoroughly). Sorry for disappearing on you.

I ran into issues trying to launch it, because of nulls, etc. (see my comments). Once you take care of them, I'll take a more thorough look at it and maybe throw in some suggestions (or add them myself).

Gotta run now. Hopefully it won't be a month until next time :)

catapult_dir = _determine_catapult_dir()
settings_dir = _determine_settings_dir()

Settings.load_settings(settings_dir)
Copy link
Owner

Choose a reason for hiding this comment

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

This is not needed, it is called automatically when Settings.read is called for the first time.

settings_dir = _determine_settings_dir()

Settings.load_settings(settings_dir)
var inst_dir_setting = Settings.read("installation_dir")
Copy link
Owner

Choose a reason for hiding this comment

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

There needs to be a hard-coded default value for installation_dir, just like for all the other settings. Returning null here creates all sorts of problems. For example, calling replace() below on what is potentially a null. Consider an empty string as the default.

@teackot
Copy link
Author

teackot commented Jan 6, 2023

Hopefully it won't be a month until next time :)

🙃

Hi! Sorry for not answering for so long, I had a busy December in my university. I'll be able to continue working on this and look into your suggestions in about a week when my exams are over.

And Happy New Year!

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

Successfully merging this pull request may close these issues.

2 participants