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

Fix Windows path encoding for special characters (#3761) #3768

Merged
merged 5 commits into from
Feb 12, 2025

Conversation

devin-ai-integration[bot]
Copy link
Contributor

Fix Windows path encoding for special characters (#3761)

This PR fixes an issue where marimo fails to save files on Windows when the file path contains special characters like '&'.

Changes:

  • Updated _rename_file in file_manager.py to use pathlib.Path for cross-platform path handling
  • Added Windows-specific test to verify special character handling

Test Results:

  • All existing tests pass (20 passed)
  • New Windows-specific test added (skipped on non-Windows platforms)
  • Manual verification on Windows required for special character handling

Fixes #3761

Link to Devin run: https://app.devin.ai/sessions/6509c2c682564aa9910483478a642ed5
Requested by: Myles

Copy link
Contributor Author

🤖 Devin AI Engineer

I'll be helping with this pull request! Here's what you should know:

✅ I will automatically:

  • Address comments on this PR. Add "(aside)" to your comment to have me ignore it.
  • Look at CI failures and help fix them

Note: I can only respond to comments from users who have write access to this repository.

⚙️ Control Options:

  • Disable automatic comment and CI monitoring

Copy link

vercel bot commented Feb 12, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
marimo-docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Feb 12, 2025 4:58pm
marimo-storybook ✅ Ready (Inspect) Visit Preview 💬 Add feedback Feb 12, 2025 4:58pm

Co-Authored-By: Myles Scolnick <[email protected]>
@mscolnick mscolnick merged commit 3679579 into main Feb 12, 2025
26 of 34 checks passed
@mscolnick mscolnick deleted the devin/1739375319-fix-windows-path-encoding branch February 12, 2025 17:52
Copy link

🚀 Development release published. You may be able to view the changes at https://marimo.app?v=0.11.3-dev16

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.

Cannot save on Windows if file path contains "&" character
2 participants