JetBrains / intellij-platform-gradle-plugin

Gradle plugin for building plugins for IntelliJ-based IDEs
https://plugins.jetbrains.com/docs/intellij/gradle-prerequisites.html
Apache License 2.0
1.43k stars 272 forks source link

When using a 2021 EAP version of IntelliJ, `runIde` does not use JBR #598

Closed vjpr closed 3 years ago

vjpr commented 3 years ago
2021-02-12 19:35:06,994 [  22165]   WARN - #com.intellij.ui.jcef.JBCefApp - JCEF runtime library is not a JBR module (Use JBR bundled with the IDE) 

build.gradle.kts

repositories {
  mavenCentral()
  jcenter()
  maven("https://www.jetbrains.com/intellij-repository/snapshots/") // <--- added
}

gradle.properties

platformVersion = 211.5787-EAP-CANDIDATE-SNAPSHOT

Is this the right way to test against and EAP version?

Do I need to change my Project SDK to use the latest IntelliJ Platform SDK 211....

zolotov commented 3 years ago

please attach entire build.gradle and ./gradlew :runIde --info output

maven("https://www.jetbrains.com/intellij-repository/snapshots/") // <--- added

I don't understand the intention of this code. Any details?

L2jLiga commented 3 years ago

From my end, I had same error on 0.7.1 and it's gone on 0.7.2

zolotov commented 3 years ago

@L2jLiga thanks

I think we fixed that by using another url for JBR. @vjpr please ping me here if it's still the issue for you in 0.7.2

henryju commented 3 years ago

Hi @zolotov

I think I'm still affected by the same error:

> Task :runIde
Starting process 'command '/home/julien/.gradle/caches/modules-2/files-2.1/com.jetbrains/jbre/jbr-11_0_7-linux-x64-b765.64/jbr/bin/java''. Working directory: /tmp/1620396068626-0 Command: /home/julien/.gradle/caches/modules-2/files-2.1/com.jetbrains/jbre/jbr-11_0_7-linux-x64-b765.64/jbr/bin/java -cp . JavaProbe
Successfully started process 'command '/home/julien/.gradle/caches/modules-2/files-2.1/com.jetbrains/jbre/jbr-11_0_7-linux-x64-b765.64/jbr/bin/java''
Caching disabled for task ':runIde' because:
  Build cache is disabled
Task ':runIde' is not up-to-date because:
  Task.upToDateWhen is false.
Starting process 'command '/home/julien/.gradle/caches/modules-2/files-2.1/com.jetbrains/jbre/jbr-11_0_7-linux-x64-b765.64/jbr/bin/java''. Working directory: /home/julien/.gradle/caches/modules-2/files-2.1/com.jetbrains.intellij.idea/ideaIC/2021.1/a810cecccb23abd2dbe737c1353af97b9a2ecb7f/ideaIC-2021.1/bin Command: /home/julien/.gradle/caches/modules-2/files-2.1/com.jetbrains/jbre/jbr-11_0_7-linux-x64-b765.64/jbr/bin/java -Didea.classpath.index.enabled=false -Didea.config.path=/home/julien/Prog/Projects/sonar-intellij/build/idea-sandbox/config -Didea.is.internal=true -Didea.platform.prefix=Idea -Didea.plugins.path=/home/julien/Prog/Projects/sonar-intellij/build/idea-sandbox/plugins -Didea.required.plugins.id=org.sonarlint.idea -Didea.system.path=/home/julien/Prog/Projects/sonar-intellij/build/idea-sandbox/system -Dsonarlint.telemetry.disabled=true -Dsun.awt.disablegrab=true -agentlib:jdwp=transport=dt_socket,server=n,suspend=y,address=127.0.0.1:34055 -Xms256m -Xmx512m -Dfile.encoding=UTF-8 -Duser.country=FR -Duser.language=fr -Duser.variant -ea -cp /home/julien/.gradle/caches/modules-2/files-2.1/com.jetbrains.intellij.idea/ideaIC/2021.1/a810cecccb23abd2dbe737c1353af97b9a2ecb7f/ideaIC-2021.1/lib/bootstrap.jar:/home/julien/.gradle/caches/modules-2/files-2.1/com.jetbrains.intellij.idea/ideaIC/2021.1/a810cecccb23abd2dbe737c1353af97b9a2ecb7f/ideaIC-2021.1/lib/util.jar:/home/julien/.gradle/caches/modules-2/files-2.1/com.jetbrains.intellij.idea/ideaIC/2021.1/a810cecccb23abd2dbe737c1353af97b9a2ecb7f/ideaIC-2021.1/lib/jdom.jar:/home/julien/.gradle/caches/modules-2/files-2.1/com.jetbrains.intellij.idea/ideaIC/2021.1/a810cecccb23abd2dbe737c1353af97b9a2ecb7f/ideaIC-2021.1/lib/log4j.jar:/home/julien/.gradle/caches/modules-2/files-2.1/com.jetbrains.intellij.idea/ideaIC/2021.1/a810cecccb23abd2dbe737c1353af97b9a2ecb7f/ideaIC-2021.1/lib/jna.jar com.intellij.idea.Main
Successfully started process 'command '/home/julien/.gradle/caches/modules-2/files-2.1/com.jetbrains/jbre/jbr-11_0_7-linux-x64-b765.64/jbr/bin/java''
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by com.intellij.util.ui.StartupUiUtil to constructor com.sun.java.swing.plaf.gtk.GTKLookAndFeel()
WARNING: Please consider reporting this to the maintainers of com.intellij.util.ui.StartupUiUtil
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release
2021-05-07 16:01:12,385 [   2682]   WARN - j.internal.DebugAttachDetector - Unable to start DebugAttachDetector, please add `--add-exports java.base/jdk.internal.vm=ALL-UNNAMED` to VM options 
2021-05-07 16:01:12,397 [   2694]   WARN - tor.impl.FontFamilyServiceImpl - Couldn't access required runtime API, will fall back to basic logic of font selection 
2021-05-07 16:01:17,352 [   7649]   WARN - #com.intellij.ui.jcef.JBCefApp - JCEF runtime library is not a JBR module (Use JBR bundled with the IDE)

Using 0.7.3