Skip to content

Fix rewatch compilation of file starting with a lowercase letter #7700

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

Merged
merged 13 commits into from
Jul 30, 2025

Conversation

tsnobip
Copy link
Member

@tsnobip tsnobip commented Jul 23, 2025

#7569 added the test-repo but the test was not being run.

@tsnobip tsnobip force-pushed the rewatch-file-casing-2 branch 3 times, most recently from 03cebc3 to 479ac7c Compare July 23, 2025 09:57
@nojaf
Copy link
Member

nojaf commented Jul 24, 2025

@tsnobip I don’t believe there’s an issue here. The error seems to be a bit misleading; I was able to successfully build the sample project. Since it’s now configured correctly, the number of files in the shell tests needs to be updated accordingly.

@nojaf
Copy link
Member

nojaf commented Jul 24, 2025

Okay, I take that back. It was working for me after those file count tweaks on Mac.

@tsnobip tsnobip changed the title add file-casing test repo to rewatch tests Fix rewatch compilation of file starting with a lowercase letter Jul 30, 2025
Copy link
Member

@nojaf nojaf left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great work!

@tsnobip tsnobip force-pushed the rewatch-file-casing-2 branch 3 times, most recently from 3b4a526 to efdbe42 Compare July 30, 2025 08:35
Comment on lines +581 to +582
let basename =
helpers::file_path_to_compiler_asset_basename(implementation_file_path, &package.namespace);
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is the fix

@tsnobip tsnobip enabled auto-merge (squash) July 30, 2025 08:49
@tsnobip tsnobip force-pushed the rewatch-file-casing-2 branch from fa765ac to 0615cc3 Compare July 30, 2025 09:03
Copy link

pkg-pr-new bot commented Jul 30, 2025

Open in StackBlitz

rescript

npm i https://pkg.pr.new/rescript-lang/rescript@7700

@rescript/darwin-arm64

npm i https://pkg.pr.new/rescript-lang/rescript/@rescript/darwin-arm64@7700

@rescript/darwin-x64

npm i https://pkg.pr.new/rescript-lang/rescript/@rescript/darwin-x64@7700

@rescript/linux-arm64

npm i https://pkg.pr.new/rescript-lang/rescript/@rescript/linux-arm64@7700

@rescript/linux-x64

npm i https://pkg.pr.new/rescript-lang/rescript/@rescript/linux-x64@7700

@rescript/win32-x64

npm i https://pkg.pr.new/rescript-lang/rescript/@rescript/win32-x64@7700

commit: 0615cc3

@tsnobip tsnobip merged commit c8d71af into master Jul 30, 2025
27 checks passed
@tsnobip tsnobip deleted the rewatch-file-casing-2 branch July 30, 2025 09:23
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

Successfully merging this pull request may close these issues.

2 participants