OpenLiberty / liberty-tools-intellij

IntelliJ IDEA extension for Liberty
https://plugins.jetbrains.com/plugin/14856-open-liberty-tools
Eclipse Public License 2.0
13 stars 26 forks source link

IntelliJ 2024.2: Investigate on new change in remote robot #885

Open aparnamichael opened 3 months ago

aparnamichael commented 3 months ago

image

Link to Slack message: https://jetbrains-platform.slack.com/archives/C05C80200LS/p1721452692806359

TrevCraw commented 3 months ago

~Part of the investigation should involve looking into what 1.x refers to and understanding if we need to move on from it.~

For understanding on what 1.x is, refer to https://github.com/OpenLiberty/liberty-tools-intellij/issues/911

vaisakhkannan commented 2 months ago

@aparnamichael, I identified that 1.x refers to the Gradle IntelliJ version here, and we want to migrate to the IntelliJ Platform Gradle Plugin 2.x as part of upgrading toIntelliJ version 2024.2. After migrating to2.x, we should update runIdeForUiTests accordingly as mentioned this way https://plugins.jetbrains.com/docs/intellij/tools-intellij-platform-gradle-plugin-migration.html#runideforuitests

vaisakhkannan commented 1 week ago

@TrevCraw ,Below is the code block that we require for running the runIdeForUiTests task.

intellijPlatformTesting.runIde {
    runIdeForUiTests {
        task {
            jvmArgumentProviders.add({
                [
                        "-Drobot-server.port=8082",
                        "-Dide.mac.message.dialogs.as.sheets=false",
                        "-Djb.privacy.policy.text=<!--999.999-->",
                        "-Djb.consents.confirmation.enabled=false",
                        "-Didea.trust.all.projects=true",
                        "-Dide.show.tips.on.startup.default.value=false",
                        "-Dide.mac.file.chooser.native=false",
                        "-DjbScreenMenuBar.enabled=false",
                        "-Dapple.laf.useScreenMenuBar=false",
                ]
            } as CommandLineArgumentProvider)
        }
        plugins {
            robotServerPlugin(remoteRobotVersion)
        }
    }
}

I can open PR for this soon,

Just parked this issue now

vaisakhkannan commented 4 days ago

Check the build that enabled runIdeForUiTests Task : https://github.com/vaisakhkannan/liberty-tools-intellij/actions/runs/11741958620 Branch : https://github.com/vaisakhkannan/liberty-tools-intellij/tree/refs/heads/%23885-Enable-runIdeForUiTests-task