Repository navigation
Fix GenType path resolution for Windows short paths and POSIX symlinks - #8639
Conversation
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: af184c16b5
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #8639 +/- ##
==========================================
+ Coverage 80.40% 80.50% +0.09%
==========================================
Files 447 447
Lines 60990 61071 +81
==========================================
+ Hits 49042 49167 +125
+ Misses 11948 11904 -44
🚀 New features to boost your workflow:
|
rescript
@rescript/belt
@rescript/darwin-arm64
@rescript/darwin-x64
@rescript/linux-arm64
@rescript/linux-x64
@rescript/runtime
@rescript/win32-x64
commit: |
0d7a3c2 to
9ac4780
Compare
Signed-off-by: Florian Hammerschmidt <florianh89@gmail.com>
Signed-off-by: Florian Hammerschmidt <florianh89@gmail.com>
Signed-off-by: Florian Hammerschmidt <florianh89@gmail.com>
Signed-off-by: Florian Hammerschmidt <florianh89@gmail.com>
Signed-off-by: Florian Hammerschmidt <florianh89@gmail.com>
Signed-off-by: Florian Hammerschmidt <florianh89@gmail.com>
Signed-off-by: Florian Hammerschmidt <florianh89@gmail.com>
0175386 to
b81ba05
Compare
Signed-off-by: Florian Hammerschmidt <florianh89@gmail.com>
b81ba05 to
3102f42
Compare
|
Developer playground preview: https://rescript-lang.github.io/rescript/dev-playground/?version=pr-8639 |
|
@codex review |
|
Codex Review: Didn't find any major issues. Chef's kiss. Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
Signed-off-by: Florian Hammerschmidt <florianh89@gmail.com>
Signed-off-by: Florian Hammerschmidt <florianh89@gmail.com>
|
@codex review |
|
Codex Review: Didn't find any major issues. Hooray! Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
Signed-off-by: Florian Hammerschmidt <florianh89@gmail.com>
Verdict: approve with nits. No correctness bugs found. Making
|
Signed-off-by: Florian Hammerschmidt <florianh89@gmail.com>
Signed-off-by: Florian Hammerschmidt <florianh89@gmail.com>
|
The title/changelog cover POSIX symlinks, the integration test builds through a symlink from another working directory and checks the exact generated import, and Windows skips the short-path case when 8.3 names are unavailable. Added direct drive-root traversal tests and enabled the GenType unit cases on Windows; the Windows compiler test step has passed. Windows timeout process-tree cleanup remains deferred as optional test robustness work. Local compiler, GenType, Rust, formatting, and changelog checks pass. DCO now passes; the full CI and coverage runs are still in progress. |
Summary
GenType could hang on Windows when the project root used an 8.3 short path while compiler source locations used its expanded form. The unmatched absolute path reached a drive root whose parent never changed. On POSIX, building a symlinked project from another working directory could also fail to write GenType output.
Pass the already canonical package path as
-bs-project-rootduring builds, matching the parser's working directory without canonicalizing again for each file. Preserve the caller's project path incompiler-args, since editor incremental type checking compiles absolute source paths through that spelling. Stop resolver traversal whenever a path's parent is stable.Validation
compiler-argsand compile an absolute incremental source with the returned flags, as the editor does. The POSIX editor regression passes with this change and fails on the previous PR head.