Missing Language and Psi Dependencies



I'm trying to create a plugin for a test framework i created for CLION and when following the docs ran into some issues with dependencies I'm missing on my end. This was the tutorial - https://plugins.jetbrains.com/docs/intellij/line-marker-provider.html . Below is a snippet from my plugin.xml. As of now it runs on every file but i only want the RunLineMarkr to run on files written in CPP (.cpp, .tpp, and .h files) . I tried putting in "JAVA" as the language as the tutorial instructed (just as a quick test) and it was not able to resolve that value with the default project setup. 

<extensions defaultExtensionNs="com.intellij">
<runLineMarkerContributor language="" implementationClass="BenchmarkrRunLineMarkerContributor"/>

A few of the options i have to choose from are TEXT, HTML, DTD, JSON, and XML.


Below is a snippet from my build.gradle with all the plugins & dependencies I've tried adding to my project as of now, none of them have allowed me to resolve "JAVA" as a language (which is expected i guess because i just added clion/c++ dependencies) but I haven't been able to find / resolve options for  C++ type files either (which is more important in my case). 

dependencies {
testImplementation 'org.junit.jupiter:junit-jupiter-api:5.7.0'
testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.7.0'

// See https://github.com/JetBrains/gradle-intellij-plugin/
intellij {
version = '2021.2.2'
type = 'CL'
plugins = [

Is there a package / plugin i need to add to get access / options to other language types?


The other tokens I'm not able to resolve is PsiMethod or PsiIdentifier . What dependency / plugin do i need to add to get access to those classes?




1 comment
Comment actions Permalink

PsiMethod or PsiIdentifier

both of these PSI Classes are specific to Java functionality, which is not listed in required dependencies for your plugin

Please make sure you're using the latest gradle-intellij-plugin version (1.2.1).

What is "clion-ctest" dependency and the other, non-qualified plugin IDs?


Please sign in to leave a comment.