# Question

**URL:** https://users.scala-lang.org/c/question/7.md

[Latest](https://users.scala-lang.org/latest.md) · [Categories](https://users.scala-lang.org/categories.md)

---

## [About the Question category](https://users.scala-lang.org/t/about-the-question-category/245)

<div class="topic-metadata">

**Author:** [@heather.miller](https://users.scala-lang.org/u/heather.miller)\
**Replies:** 0\
**Last updated:** [March 20, 2017, 1:07pm UTC](https://users.scala-lang.org/t/about-the-question-category/245 "2017-03-20T13:07:44Z")

</div>

The default cagetory for asking Scala questions.

---

## [Surprise: SBT 2 huge caches](https://users.scala-lang.org/t/surprise-sbt-2-huge-caches/12449)

<div class="topic-metadata">

**Author:** [@OndrejSpanel](https://users.scala-lang.org/u/OndrejSpanel)\
**Replies:** 1\
**Last updated:** [November 26, 2026, 2:07pm UTC](https://users.scala-lang.org/t/surprise-sbt-2-huge-caches/12449 "2026-11-26T14:07:14Z")

</div>

I understand the appeal of caching task results. Reusing expensive outputs can make large builds and CI much faster. But making persistent disk caching automatic for all tasks is a pretty startling default for a build to…

---

## [Martin Odersky's free coursera courses have been paywalled](https://users.scala-lang.org/t/martin-oderskys-free-coursera-courses-have-been-paywalled/12303)

<div class="topic-metadata">

**Author:** [@lukewassink](https://users.scala-lang.org/u/lukewassink)\
**Replies:** 6\
**Last updated:** [November 26, 2026, 2:06pm UTC](https://users.scala-lang.org/t/martin-oderskys-free-coursera-courses-have-been-paywalled/12303 "2026-11-26T14:06:12Z")

</div>

Martin Odersky has some great Coursera courses on functional programming in Scala. They used to be free, but now Coursera has paywalled them. You can access them for free for a one week free trial, and it’s $50/month aft…

---

## [Any news on "Advanced Programming in Scala"?](https://users.scala-lang.org/t/any-news-on-advanced-programming-in-scala/8075)

<div class="topic-metadata">

**Author:** [@spamegg1](https://users.scala-lang.org/u/spamegg1)\
**Replies:** 47\
**Last updated:** [November 18, 2026, 3:53am UTC](https://users.scala-lang.org/t/any-news-on-advanced-programming-in-scala/8075 "2026-11-18T03:53:52Z")

</div>

I am reading “Programming in Scala” 5th Edition by Odersky, Spoon, Venners, Sommers and I am on Chapter 15. There are so many references to another book “Advanced Programming in Scala” promising further details on the su…

---

## [Side effecting givens in a final map with better-fors](https://users.scala-lang.org/t/side-effecting-givens-in-a-final-map-with-better-fors/12431)

<div class="topic-metadata">

**Author:** [@anqit](https://users.scala-lang.org/u/anqit)\
**Replies:** 10\
**Last updated:** [November 11, 2026, 12:21am UTC](https://users.scala-lang.org/t/side-effecting-givens-in-a-final-map-with-better-fors/12431 "2026-11-11T00:21:58Z")

</div>

SIP-62 better for \`dropForMap\` phase bug · Issue #24673 · scala/scala3 · GitHub fixed dropping the final map call in for comprehensions for side effecting functions, however, I believe a case was left out: when the final…

---

## [Severe slowdown in CI build when using SBT 2](https://users.scala-lang.org/t/severe-slowdown-in-ci-build-when-using-sbt-2/12335)

<div class="topic-metadata">

**Author:** [@sageserpent-open](https://users.scala-lang.org/u/sageserpent-open)\
**Replies:** 7\
**Last updated:** [October 26, 2026, 6:02pm UTC](https://users.scala-lang.org/t/severe-slowdown-in-ci-build-when-using-sbt-2/12335 "2026-10-26T18:02:09Z")

</div>

I’m cutting over Kinetic Merge to use SBT 2.x because Scala Steward is nagging me. I’ve got to the point where both the local and Github CI builds pass, but the Github CI build has a catastrophic slowdown - it takes aro…

---

## [How to toggle Scaladex into including a new version of your repo?](https://users.scala-lang.org/t/how-to-toggle-scaladex-into-including-a-new-version-of-your-repo/12406)

<div class="topic-metadata">

**Author:** [@devlaam](https://users.scala-lang.org/u/devlaam)\
**Replies:** 9\
**Last updated:** [October 16, 2026, 7:16pm UTC](https://users.scala-lang.org/t/how-to-toggle-scaladex-into-including-a-new-version-of-your-repo/12406 "2026-10-16T19:16:50Z")

</div>

I read that there still a problem with Scaladex picking up latest versions of repos automatically. Is there a way to manually do this? My repo on maven is three months and two versions behind the repo on Scaladex.

---

## [Scala.io videos](https://users.scala-lang.org/t/scala-io-videos/12399)

<div class="topic-metadata">

**Author:** [@jimka](https://users.scala-lang.org/u/jimka)\
**Replies:** 0\
**Last updated:** [October 3, 2026, 9:45pm UTC](https://users.scala-lang.org/t/scala-io-videos/12399 "2026-10-03T21:45:46Z")

</div>

Does anyone know whether the scala.io videos will get published on YouTube? In particular the ones from here:

---

## [Access problem persists](https://users.scala-lang.org/t/access-problem-persists/12396)

<div class="topic-metadata">

**Author:** [@marcgrue](https://users.scala-lang.org/u/marcgrue)\
**Replies:** 1\
**Last updated:** [September 24, 2026, 12:30pm UTC](https://users.scala-lang.org/t/access-problem-persists/12396 "2026-09-24T12:30:50Z")

</div>

I added a link for this forum as an icon on my iPhone - and again suddenly get: Safari can’t open the page. The error was: “Request cancelled from preloader”. I thought it was fixed? Or does it happen after having been…

---

## [Problems with scala on windows ARM](https://users.scala-lang.org/t/problems-with-scala-on-windows-arm/12393)

<div class="topic-metadata">

**Author:** [@Masemiliano](https://users.scala-lang.org/u/Masemiliano)\
**Replies:** 9\
**Last updated:** [September 17, 2026, 9:56pm UTC](https://users.scala-lang.org/t/problems-with-scala-on-windows-arm/12393 "2026-09-17T21:56:56Z")

</div>

Hello! I have problems with scala on ARM. I have an HP omnibook 5 with a snapdragon X-Plus. I installed zulu open jdk 21 for arm on it, which works well. I then installed scala using the following commands: Start-Bits…

---

## [Which line separator in println?](https://users.scala-lang.org/t/which-line-separator-in-println/12375)

<div class="topic-metadata">

**Author:** [@charpov](https://users.scala-lang.org/u/charpov)\
**Replies:** 4\
**Last updated:** [September 10, 2026, 2:15pm UTC](https://users.scala-lang.org/t/which-line-separator-in-println/12375 "2026-09-10T14:15:46Z")

</div>

The documentation for Predef.println (or Console.println) states: Prints out an object to the default output, followed by a newline character. But it looks like the default output is java.lang.System.out and that Pre…

---

## [Scala docs implicit conversion uses -\>](https://users.scala-lang.org/t/scala-docs-implicit-conversion-uses/12387)

<div class="topic-metadata">

**Author:** [@lukewassink](https://users.scala-lang.org/u/lukewassink)\
**Replies:** 4\
**Last updated:** [September 10, 2026, 7:38am UTC](https://users.scala-lang.org/t/scala-docs-implicit-conversion-uses/12387 "2026-09-10T07:38:36Z")

</div>

I am trying to understand some notation in the Scala docs. Particularly the signature for the List.flatten method. It takes an implicit argument that I assume is supposed to function like a typeclass CanIterate\[A, B\]. Th…

---

## [Using the new into](https://users.scala-lang.org/t/using-the-new-into/12293)

<div class="topic-metadata">

**Author:** [@charpov](https://users.scala-lang.org/u/charpov)\
**Replies:** 2\
**Last updated:** [September 3, 2026, 6:53am UTC](https://users.scala-lang.org/t/using-the-new-into/12293 "2026-09-03T06:53:43Z")

</div>

Now that into has been finalized (in the upcoming 3.9.0), I’m looking for places in my code where I would benefit from it. My question is: Is there a danger of overusing it? For instance, I’m looking at custom extensio…

---

## [Stale symbol defined in Period(2.1-7), is referred to in run Period(3.12)](https://users.scala-lang.org/t/stale-symbol-defined-in-period-2-1-7-is-referred-to-in-run-period-3-12/10859)

<div class="topic-metadata">

**Author:** [@OndrejSpanel](https://users.scala-lang.org/u/OndrejSpanel)\
**Replies:** 6\
**Last updated:** [August 26, 2026, 4:00pm UTC](https://users.scala-lang.org/t/stale-symbol-defined-in-period-2-1-7-is-referred-to-in-run-period-3-12/10859 "2026-08-26T16:00:57Z")

</div>

In my fork of airframe surface, I have implemented a change in which I store type arguments for type aliases (both normal and opaque). The intended use is to be able to inspect type arguments of opaque type NativeArrayIm…

---

## [Meta-build dependency isolation in SBT](https://users.scala-lang.org/t/meta-build-dependency-isolation-in-sbt/12307)

<div class="topic-metadata">

**Author:** [@sageserpent-open](https://users.scala-lang.org/u/sageserpent-open)\
**Replies:** 2\
**Last updated:** [August 16, 2026, 4:47pm UTC](https://users.scala-lang.org/t/meta-build-dependency-isolation-in-sbt/12307 "2026-08-16T16:47:33Z")

</div>

I’ve been hit by an problem in the Kinetic Merge CI build in the context of upgrading to SBT 2… What’s going on is that the build.sbt for the shipped deliverables invokes Coursier to package up the jar files into a stan…

---

## [What’s Scala’s stance on general dependent types?](https://users.scala-lang.org/t/what-s-scala-s-stance-on-general-dependent-types/10691)

<div class="topic-metadata">

**Author:** [@GunpowderGuy](https://users.scala-lang.org/u/GunpowderGuy)\
**Replies:** 12\
**Last updated:** [July 20, 2026, 6:04pm UTC](https://users.scala-lang.org/t/what-s-scala-s-stance-on-general-dependent-types/10691 "2026-07-20T18:04:49Z")

</div>

Hi folks, I’m coming from an Idris2 background and currently learning both Haskell and Scala (yes, I may have a language learning problem :sweat\_smile:). Idris2 is built around dependent types from the start. Haskell i…

---

## [Emacs/metals compilation error](https://users.scala-lang.org/t/emacs-metals-compilation-error/12306)

<div class="topic-metadata">

**Author:** [@Russ](https://users.scala-lang.org/u/Russ)\
**Replies:** 13\
**Last updated:** [July 13, 2026, 7:51pm UTC](https://users.scala-lang.org/t/emacs-metals-compilation-error/12306 "2026-07-13T19:51:13Z")

</div>

I am using emacs/metals for Scala on Ubuntu Linux. It was working, more or less, but now I am getting this compilation error: \[error\] – \[E008\] Not Found Error: /home/rxxxx/trajspec/src/main/.metals/readonly/dependencies…

---

## [Overloading is evil, but](https://users.scala-lang.org/t/overloading-is-evil-but/12281)

<div class="topic-metadata">

**Author:** [@charpov](https://users.scala-lang.org/u/charpov)\
**Replies:** 4\
**Last updated:** [June 19, 2026, 5:25am UTC](https://users.scala-lang.org/t/overloading-is-evil-but/12281 "2026-06-19T05:25:12Z")

</div>

This is a followup to my Debugging transparent inline functions question as it turns out my problem has more to do with overloading than transparent inline. This code works, and I don’t understand why: def wf\[A\](code: …

---

## [Question About unfamiliar behavior](https://users.scala-lang.org/t/question-about-unfamiliar-behavior/12291)

<div class="topic-metadata">

**Author:** [@gwynn33](https://users.scala-lang.org/u/gwynn33)\
**Replies:** 8\
**Last updated:** [June 15, 2026, 9:03am UTC](https://users.scala-lang.org/t/question-about-unfamiliar-behavior/12291 "2026-06-15T09:03:18Z")

</div>

Hi, i started learning Scala and i was enjoying the theory behind it, then i encountered this Warning about LazyVals$: WARNING: A terminally deprecated method in sun.misc.Unsafe has been called WARNING: sun.misc.Unsaf…

---

## [How to disable spam from this site?](https://users.scala-lang.org/t/how-to-disable-spam-from-this-site/12285)

<div class="topic-metadata">

**Author:** [@max](https://users.scala-lang.org/u/max)\
**Replies:** 3\
**Last updated:** [June 1, 2026, 9:35pm UTC](https://users.scala-lang.org/t/how-to-disable-spam-from-this-site/12285 "2026-06-01T21:35:44Z")

</div>

In my profile, the lists of ‘watched’ and ‘tracked’ categories are empty. Automatic tracking of topics I enter is set to never. ‘When posting’ to ‘Do nothing’. The checkbox ‘Activity Summary’ which enables sending rando…

---

## [Way to create a class that extends nested class](https://users.scala-lang.org/t/way-to-create-a-class-that-extends-nested-class/12284)

<div class="topic-metadata">

**Author:** [@mbanister](https://users.scala-lang.org/u/mbanister)\
**Replies:** 2\
**Last updated:** [June 1, 2026, 9:21pm UTC](https://users.scala-lang.org/t/way-to-create-a-class-that-extends-nested-class/12284 "2026-06-01T21:21:59Z")

</div>

Hello, I have a class hierarchy in a package outside of my control that looks like this: class Parent: class Nested(a: Int): ??? I want some way to create a convenience class that wraps Nested, but so far, due t…

---

## [Debugging transparent inline functions](https://users.scala-lang.org/t/debugging-transparent-inline-functions/12268)

<div class="topic-metadata">

**Author:** [@charpov](https://users.scala-lang.org/u/charpov)\
**Replies:** 5\
**Last updated:** [May 22, 2026, 1:51pm UTC](https://users.scala-lang.org/t/debugging-transparent-inline-functions/12268 "2026-05-22T13:51:55Z")

</div>

I’m trying to debug a transparent inline function. I’ve tried Vprint options but still cannot figure out what is going on. This works: transparent inline def withMarkedThreads\[A\](maxThreads: Int, x: Int)(code: Executio…

---

## [Issues designing APIs with capture checking](https://users.scala-lang.org/t/issues-designing-apis-with-capture-checking/12269)

<div class="topic-metadata">

**Author:** [@nrinaudo](https://users.scala-lang.org/u/nrinaudo)\
**Replies:** 10\
**Last updated:** [May 20, 2026, 5:06pm UTC](https://users.scala-lang.org/t/issues-designing-apis-with-capture-checking/12269 "2026-05-20T17:06:56Z")

</div>

Le’t’s say we have a Run trait that abstracts over the notion of running a given task, as well was a helper class, Tasks, that aggregates a bunch of tasks and knows how to run them: trait Run: def run(taskId: String):…

---

## [Macro fails when overriding extension method with -Xcheck-macros](https://users.scala-lang.org/t/macro-fails-when-overriding-extension-method-with-xcheck-macros/12271)

<div class="topic-metadata">

**Author:** [@lego-eden](https://users.scala-lang.org/u/lego-eden)\
**Replies:** 0\
**Last updated:** [May 18, 2026, 11:12pm UTC](https://users.scala-lang.org/t/macro-fails-when-overriding-extension-method-with-xcheck-macros/12271 "2026-05-18T23:12:38Z")

</div>

When i try to use the reflection API to create an instance of an unknown type-class that contains extension methods, say something like the following, I run into trouble: trait Show\[A\]: extension (a: A) def show: …

---

## [Understanding Tuple.Map and polymorphic function types](https://users.scala-lang.org/t/understanding-tuple-map-and-polymorphic-function-types/12262)

<div class="topic-metadata">

**Author:** [@cptwunderlich](https://users.scala-lang.org/u/cptwunderlich)\
**Replies:** 4\
**Last updated:** [May 13, 2026, 6:56pm UTC](https://users.scala-lang.org/t/understanding-tuple-map-and-polymorphic-function-types/12262 "2026-05-13T18:56:21Z")

</div>

I was looking at Tuple and I’m trying to understand how to use that. Looks like a polymorphic function type to me. If I do (1, “test”, true).map(\[t\] =\> (x: t) =\> ???) I can do very generic things, e.g., wrap the values…

---

## [How can I fix this break: loop over two iterators and break when condition is satisfied](https://users.scala-lang.org/t/how-can-i-fix-this-break-loop-over-two-iterators-and-break-when-condition-is-satisfied/12267)

<div class="topic-metadata">

**Author:** [@xolve](https://users.scala-lang.org/u/xolve)\
**Replies:** 4\
**Last updated:** [May 11, 2026, 12:55pm UTC](https://users.scala-lang.org/t/how-can-i-fix-this-break-loop-over-two-iterators-and-break-when-condition-is-satisfied/12267 "2026-05-11T12:55:54Z")

</div>

As a minimal example I wrote this code: Make a 2D matrix which contains numbers randomly generated from 0 to 9. Find the indices of first number divisible by 3. I have two part question: What changes should I make t…

---

## [How to prevent contains comparing unrelated types?](https://users.scala-lang.org/t/how-to-prevent-contains-comparing-unrelated-types/12265)

<div class="topic-metadata">

**Author:** [@OndrejSpanel](https://users.scala-lang.org/u/OndrejSpanel)\
**Replies:** 1\
**Last updated:** [May 5, 2026, 10:55pm UTC](https://users.scala-lang.org/t/how-to-prevent-contains-comparing-unrelated-types/12265 "2026-05-05T22:55:37Z")

</div>

Take following code: object Main { def main(args: Array\[String\]): Unit = { val a: String = "answer" val i: Int = 42 val is = Some(i) if (i == a) println("Thanks for the fish!") if (is.contains(a)…

---

## [Why is .runtimeChecked required when matching "rest" of sequence extractor?](https://users.scala-lang.org/t/why-is-runtimechecked-required-when-matching-rest-of-sequence-extractor/12263)

<div class="topic-metadata">

**Author:** [@Shasta](https://users.scala-lang.org/u/Shasta)\
**Replies:** 6\
**Last updated:** [May 5, 2026, 2:55am UTC](https://users.scala-lang.org/t/why-is-runtimechecked-required-when-matching-rest-of-sequence-extractor/12263 "2026-05-05T02:55:37Z")

</div>

Hi, Why does this code: object PathParts: def unapplySeq(s: String) = s.split('/').toSeq ... val PathParts(first, \_\*) = "one/two/three" generate this warning: \[warn\] ./src/main/scala/chapter-11.scala:90:32 \[wa…

---

## [Disabling full names in error messages](https://users.scala-lang.org/t/disabling-full-names-in-error-messages/12261)

<div class="topic-metadata">

**Author:** [@Bersier](https://users.scala-lang.org/u/Bersier)\
**Replies:** 5\
**Last updated:** [May 1, 2026, 6:49pm UTC](https://users.scala-lang.org/t/disabling-full-names-in-error-messages/12261 "2026-05-01T18:49:00Z")

</div>

The compile-error messages I get are usually much harder to read due to them using fully qualified names everywhere. Is there a way to disable this? Perhaps a compiler option? I often end up manually removing the paths b…

---

## [New repl: customising display?](https://users.scala-lang.org/t/new-repl-customising-display/12242)

<div class="topic-metadata">

**Author:** [@Quafadas](https://users.scala-lang.org/u/Quafadas)\
**Replies:** 2\
**Last updated:** [April 22, 2026, 7:28am UTC](https://users.scala-lang.org/t/new-repl-customising-display/12242 "2026-04-22T07:28:29Z")

</div>

If I’ve read the news correctly, the new repl uses pprint under the hood to display things. With raw pprint, I believe that one can customise the way stuff is displayed. Is there any path to bring able to do that in th…

[Next page](https://users.scala-lang.org/c/question/7.md?page=1)
