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

template path in generated code uses OS specific path separators #75

Open
stgraham2000 opened this issue Jun 21, 2023 · 1 comment
Open

Comments

@stgraham2000
Copy link

stgraham2000 commented Jun 21, 2023

When using file paths to specify the location of a template, the generated code will use either a "/" or a "\" to separate directories in the path. This is an issue if you checkin the generated code and you have some users that generate using a Linux system and other users that generate using a Windows system.

The expectation is that the generated code should not change based on what type of system the generation is performed on.

Propose to do a simple search/replace on the file path and replace any "\" with a "/"

@Southclaws
Copy link

Southclaws commented May 21, 2024

+1 just ran into this, confused me for a while.

Windows has used / for almost two decades, the \ requirement is a bit of a misconception, almost all but maybe old DOS software uses / now so it's best to just always use / for all platforms.

Can open a PR to fix this issue as I use Windows and Mac mainly and this is a bit of an annoying bug.

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

No branches or pull requests

2 participants