Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[jb] Add support for JetBrains IDEs v2022.3 #13044

Closed
wants to merge 1 commit into from

Conversation

felladrin
Copy link
Contributor

@felladrin felladrin commented Sep 16, 2022

Description

Now that IDEA/PyCharm/PhpStorm/GoLand latest version is v2022.3 in Gitpod, we can add support for JetBrains IDEs v2022.3.

All code changes were done to accommodate the API differences between v2022.2 and v2022.3. There were no logic/flow changes in the plugin.

How to test

  1. Access the Preview Environment of this PR
  2. Open a workspace using the Stable Version of IntelliJ IDEA and check if the Control Center is being displayed correctly and that the IDE shows no errors about Gitpod Plugin.
  3. Do the same as Step 2, but now using the Latest Stable Version of IntelliJ IDEA.

Release Notes

Gitpod Plugin was updated to work with the JetBrains IDEs v2022.3 (EAP).

Werft options:

  • /werft with-local-preview
    If enabled this will build install/preview
  • /werft with-preview
  • /werft with-integration-tests=all
    Valid options are all, workspace, webapp, ide

Comment on lines +72 to +76
GlobalScope.launch {
withContext(Dispatchers.IO) {
CommandLineProcessor.doOpenFileOrProject(file, shouldWait).future.get()
}
}
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ℹ️ This change is because this became a suspend function in 2022.3.
image

@@ -120,7 +120,9 @@ class GitpodClientProjectSessionTracker(

// Ignore ports that aren't actually used by the user (e.g. ports used internally by JetBrains IDEs)
val backendPort = BuiltInServerManager.getInstance().waitForStart().port
val serverPort = StartupUtil.getServerFuture().await().port
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ℹ️ This change is because com.intellij.idea.StartupUtil doesn't exist anymore in 2022.3.

Comment on lines +94 to +96
val isForwarded = forwardedPortsList.find { it.hostPort == hostPort } != null

if (isServed && !forwardedPortsList.containsKey(hostPort)) {
if (isServed && !isForwarded) {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ℹ️ This was changed because forwaredPortsList became a List instead of a Map in v2022.3.

@felladrin felladrin force-pushed the vn/jetbrains-backend-plugin-223 branch 2 times, most recently from 5414a1b to 3c4e378 Compare September 27, 2022 16:22
@roboquat roboquat added size/L and removed size/M labels Sep 27, 2022
@felladrin felladrin force-pushed the vn/jetbrains-backend-plugin-223 branch from 3c4e378 to eb11a75 Compare September 28, 2022 07:42
@felladrin felladrin marked this pull request as ready for review September 28, 2022 08:16
@felladrin felladrin requested a review from a team September 28, 2022 08:16
@gitpod-io gitpod-io deleted a comment from werft-gitpod-dev-com bot Sep 28, 2022
@gitpod-io gitpod-io deleted a comment from werft-gitpod-dev-com bot Sep 28, 2022
@felladrin felladrin force-pushed the vn/jetbrains-backend-plugin-223 branch from eb11a75 to 1c546fb Compare September 28, 2022 09:35
@felladrin
Copy link
Contributor Author

Closed in favor of #13400, which is based on a previous commit and should have the Preview Environment working properly.

@felladrin felladrin closed this Sep 28, 2022
@felladrin felladrin deleted the vn/jetbrains-backend-plugin-223 branch September 28, 2022 10:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants