Skip to content

fix: normalize Windows backslashes in migration and seed component paths - #46

Merged
lmajano merged 4 commits into
mainfrom
claude/windows-path-handling-migrations-73i43b
Jul 29, 2026
Merged

fix: normalize Windows backslashes in migration and seed component paths#46
lmajano merged 4 commits into
mainfrom
claude/windows-path-handling-migrations-73i43b

Conversation

@lmajano

@lmajano lmajano commented Jul 29, 2026

Copy link
Copy Markdown
Contributor

On Windows, makePathRelative() returns paths with backslashes (e.g.
resources\database\migrations). When concatenated with a forward-slash
separator and passed to listChangeDelims (which only treats / as a
delimiter), the backslashes survive into the component path string,
producing malformed class names like
resources\database\migrations.2026_06_23_201258_security that BoxLang's
[bx] resolver cannot locate.

Normalize the directory value with replace(..., "", "/", "all") in both
findAll() and findSeeds() before building componentPath, so the path is
always forward-slash-delimited regardless of OS.

claude and others added 4 commits July 29, 2026 15:51
On Windows, makePathRelative() returns paths with backslashes (e.g.
resources\database\migrations\). When concatenated with a forward-slash
separator and passed to listChangeDelims (which only treats / as a
delimiter), the backslashes survive into the component path string,
producing malformed class names like
resources\database\migrations\.2026_06_23_201258_security that BoxLang's
[bx] resolver cannot locate.

Normalize the directory value with replace(..., "\", "/", "all") in both
findAll() and findSeeds() before building componentPath, so the path is
always forward-slash-delimited regardless of OS.
@lmajano
lmajano merged commit 6c4b27d into main Jul 29, 2026
19 of 21 checks passed
@lmajano
lmajano deleted the claude/windows-path-handling-migrations-73i43b branch July 29, 2026 15:56
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