Skip to content

Commit

Permalink
Merged branch idea243.release into idea243.x
Browse files Browse the repository at this point in the history
  • Loading branch information
builduser committed Jan 17, 2025
2 parents 975cb48 + b976b36 commit 2a6fe4b
Show file tree
Hide file tree
Showing 7 changed files with 9 additions and 13 deletions.
2 changes: 1 addition & 1 deletion .idea/kotlinc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion pluginXml/resources/META-INF/plugin.xml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
<version>VERSION</version>
<change-notes></change-notes>
<vendor url="https://www.jetbrains.com">JetBrains</vendor>
<idea-version since-build="243.22562" until-build="243.*"/>
<idea-version since-build="243.23654" until-build="243.*"/>

<depends>com.intellij.modules.java</depends>
<depends optional="true" config-file="scala-maven-integration.xml">org.jetbrains.idea.maven</depends>
Expand Down
2 changes: 1 addition & 1 deletion project/Common.scala
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ object Common {
.settings(
// NOTE: check community/.idea/libraries/kotlin_stdlib.xml in intellij monorepo when updating intellijVersion
// NOTE: keep versions in sync with ultimate/.idea/kotlinc.xml and community/.idea/kotlinc.xml
kotlinVersion := "2.0.21-RC",
kotlinVersion := "2.0.21",
kotlincJvmTarget := "17",
kotlinRuntimeProvided := true
)
Expand Down
2 changes: 1 addition & 1 deletion project/dependencies.scala
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ object Versions {
val zincVersion = "1.10.3"

// ATTENTION: check the comment in `Common.newProjectWithKotlin` when updating this version
val intellijVersion = "243.22562.145"
val intellijVersion = "243.23654.117"

def isNightlyIntellijVersion: Boolean = intellijVersion.count(_ == '.') == 1

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,10 @@ package org.jetbrains.plugins.scala.debugger.evaluation.evaluator
import com.intellij.debugger.engine.evaluation.EvaluationContextImpl
import com.intellij.debugger.engine.evaluation.expression.{DisableGC, Evaluator}
import com.intellij.debugger.engine.{DebugProcess, DebugProcessImpl, DebuggerUtils, JVMName}
import com.intellij.debugger.impl.DebuggerUtilsEx
import com.intellij.debugger.{JavaDebuggerBundle, SourcePosition}
import com.sun.jdi._
import com.sun.tools.jdi.{ConcreteMethodImpl, TypeComponentImpl}
import org.jetbrains.plugins.scala.debugger.DebuggerBundle
import org.jetbrains.plugins.scala.debugger.ScalaPositionManager
import org.jetbrains.plugins.scala.debugger.{DebuggerBundle, ScalaPositionManager}
import org.jetbrains.plugins.scala.debugger.evaluation.EvaluationException
import org.jetbrains.plugins.scala.debugger.evaluation.util.DebuggerUtil
import org.jetbrains.plugins.scala.extensions._
Expand Down Expand Up @@ -142,7 +140,7 @@ case class ScalaMethodEvaluator(objectEvaluator: Evaluator,
def invokeStaticMethod(jdiMethod: Method): AnyRef = {
def fixArguments(): Seq[Value] = {
def correctArgType(arg: AnyRef, typeName: String) = arg match {
case objRef: ObjectReference => DebuggerUtilsEx.isAssignableFrom(typeName, objRef.referenceType())
case objRef: ObjectReference => DebuggerUtils.instanceOf(objRef.referenceType(), typeName)
case primValue: PrimitiveValue => primValue.`type`().name() == typeName
case _ => true
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,15 +1,14 @@
package org.jetbrains.plugins.scala.debugger.evaluation.evaluator

import com.intellij.debugger.JavaDebuggerBundle
import com.intellij.debugger.engine.DebuggerUtils
import com.intellij.debugger.engine.evaluation.EvaluationContextImpl
import com.intellij.debugger.engine.evaluation.expression.Evaluator
import com.intellij.debugger.impl.DebuggerUtilsEx
import com.intellij.debugger.jdi.{LocalVariableProxyImpl, StackFrameProxyImpl}
import com.sun.jdi._
import org.jetbrains.plugins.scala.debugger.DebuggerBundle
import org.jetbrains.plugins.scala.debugger.evaluation.EvaluationException

import scala.annotation.nowarn
import scala.jdk.CollectionConverters._

class ScalaThisEvaluator(iterations: Int = 0) extends Evaluator {
Expand Down Expand Up @@ -83,7 +82,7 @@ class ScalaThisEvaluator(iterations: Int = 0) extends Evaluator {
def findInOtherFrame(context: EvaluationContextImpl, rt: ReferenceType): Option[Value] = {
val threadProxy = context.getFrameProxy.threadProxy()
threadProxy.frames().asScala.collectFirst {
case frame if frame.thisObject() != null && DebuggerUtilsEx.isAssignableFrom(rt.name(), frame.thisObject().referenceType()) =>
case frame if frame.thisObject() != null && DebuggerUtils.instanceOf(frame.thisObject().referenceType(), rt.name()) =>
frame.thisObject()
}
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package org.jetbrains.plugins.scala.debugger.smartStepInto

import com.intellij.debugger.engine._
import com.intellij.debugger.impl.DebuggerUtilsEx
import com.intellij.psi.util.PsiTreeUtil
import com.intellij.util.Range
import com.sun.jdi.Location
Expand Down Expand Up @@ -54,7 +53,7 @@ class ScalaMethodFilter(function: ScMethodLike, callingExpressionLines: Range[In
else if (myTargetMethodSignature != null && method.signature() != myTargetMethodSignature.getName(process))
false
else
DebuggerUtilsEx.isAssignableFrom(locationTypeName, location.declaringType) &&
DebuggerUtils.instanceOf(location.declaringType(), locationTypeName) &&
!ScalaPositionManager.shouldSkip(location, process)
}

Expand Down

0 comments on commit 2a6fe4b

Please sign in to comment.