Skip to content

Make repl.load accept raw sources starting with package directive#1710

Merged
alexarchambault merged 3 commits into
com-lihaoyi:mainfrom
alexarchambault:eval-package-cell
Jan 22, 2026
Merged

Make repl.load accept raw sources starting with package directive#1710
alexarchambault merged 3 commits into
com-lihaoyi:mainfrom
alexarchambault:eval-package-cell

Conversation

@alexarchambault

@alexarchambault alexarchambault commented Jan 21, 2026

Copy link
Copy Markdown
Collaborator

Follow-up of #1684

This makes repl.load accept "raw" sources starting with package. These are assumed to be standard Scala files, and are passed as-is to scalac.

@ repl.load("""package thing

  case class Foo(n: Int)
  """)

@ thing.Foo(2)
res1: thing.Foo = Foo(n = 2)

@alexarchambault alexarchambault marked this pull request as ready for review January 21, 2026 16:07
@alexarchambault

Copy link
Copy Markdown
Collaborator Author

Don't know if anyone feels like reviewing / approving this. This is just a followup of #1684.

@lihaoyi

lihaoyi commented Jan 21, 2026

Copy link
Copy Markdown
Member

Looks good to me

@alexarchambault

Copy link
Copy Markdown
Collaborator Author

Looks good to me

@lihaoyi Seems a (GitHub UI) approval is needed to merge 😅

@alexarchambault

Copy link
Copy Markdown
Collaborator Author

@lihaoyi @lefou @lolgab Could any of you approve this one too?

@alexarchambault alexarchambault merged commit 223924d into com-lihaoyi:main Jan 22, 2026
13 checks passed
@alexarchambault alexarchambault deleted the eval-package-cell branch January 22, 2026 21:35
LuciferYang pushed a commit to apache/spark that referenced this pull request Feb 13, 2026
### What changes were proposed in this pull request?

This PR aims to upgrade `ammonite` to 3.0.8 for Apache Spark 4.2.0.

### Why are the changes needed?

To bring the latest bug fixes.
- https://github.com/com-lihaoyi/Ammonite/releases/tag/3.0.6
- https://github.com/com-lihaoyi/Ammonite/releases/tag/3.0.7
  - com-lihaoyi/Ammonite#1706
- https://github.com/com-lihaoyi/Ammonite/releases/tag/3.0.8
  - com-lihaoyi/Ammonite#1710

### Does this PR introduce _any_ user-facing change?

No.

### How was this patch tested?

Pass the CIs.

### Was this patch authored or co-authored using generative AI tooling?

Generated-by: `Gemini 3 Pro (High)` on `Antigravity`

Closes #54305 from dongjoon-hyun/SPARK-55514.

Authored-by: Dongjoon Hyun <dongjoon@apache.org>
Signed-off-by: yangjie01 <yangjie01@baidu.com>
a0x8o added a commit to a0x8o/spark that referenced this pull request Feb 13, 2026
### What changes were proposed in this pull request?

This PR aims to upgrade `ammonite` to 3.0.8 for Apache Spark 4.2.0.

### Why are the changes needed?

To bring the latest bug fixes.
- https://github.com/com-lihaoyi/Ammonite/releases/tag/3.0.6
- https://github.com/com-lihaoyi/Ammonite/releases/tag/3.0.7
  - com-lihaoyi/Ammonite#1706
- https://github.com/com-lihaoyi/Ammonite/releases/tag/3.0.8
  - com-lihaoyi/Ammonite#1710

### Does this PR introduce _any_ user-facing change?

No.

### How was this patch tested?

Pass the CIs.

### Was this patch authored or co-authored using generative AI tooling?

Generated-by: `Gemini 3 Pro (High)` on `Antigravity`

Closes #54305 from dongjoon-hyun/SPARK-55514.

Authored-by: Dongjoon Hyun <dongjoon@apache.org>
Signed-off-by: yangjie01 <yangjie01@baidu.com>
rpnkv pushed a commit to rpnkv/spark that referenced this pull request Feb 18, 2026
### What changes were proposed in this pull request?

This PR aims to upgrade `ammonite` to 3.0.8 for Apache Spark 4.2.0.

### Why are the changes needed?

To bring the latest bug fixes.
- https://github.com/com-lihaoyi/Ammonite/releases/tag/3.0.6
- https://github.com/com-lihaoyi/Ammonite/releases/tag/3.0.7
  - com-lihaoyi/Ammonite#1706
- https://github.com/com-lihaoyi/Ammonite/releases/tag/3.0.8
  - com-lihaoyi/Ammonite#1710

### Does this PR introduce _any_ user-facing change?

No.

### How was this patch tested?

Pass the CIs.

### Was this patch authored or co-authored using generative AI tooling?

Generated-by: `Gemini 3 Pro (High)` on `Antigravity`

Closes apache#54305 from dongjoon-hyun/SPARK-55514.

Authored-by: Dongjoon Hyun <dongjoon@apache.org>
Signed-off-by: yangjie01 <yangjie01@baidu.com>
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.

3 participants