If you're seeing the "A previous compile is still running. Please wait a minute and try compiling again." message in Overleaf, it means a previous compilation process is stuck or taking too long. Unfortunately, Overleaf does not provide a "cancel compile" button in the user interface as of now. However, here are some steps to resolve the issue:
✅ Step-by-Step Fix:
1. Wait a Minute and Retry
Sometimes it's just a temporary delay. Wait for 30–60 seconds and then hit the Recompile button again.
2. Refresh the Page
This can sometimes clear a stuck compile process:
- Press
F5 or click your browser’s refresh/reload button.
- Once reloaded, click Recompile again.
3. Switch the Compile Mode
Try switching the compiler to force a fresh compile:
- Go to the Menu (top-left hamburger menu).
- Scroll to Compiler.
- Toggle between PDFLaTeX, XeLaTeX, or LuaLaTeX.
- Then click Recompile again.
4. Clear Cached Files (Optional)
If you suspect caching issues:
- Click on the Logs and output files (next to the Recompile button).
- Then click Clear Cached Files (if visible).
5. Log Out and Log Back In
A stuck session can sometimes be cleared by:
- Logging out of Overleaf.
- Logging back in and reopening your project.
- Try recompiling again.
6. Use Incognito or Another Browser
Try logging into Overleaf using:
- An Incognito/InPrivate window.
- Or a different browser.
This helps rule out browser session or cache issues.
7. Contact Overleaf Support
If you've tried the above and it’s still stuck:
- Go to Overleaf Support.
- Describe the issue (mention the error message and project name).
- They can manually cancel a stuck compilation.
🚀 Pro Tip for Preventing Future Compiling Issues
- Keep your document tidy — don’t leave infinite loops or huge graphics.
- Avoid very large external packages unless necessary.
- Split large documents into included files (
\input{} or \include{}) to improve compile stability.
Let me know if you're still stuck and I can help troubleshoot specific errors you may be having in your document!