Skip to content

Feature: Lute Config and Module Resolvers#535

Merged
vrn-sn merged 11 commits intoprimaryfrom
annietang/lute_config_and_module_resolvers
Nov 7, 2025
Merged

Feature: Lute Config and Module Resolvers#535
vrn-sn merged 11 commits intoprimaryfrom
annietang/lute_config_and_module_resolvers

Conversation

@annieetang
Copy link
Copy Markdown
Contributor

@annieetang annieetang commented Nov 6, 2025

Split from #531 and exposes a Config and Module resolvers for Lute in separate files for ease of use and readability!

Have tests for everything except resolveModule

@annieetang annieetang marked this pull request as draft November 6, 2025 20:52
@annieetang annieetang marked this pull request as ready for review November 7, 2025 19:51
Copy link
Copy Markdown
Collaborator

@Vighnesh-V Vighnesh-V left a comment

Choose a reason for hiding this comment

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

Looks good - just some small changes.

Comment thread lute/luau/include/lute/moduleresolver.h Outdated
Comment thread lute/luau/src/moduleresolver.cpp Outdated
Comment thread lute/luau/src/luau.cpp Outdated
Comment thread lute/luau/include/lute/configresolver.h Outdated
Comment thread lute/luau/src/moduleresolver.cpp Outdated
@annieetang annieetang requested a review from Vighnesh-V November 7, 2025 21:33
Copy link
Copy Markdown
Collaborator

@Vighnesh-V Vighnesh-V left a comment

Choose a reason for hiding this comment

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

lets gooo!

@annieetang annieetang enabled auto-merge (squash) November 7, 2025 22:19
@vrn-sn vrn-sn disabled auto-merge November 7, 2025 22:24
namespace Luau
{

// Based on LuteConfigResolver in tc.cpp.
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Wait are we just duplicating this right now?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

nah this one is more comprehensive than tc.cpp

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

it's not exactly the same @Vighnesh-V did you say we wanted to use this one in configresolver instead of the implementation in tc.cpp?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I would have guessed we were pulling these file/config resolvers out into their own files so that tc.cpp could use them.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

yea I think the version in this PR is the tc.cpp LuteConfigResolverwith the addition of handling.config.luau(bc thetc.cpponly handles.luaurc`

@vrn-sn
Copy link
Copy Markdown
Member

vrn-sn commented Nov 7, 2025

Sorry, I disabled auto-merge—I have some comments incoming

Comment thread tests/CMakeLists.txt Outdated
Comment thread tests/src/configresolver.test.cpp Outdated
Comment thread lute/luau/include/lute/configresolver.h Outdated
Comment thread lute/luau/src/configresolver.cpp Outdated
Comment thread lute/luau/src/moduleresolver.cpp
Comment thread tests/src/configresolver.test.cpp Outdated
@vrn-sn vrn-sn enabled auto-merge (squash) November 7, 2025 23:02
@vrn-sn vrn-sn merged commit 8f67b04 into primary Nov 7, 2025
11 checks passed
@vrn-sn vrn-sn deleted the annietang/lute_config_and_module_resolvers branch November 7, 2025 23:06
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.

3 participants