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

Chore: Desktop: Fix slow startup issue: defaultPlugins directory not cleaned on rebuild #9785

Merged

Conversation

personalizedrefrigerator
Copy link
Collaborator

@personalizedrefrigerator personalizedrefrigerator commented Jan 26, 2024

Summary

Fixes a slow startup issue caused by multiple copies of default plugins in the app-desktop/build/defaultPlugins directory.

This issue was caused by 13da286 and only affects Joplin workspaces that had built default plugins with commits prior to 13da286. As such, it should not affect the released version of v2.14.11.

The issue is fixed by cleaning the build directory before building default plugins.

Testing

  1. git checkout pr/fix-default-plugins-build
  2. yarn tsc && yarn postinstall
  3. cd packages/app-desktop
  4. yarn start
  5. Close & open a new terminal in Joplin's root directory
  6. git checkout HEAD~
  7. yarn tsc && yarn postinstall
  8. In the terminal in packages/app-desktop, run yarn start
    • Verify that the app doesn't take 20-30 seconds to start

This has been tested successfully on Ubuntu 23.10.

@laurent22 laurent22 merged commit b69d752 into laurent22:dev Jan 26, 2024
10 checks passed
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