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

Always load REPL classes in macros including the output directory #16866

Merged
merged 1 commit into from
Feb 16, 2023

Conversation

nicolasstucki
Copy link
Contributor

Fixes #15104

Also re-enable compiler/test-resources/repl-macros tests.

@nicolasstucki nicolasstucki self-assigned this Feb 9, 2023
Comment on lines +40 to +41
if ctx.owner.topLevelClass.name.startsWith(str.REPL_SESSION_LINE) then
new AbstractFileClassLoader(ctx.settings.outputDir.value, classLoader0)
Copy link
Member

Choose a reason for hiding this comment

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

Shouldn't the REPL take care of passing the correct classloader to the Interpreter?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It should, but I have not found a way to make it work.

@smarter smarter added this pull request to the merge queue Feb 15, 2023
@nicolasstucki nicolasstucki removed this pull request from the merge queue due to a manual request Feb 16, 2023
@nicolasstucki nicolasstucki merged commit 4c99fde into scala:main Feb 16, 2023
@nicolasstucki nicolasstucki deleted the fix-15104 branch February 16, 2023 09:33
@Kordyjan Kordyjan added this to the 3.3.1 milestone Aug 1, 2023
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.

Macro implementation in REPL cannot be non-toplevel
3 participants