Skip to content

Commit 1221128

Browse files
committed
fix: fix build & Depecrated 213 && 221 && closed #59
1 parent 7914ec2 commit 1221128

File tree

12 files changed

+10
-22
lines changed

12 files changed

+10
-22
lines changed

.github/workflows/build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ jobs:
3131
strategy:
3232
fail-fast: true
3333
matrix:
34-
platform-version: [ 221, 233 ]
34+
platform-version: [ 222, 233 ]
3535
env:
3636
ORG_GRADLE_PROJECT_platformVersion: ${{ matrix.platform-version }}
3737

goland/src/main/kotlin/cc/unitmesh/go/context/GoClassContextBuilder.kt

Lines changed: 0 additions & 17 deletions
This file was deleted.

gradle-221.properties renamed to gradle-222.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,5 @@
44
ideaVersion=IU-2022.2.4
55

66
# please see https://www.jetbrains.org/intellij/sdk/docs/basics/getting_started/build_number_ranges.html for description
7-
pluginSinceBuild = 221.*
7+
pluginSinceBuild = 222.*
88
pluginUntilBuild = 232.*

gradle.properties

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# IntelliJ Platform Artifacts Repositories -> https://plugins.jetbrains.com/docs/intellij/intellij-artifacts.html
22
propertiesPluginEnvironmentNameProperty=platformVersion
3-
# Supported platforms: 221, 233
4-
platformVersion=233
3+
# Supported platforms: 222, 233
4+
platformVersion=222
55

66
pluginGroup = com.phodal.autodev
77
pluginName = AutoDev

src/main/kotlin/cc/unitmesh/devti/intentions/action/task/TestCodeGenTask.kt

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,9 @@ import com.intellij.openapi.progress.Task
1818
import com.intellij.openapi.project.DumbService
1919
import com.intellij.openapi.project.Project
2020
import com.intellij.openapi.vfs.VirtualFile
21+
import kotlinx.coroutines.InternalCoroutinesApi
2122
import kotlinx.coroutines.flow.Flow
23+
import kotlinx.coroutines.flow.collect
2224
import kotlinx.coroutines.runBlocking
2325

2426
class TestCodeGenTask(val request: TestCodeGenRequest) :
@@ -115,13 +117,16 @@ class TestCodeGenTask(val request: TestCodeGenRequest) :
115117
}
116118
}
117119

120+
@OptIn(InternalCoroutinesApi::class)
118121
private suspend fun writeTestToFile(
119122
project: Project,
120123
flow: Flow<String>,
121124
context: TestFileContext,
122125
) {
123126
val suggestion = StringBuilder()
124-
flow.collect(suggestion::append)
127+
flow.collect {
128+
suggestion.append(it)
129+
}
125130

126131
logger.info("LLM suggestion: $suggestion")
127132

0 commit comments

Comments
 (0)