Skip to content

Commit 330bd26

Browse files
authored
Merge pull request #419 from domaframework/feature/error-repot
Exception Analyzer Support
2 parents 46e624d + 4d035f7 commit 330bd26

File tree

4 files changed

+6
-5
lines changed

4 files changed

+6
-5
lines changed

gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ pluginName = Doma Tools for IntelliJ
33
pluginRepositoryUrl = https://github.com/domaframework/doma-tools-for-intellij
44
pluginVersion = 2.1.3-beta
55

6-
pluginSinceBuild=231
6+
pluginSinceBuild=233
77

88
platformType = IC
99
platformVersion = 2024.3.1

src/main/kotlin/org/domaframework/doma/intellij/inspection/dao/processor/paramtype/SqlProcessorParamTypeCheckProcessor.kt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515
*/
1616
package org.domaframework.doma.intellij.inspection.dao.processor.paramtype
1717

18-
import androidx.compose.compiler.plugins.kotlin.lower.fastForEachIndexed
1918
import com.intellij.codeInspection.ProblemsHolder
2019
import com.intellij.psi.PsiClassType
2120
import com.intellij.psi.PsiType
@@ -64,7 +63,7 @@ class SqlProcessorParamTypeCheckProcessor(
6463

6564
val biFunctionClassType = (biFunctionParam.type as? PsiClassType)
6665
val identifier = biFunctionParam.nameIdentifier ?: return
67-
biFunctionClassType?.parameters?.fastForEachIndexed { index, param ->
66+
biFunctionClassType?.parameters?.forEachIndexed { index, param ->
6867
if (param == null || !checkBiFunctionParam(index, param)) {
6968
ValidationMethodBiFunctionParamResult(
7069
identifier,

src/main/resources/META-INF/plugin.xml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
<depends>org.intellij.intelliLang</depends>
1111
<depends>org.toml.lang</depends>
1212
<depends optional="true" config-file="kotlin.xml">org.jetbrains.kotlin</depends>
13-
<idea-version since-build="231"/>
13+
<idea-version since-build="233"/>
1414

1515
<resource-bundle>messages.DomaToolsBundle</resource-bundle>
1616
<resource-bundle>messages.LLMInstallerBundle</resource-bundle>
@@ -22,6 +22,7 @@
2222
</projectListeners>
2323

2424
<extensions defaultExtensionNs="com.intellij">
25+
<errorHandler implementation="com.intellij.diagnostic.JetBrainsMarketplaceErrorReportSubmitter"/>
2526
<postStartupActivity implementation="org.domaframework.doma.intellij.setting.DomaToolStartupActivity"/>
2627

2728
<applicationService

src/test/kotlin/org/domaframework/doma/intellij/document/SqlSymbolDocumentTestCase.kt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,6 +205,7 @@ class SqlSymbolDocumentTestCase : DomaSqlTest() {
205205
return forDirective.elExprList.firstOrNull { it.text == searchElementName }
206206
}
207207

208-
return fieldAccessExpr.accessElements.firstOrNull { it?.text == searchElementName }
208+
val accesses = fieldAccessExpr.accessElements
209+
return accesses.firstOrNull { it?.text == searchElementName }
209210
}
210211
}

0 commit comments

Comments
 (0)