Skip to content
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

Fix matching inline inputs/outputs with operations #111

Merged
merged 3 commits into from May 30, 2023

Conversation

kubukoz
Copy link
Contributor

@kubukoz kubukoz commented May 29, 2023

Issue #, if available: #110

Description of changes:

This fixes #110 (an IIOBE) by preventing the underlying issue: the FileCachingCollector mixing up operations with the same name in different namespaces.

Unfortunately, the test that reproduced the issue is flaky, as it would only fail about half the time before the fix was added - I think there's some non-deterministic behavior in some part of the collector that affects the order of things being collected, and sometimes prevents exhibiting the incorrect behavior. I've confirmed that it reliably passes now after the fix was applied.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@kubukoz kubukoz requested a review from a team as a code owner May 29, 2023 23:44

namespace b

string Ignored
Copy link
Contributor Author

Choose a reason for hiding this comment

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

thought: this technically can be anything that makes this file longer than the other - which is what ultimately caused the IIOBE (line lookup hitting a different file than intended, which would go over the bounds).

@milesziemer milesziemer merged commit b04ece8 into smithy-lang:main May 30, 2023
9 checks passed
@kubukoz kubukoz deleted the ioobe-fix-again branch May 30, 2023 17:25
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.

IndexOutOfBoundsException preventing project load when a naming conflict occurs
2 participants