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

buildSearchableOptions fails on MacOS #696

Closed
DreierF opened this issue Jun 13, 2021 · 0 comments
Closed

buildSearchableOptions fails on MacOS #696

DreierF opened this issue Jun 13, 2021 · 0 comments
Assignees
Milestone

Comments

@DreierF
Copy link
Contributor

DreierF commented Jun 13, 2021

Running the buildSearchableOptions task on MacOS fails with the following error message on 1.0

Execution failed for task ':myProject:buildSearchableOptions'.
> Failed to query the value of task ':myProject:buildSearchableOptions' property 'projectExecutable'.
   > Array contains no element matching the predicate.

It fails here:
https://github.com/JetBrains/gradle-intellij-plugin/blob/55443b8651ad436eff70d6b3907cfd24f57e4f9c/src/main/kotlin/org/jetbrains/intellij/jbr/JbrResolver.kt#L101

AFAICS this should be

        val jbr = javaHome.listFiles()?.firstOrNull { it.name == "jbr" || it.name == "jbrsdk" }

instead as the following code explicitly handles the null case for MacOS.

DreierF added a commit to DreierF/gradle-intellij-plugin that referenced this issue Jun 13, 2021
@DreierF DreierF mentioned this issue Jun 13, 2021
@hsz hsz added this to the 1.0.1 milestone Jun 16, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants