Skip to content

Commit fd5b29d

Browse files
fix: Update minimum IDE version to fix compatibility with most recent Kotlin version (#243)
Missing SpillingKt results in an exception when trying to apply Oxc fixes within the editor
1 parent 516b021 commit fd5b29d

File tree

8 files changed

+12
-14
lines changed

8 files changed

+12
-14
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,10 @@
1111
- Resolve language server not stopping when closing all relevant files.
1212
- Resolve language server starting when opening irrelevant files.
1313

14+
### Removed
15+
16+
- Removed support for IDE versions 2024.3.
17+
1418
## [0.0.12] - 2025-06-24
1519

1620
### Added

gradle.properties

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,12 @@ pluginRepositoryUrl = https://github.com/oxc-project/oxc-intellij-plugin
77
pluginVersion = 0.0.13
88

99
# Supported build number ranges and IntelliJ Platform versions -> https://plugins.jetbrains.com/docs/intellij/build-number-ranges.html
10-
pluginSinceBuild = 243
10+
pluginSinceBuild = 251
1111
pluginUntilBuild = 252.*
1212

1313
# IntelliJ Platform Properties -> https://plugins.jetbrains.com/docs/intellij/tools-gradle-intellij-plugin.html#configuration-intellij-extension
1414
platformType = WS
15-
platformVersion = 2024.3.6
15+
platformVersion = 2025.1.3
1616

1717
# Plugin Dependencies -> https://plugins.jetbrains.com/docs/intellij/plugin-dependencies.html
1818
# Example: platformPlugins = com.intellij.java, com.jetbrains.php:203.4449.22

plugin-verifier-ignored-problems.txt

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +0,0 @@
1-
Access to unresolved class com.intellij.javascript.nodejs.util.NodePackage.Companion.*
2-
Access to unresolved field com.intellij.javascript.nodejs.util.NodePackage.Companion.*
3-
Access to unresolved class kotlin.coroutines.jvm.internal.SpillingKt

src/main/kotlin/com/github/oxc/project/oxcintellijplugin/lsp/OxcLspDiagnosticsSupport.kt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ import com.intellij.openapi.diagnostic.thisLogger
55
import com.intellij.platform.lsp.api.customization.LspDiagnosticsSupport
66
import org.eclipse.lsp4j.Diagnostic
77

8-
@Suppress("UnstableApiUsage")
98
class OxcLspDiagnosticsSupport : LspDiagnosticsSupport() {
109

1110
override fun getMessage(diagnostic: Diagnostic): String {

src/main/kotlin/com/github/oxc/project/oxcintellijplugin/lsp/OxcLspServerDescriptor.kt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ import org.eclipse.lsp4j.ClientCapabilities
1515
import org.eclipse.lsp4j.ConfigurationItem
1616
import org.eclipse.lsp4j.InitializeParams
1717

18-
@Suppress("UnstableApiUsage")
1918
class OxcLspServerDescriptor(
2019
project: Project,
2120
root: VirtualFile,
@@ -89,7 +88,7 @@ class OxcLspServerDescriptor(
8988

9089
override val lspHoverSupport = false
9190

92-
override val lspDiagnosticsSupport: LspDiagnosticsSupport? = OxcLspDiagnosticsSupport()
91+
override val lspDiagnosticsSupport: LspDiagnosticsSupport = OxcLspDiagnosticsSupport()
9392

9493
private fun createWorkspaceConfig(workspace: VirtualFile): Map<String, Any?> {
9594
val oxcPackage = OxcPackage(project)

src/main/kotlin/com/github/oxc/project/oxcintellijplugin/lsp/OxcLspServerSupportProvider.kt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ import com.intellij.platform.lsp.api.LspServerSupportProvider
1313
import com.intellij.platform.lsp.api.lsWidget.LspServerWidgetItem
1414
import kotlin.io.path.Path
1515

16-
@Suppress("UnstableApiUsage")
1716
class OxcLspServerSupportProvider : LspServerSupportProvider {
1817
override fun fileOpened(project: Project,
1918
file: VirtualFile,
@@ -36,7 +35,7 @@ class OxcLspServerSupportProvider : LspServerSupportProvider {
3635
}
3736

3837
override fun createLspServerWidgetItem(lspServer: LspServer,
39-
currentFile: VirtualFile?): LspServerWidgetItem? {
38+
currentFile: VirtualFile?): LspServerWidgetItem {
4039
return LspServerWidgetItem(lspServer, currentFile, OxcIcons.OxcRound, OxcConfigurable::class.java)
4140
}
4241
}

src/main/kotlin/com/github/oxc/project/oxcintellijplugin/services/OxcServerService.kt

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
@file:Suppress("UnstableApiUsage")
2-
31
package com.github.oxc.project.oxcintellijplugin.services
42

53
import com.github.oxc.project.oxcintellijplugin.OxcBundle
@@ -34,7 +32,7 @@ class OxcServerService(private val project: Project) {
3432
suspend fun fixAll(document: Document) {
3533
val manager = FileDocumentManager.getInstance()
3634
val file = manager.getFile(document) ?: return
37-
35+
3836
fixAll(file, document)
3937
}
4038

src/main/kotlin/com/github/oxc/project/oxcintellijplugin/settings/OxcConfigurable.kt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,12 +84,14 @@ class OxcConfigurable(private val project: Project) :
8484
// *********************
8585
panel {
8686
row(OxcBundle.message("oxc.settings.languageServerPath")) {
87+
@Suppress("UnstableApiUsage")
8788
textFieldWithBrowseButton(OxcBundle.message("oxc.settings.languageServerPath")) {
8889
it.path
8990
}.align(AlignX.FILL).bindText(settings::binaryPath)
9091
}.visibleIf(manualConfiguration.selected)
9192

9293
row(OxcBundle.message("oxc.config.path.label")) {
94+
@Suppress("UnstableApiUsage")
9395
textFieldWithBrowseButton(
9496
OxcBundle.message("oxc.config.path.label"),
9597
project,
@@ -161,7 +163,7 @@ class OxcConfigurable(private val project: Project) :
161163

162164
override fun apply() {
163165
super.apply()
164-
@Suppress("UnstableApiUsage") ApplicationManager.getApplication().invokeLater {
166+
ApplicationManager.getApplication().invokeLater {
165167
project.service<LspServerManager>().stopAndRestartIfNeeded(OxcLspServerSupportProvider::class.java)
166168
}
167169
}

0 commit comments

Comments
 (0)