When a user adds a folder from their computer that uses hyphens as a workspace, the user is unable to save files to the workspace
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 35/100
- Issue type
- Bug
- Clarity
- Needs clarification
- Activity status
- Stale
- Tech stack
- typescript
- Domain
- web-dev
Research direction
Start by reproducing the save failure with a hyphenated local folder through the File System Access API, recording the actual browser and OS behavior. Review nameToMountPath() in workspaceManagerHelpers.ts, resolveMount() in CompositeFileSystem.ts, and the existing hyphenated-path tests. Done means the failure is explained and fixed, a regression test covers hyphenated workspace names, and existing tests pass.
Written by the indexing model from the issue text.
Description
Problem
When a user adds a local folder (via File System Access API) that contains hyphens in its name (e.g., my-project, lua-code), they are unable to save files to that workspace.
Steps to Reproduce
- Create a local folder with hyphens in the name (e.g.,
my-test-project) - Open the LuaInTheWeb IDE
- Add the hyphenated folder as a local workspace
- Create a new file or edit an existing file
- Attempt to save the file
Expected Behavior
File saves successfully to the local folder.
Actual Behavior
[ ] To be filled in: Describe what happens - error message? Silent failure? Wrong location?
Environment
- Browser: [ Chrome / Edge / Other ]
- OS: [ Windows / macOS / Linux ]
Questions to Clarify
- What error (if any) is displayed when trying to save? Is there a console error, toast notification, or does save appear to succeed but data isn't persisted?
- What specific folder names reproduce the issue? For example, does
test-folderfail buttestfolderwork? - Does this affect virtual workspaces with hyphenated names, or only local (File System Access API) workspaces?
Investigation Notes
Code review found that hyphenated paths appear to be handled correctly in:
nameToMountPath()function (workspaceManagerHelpers.ts:50-56)resolveMount()method (CompositeFileSystem.ts:124-144)- Path utilities (normalizePath, joinPath, etc.)
- Existing tests use hyphenated paths (
/my-files) and pass
The issue may be:
- A specific edge case not covered by current tests
- Related to file system permissions rather than path handling
- A browser-specific File System Access API behavior
- A different bug being misattributed to hyphens
Acceptance Criteria
- Users can add local folders with hyphens in their names
- Files can be saved successfully to hyphen-named workspaces
- Existing tests pass
- New test added for hyphenated workspace names
- Dominant language
- TypeScript
- Stars
- 1
- Forks
- 0
- PR merge metrics
- No merged PRs in 30d
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from jcollard/LuaInTheWeb
-
tech-debt
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
jcollard/LuaInTheWeb#752 ·
-
tech-debt
Difficulty 1/5 Under an hour Newbie friendliness 68/100
jcollard/LuaInTheWeb#690 ·
-
tech-debt
Difficulty 1/5 Under an hour Newbie friendliness 75/100
jcollard/LuaInTheWeb#590 ·
-
tech-debt
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
jcollard/LuaInTheWeb#518 ·
-
enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
jcollard/LuaInTheWeb#235 ·
All issues in jcollard/LuaInTheWeb
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
ontola/atomic-server#1625 ·
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
melgarafael/DeskcommCRM#1451 ·
-
Difficulty 1/5 Under an hour Newbie friendliness 82/100
-
bug via-triage
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
bot:ai-assisted component:compact-js status:untriaged
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
midnightntwrk/midnight-sdk#403 ·