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

Cannot find local JBR for EAP 2022.2 snapshot #1016

Closed
imkiva opened this issue Jun 12, 2022 · 8 comments
Closed

Cannot find local JBR for EAP 2022.2 snapshot #1016

imkiva opened this issue Jun 12, 2022 · 8 comments
Assignees
Labels
Milestone

Comments

@imkiva
Copy link

imkiva commented Jun 12, 2022

Describe the bug

> Task :runIde
[gradle-intellij-plugin :intellij-aya:runIde] Cannot find java executable in: C:\Users\aaaa\.gradle\caches\modules-2\files-2.1\com.jetbrains\jbre\jbr_jcef-17.0.3-windows-x64-b469.3\extracted

But in C:\Users\aaaa\.gradle\caches\modules-2\files-2.1\com.jetbrains\jbre\jbr_jcef-17.0.3-windows-x64-b469.3\extracted

I see

$ ls 
jbr_jcef-17.0.3-x64-b469/
markerFile

But when I ran the same code last week, the JBR was successfully resolved. So I opened the previously downloaded JBR jbr_jcef-17.0.3-windows-x64-b463.3 and I see

$ ls
jbr/
markerFile

If the rename of JBR folder is intended, the problematic code is here I guess (possible a simple .startsWith helps):

https://github.com/JetBrains/gradle-intellij-plugin/blob/5cd564676e72f69979a067888ff229a15976939b/src/main/kotlin/org/jetbrains/intellij/jbr/JbrResolver.kt#L189-L190

To Reproduce
use id("org.jetbrains.intellij") version "1.7.0-SNAPSHOT" in build.gradle.kts and run from IDE

Expected behavior
JBR is found and used to launch Intellij IDEA.

Environment:

  • OS: Windows 10
  • Gradle IntelliJ Plugin Version 1.7.0-SNAPSHOT
  • Gradle Version 7.4.2

EDIT: one simple workaround: rename jbr_jcef-17.0.3... to jbr

@imkiva imkiva added the bug label Jun 12, 2022
@YannCebron YannCebron added this to the next milestone Jun 13, 2022
@shalupov
Copy link
Contributor

Also requested by JetBrains partners to continue plugin development, please fix. JetBrains Runtime changed layout permanently since 2022.2

@felladrin
Copy link

Getting the same error when running ./gradlew buildPlugin using GW 222.3048.1-CUSTOM-SNAPSHOT

> Task :buildSearchableOptions
[gradle-intellij-plugin :jetbrains-gateway-plugin:buildSearchableOptions] Cannot find java executable in: /workspace/.gradle/caches/modules-2/files-2.1/com.jetbrains/jbre/jbr_jcef-17.0.3-linux-x64-b469.12/extracted

Environment:

  • OS: Linux
  • Gradle IntelliJ Plugin Version 1.6.0
  • Gradle Version 7.0.2

As a workaround, we disabled 'buildSearchableOptions' on build.gradle.kts:

tasks {
    buildSearchableOptions {
        isEnabled = false
    }
}

@cassandrus
Copy link

cassandrus commented Jun 17, 2022

I'm experiencing the same error.
Correct layout is not:
...\.gradle\caches\modules-2\files-2.1\com.jetbrains\jbre\jbr_jcef-17.0.3-windows-x64-b469.12\extracted
but
...\.gradle\caches\modules-2\files-2.1\com.jetbrains\jbre\jbr_jcef-17.0.3-windows-x64-b469.12\extracted\jbr_jcef-17.0.3-x64-b469
Please, support new layout.

@imkiva
Copy link
Author

imkiva commented Jun 17, 2022

Hi anyone who encounters this issue, a simple workaround is renaming jbr_jcef-17.0.3... folder to jbr. 😄

@lppedd
Copy link

lppedd commented Jun 18, 2022

For me the proposed workaround isn't working.
I have renamed extracted\jbr_jcef-17.0.3-x64-b469.12 to extracted\jbr
However, I receive

Process 'command 'C:\Users\Edoardo\.gradle\caches\modules-2\files-2.1\com.jetbrains\jbre\jbr_jcef-17.0.3-windows-x64-b469.12\extracted\jbr\bin\java.exe'' finished with non-zero exit value 1

@imkiva
Copy link
Author

imkiva commented Jun 18, 2022

For me the proposed workaround isn't working. I have renamed extracted\jbr_jcef-17.0.3-x64-b469.12 to extracted\jbr However, I receive

Process 'command 'C:\Users\Edoardo\.gradle\caches\modules-2\files-2.1\com.jetbrains\jbre\jbr_jcef-17.0.3-windows-x64-b469.12\extracted\jbr\bin\java.exe'' finished with non-zero exit value 1

Which version of Gradle IntelliJ Plugin are you using? I got the same error in 1.6.0. You can try the snapshot version

ahus1 added a commit to asciidoctor/asciidoctor-intellij-plugin that referenced this issue Jun 23, 2022
@hsz hsz closed this as completed Jul 6, 2022
@hsz
Copy link
Member

hsz commented Jul 8, 2022

Could you folks please verify if the latest snapshot works for you?

@felladrin
Copy link

felladrin commented Jul 8, 2022

Could you folks please verify if the latest snapshot works for you?

Updated org.jetbrains.intellij to 1.7.0 and now it's working!
Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

7 participants