-
Notifications
You must be signed in to change notification settings - Fork 17
Improve Windows Path Handling #3
Copy link
Copy link
Closed
Labels
cross-platformgood first issueGood for newcomersGood for newcomerslevel : beginnerGood of beginners to start withGood of beginners to start withreleasedtype: bugSomething isn't working or smashes annoying bugsSomething isn't working or smashes annoying bugs
Description
Metadata
Metadata
Assignees
Labels
cross-platformgood first issueGood for newcomersGood for newcomerslevel : beginnerGood of beginners to start withGood of beginners to start withreleasedtype: bugSomething isn't working or smashes annoying bugsSomething isn't working or smashes annoying bugs
Problem
Some parts of Gitbun currently assume Unix-style file paths (
/), which can cause incorrect scope detection or analyzer behavior on Windows systems where paths use backslashes (\).The project works fine on Linux/macOS in most cases, but path parsing logic should be made platform-safe so contributors and users on Windows get consistent behavior too.
This issue is mainly about reviewing places where paths are being manually split or normalized and replacing those with proper Node.js path utilities where needed.
A few likely areas to inspect:
Using Node's built-in
pathmodule (path.sep,path.join,path.normalize, etc.) should solve most of the issues cleanly.