Skip to content

Commit 7cc85d2

Browse files
authored
Revert platformVersion (#268)
If you run the latest plugin on Gateway 231 you get an error about DeployWithDownload being void when the IDE is not already installed. Reverting the platform version back to 231 makes the plugin work on both 231 and 232 (the current EAP). Honestly I do not understand why this is necessary as the API here does not appear to have changed at all. Upon doing some research though it appears that the platform version should match the "since build" version so I downgraded further. It seems `minimumWidth` and `maximumWidth` are not available in that version so our plugin is currently broken there as well. This is fixed by using `size` instead. I think normally the plugin verifier would catch these things and I tried getting it working by specifying the versions to check but it seems to be bugged; the only errors it shows appear to be from a failure to properly resolve dependencies.
1 parent 148240a commit 7cc85d2

File tree

3 files changed

+12
-6
lines changed

3 files changed

+12
-6
lines changed

build.gradle.kts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -150,4 +150,8 @@ tasks {
150150
test {
151151
useJUnitPlatform()
152152
}
153+
154+
runPluginVerifier {
155+
ideVersions.set(properties("verifyVersions").split(","))
156+
}
153157
}

gradle.properties

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,17 +3,22 @@
33
pluginGroup=com.coder.gateway
44
pluginName=coder-gateway
55
# SemVer format -> https://semver.org
6-
pluginVersion=2.5.0
6+
pluginVersion=2.5.1
77
# See https://plugins.jetbrains.com/docs/intellij/build-number-ranges.html
88
# for insight into build numbers and IntelliJ Platform versions.
99
pluginSinceBuild=223.7571.70
1010
pluginUntilBuild=232.*
1111
# IntelliJ Platform Properties -> https://github.com/JetBrains/gradle-intellij-plugin#intellij-platform-properties
1212
# Gateway available build versions https://www.jetbrains.com/intellij-repository/snapshots and https://www.jetbrains.com/intellij-repository/releases
13+
# The platform version must match the "since build" version while the
14+
# instrumentation version appears to be used in development. The plugin
15+
# verifier should be used after bumping versions to ensure compatibility in the
16+
# range.
1317
platformType=GW
14-
platformVersion=232.8296.17-CUSTOM-SNAPSHOT
18+
platformVersion=223.7571.70-CUSTOM-SNAPSHOT
1519
instrumentationCompiler=232.8296.17-CUSTOM-SNAPSHOT
1620
platformDownloadSources=true
21+
verifyVersions=2022.3,2023.1,2023.2
1722
# Plugin Dependencies -> https://plugins.jetbrains.com/docs/intellij/plugin-dependencies.html
1823
# Example: platformPlugins = com.intellij.java, com.jetbrains.php:203.4449.22
1924
platformPlugins=

src/main/kotlin/com/coder/gateway/views/CoderGatewayRecentWorkspaceConnectionsView.kt

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,6 @@ import com.intellij.ui.dsl.builder.BottomGap
3333
import com.intellij.ui.dsl.builder.RightGap
3434
import com.intellij.ui.dsl.builder.TopGap
3535
import com.intellij.ui.dsl.builder.panel
36-
import com.intellij.ui.util.maximumWidth
37-
import com.intellij.ui.util.minimumWidth
3836
import com.intellij.util.io.readText
3937
import com.intellij.util.ui.JBFont
4038
import com.intellij.util.ui.JBUI
@@ -182,8 +180,7 @@ class CoderGatewayRecentWorkspaceConnectionsView(private val setContentCallback:
182180
toolTipText = "Querying workspace status..."
183181
}
184182
}).align(AlignX.LEFT).gap(RightGap.SMALL).applyToComponent {
185-
maximumWidth = JBUI.scale(16)
186-
minimumWidth = JBUI.scale(16)
183+
size = Dimension(JBUI.scale(16), JBUI.scale(16))
187184
}
188185
label(hostname.removePrefix("coder-jetbrains--")).applyToComponent {
189186
font = JBFont.h3().asBold()

0 commit comments

Comments
 (0)