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
Normalize paths between unix and windows environments #537
Comments
An alternative to this proposal is to have normalization occur outside of the file attributes, for instance just in our helper methods. However, then it becomes a game of cat and mouse, the fix will always be opt-in and as-discovered basis. See 9689fad for #533 and 83a50b9 for #518 As well as meaning that we have to do our already existent path normalization in our test suite, which is very annoying. See eeacd91 |
The first proposal works great for me and definitely seems preferable. Would this eliminate need for methods like Working on both Windows and Linux, definitely appreciate your work on path normalization. |
Yeah, so the proposal for this issue is to normalize the path variables as soon as possible. This also means that we will drop all of the The idea with this is that the user never has to worry about whether they need back-slashes or forward-slashes, as well as having a consistent database across platforms. |
Just pushed up the fix for #533 to v6.42.2. Still keen to get feedback on this proposal :) |
Sorry for not getting back sooner. Everything has been working well for me on Windows and ubuntu. I'm not experienced enough to comment on best practices regarding timing of path variable normalization or whether to engage the normalization rules depending on OS environment. Thanks for all your work, especially the recent developments. |
The proposal sounds good to me. |
This is up next for me. |
I'm late, sorry for not posting a reply more soon. I'm in support for requiring forward slashes. I might add: Once again, I'm for requiring forward slashes. |
I agree with @kr1zmo on the forward slashes. They make way more sense and it's a trivial change for Windows users. |
Both of these issues have been due to windows handling paths to unix:
However, it seems that this is going to be an ongoing thing, and to accomplish importer support #500 we will need a way to normalize this across different environments. For instance, syncing the database between a windows and mac environment will need a consistent storage format for the paths in the database.
As such, we will need to make the decision to only allow forward-slashes, and to convert back-slashes to forward slashes. This will mean we will also have to drop support for paths that genuinely have a back-slash in them, this should be such a small edge case, it is not worth consideration.
Can I please get some feedback on this move, as I'm ready to implement the change now.
Want to back this issue? Place a bounty on it! We accept bounties via Bountysource.
The text was updated successfully, but these errors were encountered: