| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
There was a problem hiding this comment.
Fixes a Windows startup crash in pyright-scip by removing the platform-derived RegExp(path.sep) (which is invalid on Windows) and replacing it with a safe separator-matching regex that works across both Windows (\) and POSIX (/) path styles.
Changes:
Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| packages/pyright-scip/src/virtualenv/PythonEnvironment.ts | Uses a safe, cross-platform separator regex to avoid Windows RegExp initialization crashes and handle mixed path styles. |
| packages/pyright-scip/src/virtualenv/PythonEnvironment.test.ts | Adds coverage to confirm module resolution works for both \ and / separators. |
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
What changed
Why
On Windows, path.sep is \. Passing it directly to new RegExp() creates an invalid regular expression and crashes scip-python during module initialization. This addresses #210.
Accepting both separators also keeps package resolution robust when Python metadata contains mixed path styles.
Validation