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

Add a helper function to set up standard module paths #25326

Closed

Conversation

DanilaFe
Copy link
Contributor

This builds on files_with_contexts to get contexts with stdlib, as I suggested here: #25315 (comment).

This builds on files_with_contexts to get contexts with stdlib.

Signed-off-by: Danila Fedorin <[email protected]>
@DanilaFe DanilaFe force-pushed the files-with-contexts-setup branch from ab43fa4 to 779d88a Compare June 20, 2024 17:31
@riftEmber riftEmber self-requested a review June 20, 2024 18:00
riftEmber added a commit to riftEmber/chapel that referenced this pull request Jun 20, 2024
riftEmber added a commit to riftEmber/chapel that referenced this pull request Jun 20, 2024
riftEmber added a commit to riftEmber/chapel that referenced this pull request Jun 20, 2024
@DanilaFe
Copy link
Contributor Author

I think it's easiest for Anna's #25315 to roll this in as well. Consider this my approval of that commit 😄

@DanilaFe DanilaFe closed this Jun 20, 2024
riftEmber added a commit to riftEmber/chapel that referenced this pull request Jun 25, 2024
riftEmber added a commit that referenced this pull request Jun 27, 2024
…25315)

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 with
`testInteractive --std`, in which we might not find standard module
types, that was incidentally introduced in
#25190.

Depends on #25326 which should
be merged first.

[reviewed by @mppf and @DanilaFe , thanks!]

Testing:
- [x] paratest
- [x] dyno tests
- [x] `testInteractive` with basic program
- [x] `chpl --dyno` with basic program
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants