Skip to content

Conversation

@laural727
Copy link

Fixed a major issue that made Dendry incompatible with Windows systems.

Checklist

  • The new code additions passed the tests (npm test). (I'm unable to run the tests, because the testing tool seems to be broken and puts out syntax errors no matter the system I use. However, the change is so small that it really shouldn't break anything.)

Description

Unlike Mac or Linux, Windows uses '\' as the file separator. As dry.js relied on finding the character '/' to extract the filename from the given path, it was unable to parse Windows file paths and failed to compile.

The parser now checks for platform to select the correct file separator. This fixed the issue in all systems I tested, including with WSL.

Parser now checks for OS to select which file separator to use when extracting filenames. '\' for Windows, '/' for everything else, this fixes the issue in which the compiler didn't work on Windows systems
@laural727 laural727 marked this pull request as ready for review May 29, 2025 02:19
@aucchen aucchen merged commit fa573c5 into aucchen:master May 29, 2025
1 check passed
@laural727 laural727 deleted the patch-1 branch May 29, 2025 06:23
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