-
Notifications
You must be signed in to change notification settings - Fork 1
Add options for internal limit flags #12
Add options for internal limit flags #12
Conversation
The output of the new help options with defaults looks like the following right now:
I chose not to add these defaults to the readme as they may change over time. |
^ I missed a few issues which I've since fixed. I've been using this for a few hours now without any issues, so the PR is ready when you are! 👍 |
Thanks! One question, whats the impact of this is one of the FFlags is later removed? Do we need to continuously keep up to date with which fflags are available and modifiable? |
Theres this code (from the original Could we potentially make the Note: I have no idea how the FFlag system actually works :P, I don't know if this is actually feasible or not |
That looks possible, and something along those lines was my idea of what the "next step" would be and that's why I formatted the flag options in the way that I did. I'll have a go at it this coming week. If all works out then it'll be possible to assign flags dynamically and print out all flags with their default values. |
Whoops, I completely missed you mentioning this in the OP, sorry! I'm happy to merge this PR in as it is right now though, I have no particular preference |
I wasn't originally planning to figure out generalized flags right away because I didn't know how! I'm happy you've given me direction here since I think I can figure it out now. If I'd known about this before I'd likely have put it in the original PR! I'm not particularly picky about if we merge this PR as it is or if we wait for generalized flag options either. Merging this PR as is is probably a good idea though. No reason to wait when this feature is ready now, and forward compatible with future plans, right? |
Cool, I'll merge this in now, thanks! No rush on the more general version btw, I'm also happy to look into it at a later date if you're busy |
This PR adds options for internal limits. Raising these limits may allow the typechecker to work on code that usually errors with
Internal error: Code is too complex to typecheck!
.This PR introduces a new format for flags so that we can potentially be forward-compatible with general flag commands that allow setting any flag to any value. This new format contains the internal flag name in the commandline option so that we won't be stuck eternally hard-coding
kebab-case
options toPascalCase
flags.This new format looks like:
--flag:LuauFlagName=value
I don't have good documentation on what these flags do. I just know that they're typically all listed together.
Closes #11