Rider: solutionExplorerCustomization no longer supported

Answered

It seems that the extension point “com.intellij.solutionExplorerCustomization” is not recognized in Rider 2024.3 and possibly on earlier versions.

What should we use instead? Or is solution explorer no longer customisable?

 

0
10 comments

Hi,

The EP is still available.

Please describe your problem in more detail. Is it a problem only at runtime? Did you change your build setup?

0

The import

import com.jetbrains.rider.projectView.views.solutionExplorer.SolutionExplorerCustomization;

 

Fails:

Cannot resolve symbol solutionExplorer'

 

The file plugin.xml shows the error:

Cannot resolve extension point 'com. intellij. solutionExplorerCustomization' in dependencies (Reference: Plugin Dependencies)

 

Relevant parts of my build.gradle:

 

buildscript {
    repositories {
        maven { url 'https://cache-redirector.jetbrains.com/intellij-repository/snapshots' }
        mavenCentral()
    }

    dependencies {
        classpath("com.jetbrains.rd:rd-gen:2024.3.1") // https://search.maven.org/artifact/com.jetbrains.rd/rd-gen
    }
}

plugins {
    id 'java'
    id 'org.jetbrains.kotlin.jvm' version '1.9.22'
    id 'org.jetbrains.intellij' version '1.17.4'     // https://github.com/JetBrains/gradle-intellij-plugin/releases
    id 'me.filippov.gradle.jvm.wrapper' version '0.14.0'
}

 

// …

intellij {
    type = 'RD'
    version = "2024.3"
    downloadSources = true
}

0

I see, thank you.

Could you please advise me on how to update the build.gradle?

I updated the plugins part:

plugins {
    id 'java'
    id 'org.jetbrains.kotlin.jvm' version '1.9.22'
    id 'org.jetbrains.intellij.platform' version '2.2.0'
    id 'me.filippov.gradle.jvm.wrapper' version '0.14.0'
}

But I couldn't figure what to set in the intellijPlatform config:

dependencies {
    intellijPlatform {
        rider('2024.3')
    }
}

Which fails with

Could not determine the dependencies of task ':runIde'.
> Failed to query the value of task ':runIde' property 'runtimeDirectory'.
  > No IntelliJ Platform dependency found.
    Please ensure there is a single IntelliJ Platform dependency defined in your project and that the necessary repositories, where it can be located, are added.
    See: https://plugins.jetbrains.com/docs/intellij/tools-intellij-platform-gradle-plugin-dependencies-extension.html

Thank you

0

Please share your full Gradle build script (including gradle.properties and settings.gradle).

0

My build.gradle

import org.jetbrains.kotlin.gradle.dsl.JvmTarget
import org.jetbrains.kotlin.gradle.tasks.KotlinJvmCompile

buildscript {
   repositories {
       maven { url 'https://cache-redirector.jetbrains.com/intellij-repository/snapshots' }
       mavenCentral()
   }

   dependencies {
       classpath("com.jetbrains.rd:rd-gen:2024.3.1") // https://search.maven.org/artifact/com.jetbrains.rd/rd-gen
   }
}

plugins {
   id 'java'
   id 'org.jetbrains.kotlin.jvm' version '1.9.22'
   id 'org.jetbrains.intellij.platform' version '2.2.0'
   id 'me.filippov.gradle.jvm.wrapper' version '0.14.0'
}

repositories {
   maven { url 'https://cache-redirector.jetbrains.com/intellij-repository/snapshots' }
   maven { url 'https://cache-redirector.jetbrains.com/maven-central' }
}

group 'com.reallyliri.plugins'
version '1.7'

java {
   sourceCompatibility = JavaVersion.VERSION_21
   targetCompatibility = JavaVersion.VERSION_21
   toolchain {
       languageVersion.set(JavaLanguageVersion.of(21))
   }
}

tasks.withType(KotlinJvmCompile).configureEach {
   compilerOptions {
       jvmTarget.set(JvmTarget.JVM_21)
   }
}

dependencies {
   intellijPlatform {
       rider('2024.3')
   }
}

publishPlugin {
   token = System.getenv("ORG_GRADLE_PROJECT_intellijPublishToken")
}

0

It seems that your build script is missing the intellijPlatform artifacts repository:

repositories {
  mavenCentral()

  intellijPlatform {
    defaultRepositories()
  }
}

For more details, see https://plugins.jetbrains.com/docs/intellij/tools-intellij-platform-gradle-plugin-repositories-extension.html.

0

Thank you, this worked

0

Well the build worked, but plugin verification failed with the following. Can you please advise?

Internal url: https://plugins.jetbrains.com/plugin/13185-interface-pairing/edit/versions/stable/658492#verification-results

Rider 2024.3.31 compatibility problem (V1.381) (Restart)

1 compatibility problem

Interface Pairing 1.7 is binary incompatible with Rider RD-243.22562.250 due to the following problem

Package not found (1 problem)

Package 'com.jetbrains.rider.projectView.views.solutionExplorer' is not found (1 problem)

Package 'com.jetbrains.rider.projectView.views.solutionExplorer' is not found along with its class SolutionExplorerCustomization.

Probably the package 'com.jetbrains.rider.projectView.views.solutionExplorer' belongs to a library or dependency that is not resolved by the checker.

It is also possible, however, that this package was actually removed from a dependency causing the detected problems. Access to unresolved classes at runtime may lead to NoSuchClassError.

The following classes of 'com.jetbrains.rider.projectView.views.solutionExplorer' are not resolved:

Class SolutionExplorerCustomization is referenced in

InterfacePairingSolutionExplorerCustomization

InterfacePairingSolutionExplorerCustomization.<init>(...)

InterfacePairingSolutionExplorerCustomization.getChildren(...)

0

Hello,
this is an issue with Plugin Verifier, especially with handling of Rider components. Please treat it as a false positive for now. This issue is already under investigation.

0

Please sign in to leave a comment.