-
Notifications
You must be signed in to change notification settings - Fork 420
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
Require setupModuleSearchPaths
be called before any other queries
#25315
Conversation
Looks like something in |
@DanilaFe how do I reproduce failures from that? I built with |
Nvm, I see the CI failure from |
610a04f
to
5bfd74d
Compare
@riftEmber if this PR has user-facing outcomes, could you please mention them in the OP? |
@vasslitvinov Yes, good reminder. Updated |
8b2f052
to
b319e2c
Compare
49cb543
to
3859261
Compare
This builds on files_with_contexts to get contexts with stdlib. Signed-off-by: Danila Fedorin <[email protected]>
Signed-off-by: Anna Rift <[email protected]>
Signed-off-by: Anna Rift <[email protected]>
Signed-off-by: Anna Rift <[email protected]>
This reverts commit 1ffa868. Signed-off-by: Anna Rift <[email protected]>
From chapel-lang#25326 Signed-off-by: Anna Rift <[email protected]>
Signed-off-by: Anna Rift <[email protected]>
3859261
to
fa1cd8a
Compare
Resolve tuple `this` calls (with non-param index values) in Dyno. This is implemented by wiring up Dyno's `TupleType` to `ChapelTuple._tuple` in the bundled modules. The module implementation of `_tuple.size` (called by `this`) is technically used but its param value is computed by dyno, since in production it is only set later during generic instantiation. Depends on: #25007, #25102, #25231, #25315. Resolves Cray/chapel-private#6104. [reviewed by @dlongnecke-cray , thanks!] Testing: - [x] dyno tests - [x] paratest - [x] reproducer from backing issue now resolves
Require that setting the module search path occurs before any other queries in the Context revision, if at all. This is to prevent unexpected results from its default empty value being used before it is set, as many queries rely on it. Implemented as an assertion that it is the first query run in the revision.
Also change
testInteractive
to setup module search path earlier to be in line with this requirement. This fixes buggy behavior withtestInteractive --std
, in which we might not find standard module types, that was incidentally introduced in #25190.Depends on #25326 which should be merged first.
[reviewer info placeholder]
Testing:
testInteractive
with basic programchpl --dyno
with basic program