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

Beta bugs #562

Merged
merged 10 commits into from
Aug 14, 2023
Merged

Beta bugs #562

merged 10 commits into from
Aug 14, 2023

Conversation

thesuzerain
Copy link
Contributor

@thesuzerain thesuzerain commented Aug 10, 2023

Fixes #442 (doesnt entirely remove CPU usage- there are spikes- but drastically improves)
Fixes #467
Fixes #490
Fixes #492
Fixes #499
Fixes #502
Fixes #504 (as long as the options.txt override settings arent selected)
Fixes #506
Fixes #509
Fixes #512
Fixes #518
Fixes #524
Fixes #538
Fixes #519
Fixes #531
Fixes #553
Fixes #554

@thesuzerain thesuzerain marked this pull request as ready for review August 11, 2023 00:23
Comment on lines 103 to 119
.unwrap_or_else(|e| {
// TODO: remove temporary logging in future update
if !instance_folder.exists() {
tracing::warn!(
"Instance folder does not exist: {}",
instance_folder.display()
);
return "".to_string();
} else {
tracing::warn!(
"Could not read existing instance.json at {}: {}",
instance_folder.display(),
e
)
};
"".to_string()
});
Copy link
Member

Choose a reason for hiding this comment

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

is this meant to be removed?

Copy link
Contributor Author

@thesuzerain thesuzerain Aug 11, 2023

Choose a reason for hiding this comment

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

I meant it to be included so that if the person in disc who's bug I couldn't replicate could have a log when they tried to import their profiles that should be importable.

That being said I do have a guess for what the issue was and fixed it, so I can revert this if you prefer

theseus/src/api/profile/mod.rs Outdated Show resolved Hide resolved
theseus/src/launcher/mod.rs Outdated Show resolved Hide resolved
@@ -345,27 +345,25 @@ pub async fn init_watcher() -> crate::Result<Debouncer<RecommendedWatcher>> {
let (mut tx, mut rx) = channel(1);

let file_watcher = new_debouncer(
Duration::from_secs_f32(2.0),
Duration::from_secs_f32(10.0),
Copy link
Member

Choose a reason for hiding this comment

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

10 seconds is very long for the profile syning, mods will take forever to add. what was the reason for this change?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

was trying to reduce cpu load on installs, (when many packs are imported one after another). Reverted as I don't think this is the biggest impact change I made

theseus/src/state/profiles.rs Show resolved Hide resolved
theseus/src/state/projects.rs Outdated Show resolved Hide resolved
theseus_gui/src/pages/Settings.vue Show resolved Hide resolved
@Geometrically Geometrically merged commit d6ee1ff into master Aug 14, 2023
6 checks passed
@Geometrically Geometrically deleted the beta-bugs branch August 14, 2023 20:23
Geometrically pushed a commit that referenced this pull request Oct 16, 2024
* Fixed an issue with colliding slugs when modifying a project

* Update projects.rs

---------

Co-authored-by: triphora <emma@modrinth.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment