-
Notifications
You must be signed in to change notification settings - Fork 82
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
Regression in passing variable state to OneOf()
#1851
Comments
Raising this one to show stopper. Lots of scripts broken. |
Cottle Versioning Guide:
FINDING: Cottle function delegates are now in IReadOnlyList format and consequently values must be passed when recursing. The callback you’ll pass to Function takes multiple arguments:
Suspected: We are not properly passing the internal state to the nested recursion. |
Cottle source code is available here for reference: https://github.com/r3c/cottle/tree/master/src |
I think this is also affecting the docking granted and landing pad report. |
TL:DR we need to revert and ask them to add support for our use case.
turned out to be a false lead. The real killer is:
It's not just the interface that's immutable, it's the underlying object. What this in fact means is that the The affected functions are:
I have been all over the Cottle codebase, inspected objects in the debugger, and satisfied myself that there's nothing we can do, not even by using "dirty tricks" such as reaching into private members etc. The new evaluation code simply isn't structured in a way that facilitates recursive C# functions (oddly enough, recursive Cottle functions like the In the short term, I believe our best option is to revert the entire change and go back to Cottle 1.4.0.3. In the medium term, I note their speedy and friendly response to TK's issue r3c/cottle#26, and that was without even mentioning that we are our antecedent are #2 and #3 in the Nuget "top 3 GitHub repositories that depend on Cottle" So I am hopeful that if we ask nicely and explain our use case, they will hear us. I will revert the change and cherry-pick in the new tests plus some minor renamings and call-graphs simplifications that I saw. I'm not up for a big refactoring of the ScriptResolver right now: we need to focus on getting to a stable build. Then I shall write up an issue on the Cottle repo very and make it as open and friendly as possible. |
Pushed branch hotfix/revert-Cottle-Rollbar-from-3.5.3b4 re this. |
I can open a separate issue if it's different, but discovered this evening when doing FSS and identifying planets or moons that are unique/different/special/etc, it skips the adjective. For example "moon 1a is a with an inclined orbit". This is using 3.5.3-b6. |
That's the same issue, but thanks for the report. |
should we just uninstall this and install 3.5.3b4? then |
@dauthiatull for now, yep, revert to 3.5.3b4. We are currently play-testing a fix. |
Fixed in 4007beb |
Fixed in 3.5.3-b7. |
EDDI version in which issue is found
3.5.3-b6
Steps to reproduce
Expected
Output is "candidate for mapping".
Observed
Output is "for mapping".
Investigation
This is a regression from the stable branch.
The text was updated successfully, but these errors were encountered: