You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
objectMain {
caseclassA(s: String="s", i: Int=1)
objectInside {
defcreate(a: A) = {
deffunc(a: A, count: Int) = {
(0 until count).map { i =>valnumber= i +1valstring= i.toString
valinsideA=A(string, number)
insideA.s * number
}
}
func(a, 5)
a
}
}
defmain(args: Array[String]):Unit= {
Inside.create(A())
}
}
Place breakpoints at
val number = i + 1
insideA.s * number
func(a, 5)
Note: using IntelliJ IntelliJ IDEA 2024.1 RC and Scala plugin 2024.1.596
Expectation
It should be possible to place breakpoints at all those lines
What happens instead
With 3.3.3 all breakpoints are displayed as active, but only 2 and 3 are triggered
With 3.4.0 and 3.4.1 only breakpoints 2 and 3 are displayed as active and triggered
With 3.5.0-RC1-bin-20240331-cc55381-NIGHTLY only breakpoint 3 is displayed as active and triggered. It is impossible to step into the lambda
3.5. screenshot:
Issue
I am not sure if this is IntelliJ or Scala 3 issue, but Scala 3 seems to be a more likely source.
The text was updated successfully, but these errors were encountered:
Compiler version
3.3.3
3.4.0
3.4.1
3.5.0-RC1-bin-20240331-cc55381-NIGHTLY
Minimized code
I have experienced the issue when trying to verify fix #15841. Code is from https://youtrack.jetbrains.com/issue/SCL-22145.
Place breakpoints at
val number = i + 1
insideA.s * number
func(a, 5)
Note: using IntelliJ IntelliJ IDEA 2024.1 RC and Scala plugin 2024.1.596
Expectation
It should be possible to place breakpoints at all those lines
What happens instead
With 3.3.3 all breakpoints are displayed as active, but only 2 and 3 are triggered
With 3.4.0 and 3.4.1 only breakpoints 2 and 3 are displayed as active and triggered
With 3.5.0-RC1-bin-20240331-cc55381-NIGHTLY only breakpoint 3 is displayed as active and triggered. It is impossible to step into the lambda
3.5. screenshot:
Issue
I am not sure if this is IntelliJ or Scala 3 issue, but Scala 3 seems to be a more likely source.
The text was updated successfully, but these errors were encountered: