Skip to content

Conversation

EugeneFlesselle
Copy link
Contributor

@EugeneFlesselle EugeneFlesselle commented Sep 14, 2025

Reverts #23920

@EugeneFlesselle EugeneFlesselle force-pushed the distributeAnd-revert-revert branch from a5ec473 to 4d2442b Compare September 14, 2025 15:46
@EugeneFlesselle
Copy link
Contributor Author

@hamzaremmal all ci-checks (including scala-library-bootstrapped) pass (but so did they in the original PR). How do we test the same issue does not occur?

@hamzaremmal hamzaremmal marked this pull request as ready for review September 15, 2025 11:57
@hamzaremmal hamzaremmal requested a review from a team as a code owner September 15, 2025 11:57
+CC[X] <: SortedSet[X] with SortedSetOps[X, CC, CC[X]],
+WithFilterCC[x] <: IterableOps[x, WithFilterCC, WithFilterCC[x]] with Set[x]] extends SortedSetOps[A @uncheckedVariance, CC, CC[A @uncheckedVariance]] {
self: IterableOps[A, WithFilterCC, _] =>
self: IterableOps[A, WithFilterCC, CC[A @uncheckedVariance]] =>
Copy link
Member

Choose a reason for hiding this comment

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

I checked both changes here with @sjrd and they should be fine.

Copy link
Member

Choose a reason for hiding this comment

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

I reverted the PR as I had doubt over this change and it was breaking everything.

Copy link
Member

@sjrd sjrd Sep 16, 2025

Choose a reason for hiding this comment

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

Now I'm getting the following, but in unclear situations (clean build worked; recompiled with a clean scala3-libary-nonbootstrapped does not work).

[error] -- [E046] Cyclic Error: /localhome/doeraene/projects/dotty/library/src/scala/collection/Iterable.scala:992:11 
[error] 992 |    +CC[X] <: SortedSet[X] with SortedSetOps[X, CC, CC[X]],
[error]     |           ^
[error]     |           Cyclic reference involving trait SortedSet
[error]     |
[error]     |            Run with -explain-cyclic for more details.s
[error]     |
[error]     | longer explanation available when compiling with `-explain`

Copy link
Member

Choose a reason for hiding this comment

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

Hum, no, cleaning the library project fixes it. But still, it means it's appearing under some separate/incremental compilation scenarios. :s

@hamzaremmal
Copy link
Member

hamzaremmal commented Sep 15, 2025

How do we test the same issue does not occur?

It was a bad interaction with the build cache. I went ahead and completely disable it in the meantime.

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