Cannot find builtin plugin JavaScriptLanguage

已回答

Our plugin build fails for EAP with:

> Could not resolve all dependencies for configuration ':codota:testRuntimeClasspath'.
> A problem occurred configuring project ':java'.
> Could not resolve all dependencies for configuration ':java:testRuntimeClasspath'.
> A problem occurred configuring project ':common'.
> Cannot find builtin plugin JavaScriptLanguage for IDE: /Users/shaia/.gradle/caches/modules-2/files-2.1/com.jetbrains.intellij.idea/ideaIU/LATEST-EAP-SNAPSHOT/c6b538d339ff53c81e89cc770f72504b1cd31c7e/ideaIU-LATEST-EAP-SNAPSHOT

Was this plugin moved or renamed?

Thanks

Shai

1

I also have this problem when I use new version IU-212.3116-EAP-CANDIDATE-SNAPSHOT.

0

### Prompt not found JavaScriptLanguage

1. Add `<depends>JavaScript</depends>` in the plugin configuration file `:/META-INF/plugin.xml`
![1622172862262](resources/522a63fdbf8246e497d8e156f8ad7008.png)
2. Add the plugin `JavaScript` in `build.gradle.kts`
3. Add the local jar package in _SDK| IntelliJ IDEA IU_

 

 

0
Avatar
Permanently deleted user

Hi Rxliuli

I already have an optional dependency on javascript in my plugin.xml.

In my gradle,properties file I have:

intellij {
version ideVersion
type 'IU'

if (isMoreRecent(intellij.version, '2020.2.4')) {
plugins 'JavaScriptLanguage', 'CSS', 'java', 'completionMlRanking'
} else if (isMoreRecent(intellij.version, '2019.2')) {
plugins 'JavaScriptLanguage', 'CSS', 'java', 'stats-collector'
} else {
plugins 'JavaScriptLanguage', 'CSS'
}
}

I tried changing 'JavaScriptLanguage' into 'JavaScript' but then it failed on account of not finding a JavaScript plugin.

This works fine when building with 2021.1 and also worked fine with latest EAP until recently (not sure exactly when this stopped working).

0
Avatar
Permanently deleted user

That sounds related but I'm not sure what to make of it.

0
Avatar
Permanently deleted user

People in the JB dev slack channel seem to suggest to just not build with EAP for now:

https://jetbrains-platform.slack.com/archives/C5U8BM1MK/p1622372725206500

0

why the temporarily remove this javascript? when they will fix it before publish official 2021.2?

0

It is not removed, it cannot be resolved in current 2021.2 EAP builds by our tooling due to internal/packaging changes.

0

Is it means the JavaScriptLanguage plugin will be available in 2021.2 GA release?

0

Simon Jiang Yes, it is a temporary problem we'll solve ASAP.

0

Hi, 

I wanted to ask if the problem is fixed by now. Because i get the same error message regarding JavaScriptLangauge plugin and i wanted to check if this error is new or the already known one. 

 

0

My build.gradle has following configuration: 

intellij {
version '2021.2.2'//
type 'IU'
plugins = ['JavaScriptLanguage', 'com.intellij.java', 'com.jetbrains.php:212.5284.44'] //212.5284.44211.7628.21
}

and as soon as i try to build i get the following error:
Cannot find builtin plugin JavaScriptLanguage for IDE: path/ideaIU-2021.2.2

0

The information is not complete. What version of gradle-intellij plugin are you using?

0

i am using Gradle plugin 211.7628.21

0

I mean the gradle-intellij-plugin defined in your build file.

0
plugins {
id 'java'
id 'org.jetbrains.intellij' version '0.7.3'
}

group ''
version '1.01'

repositories {
mavenCentral()
}

dependencies {
testImplementation 'org.junit.jupiter:junit-jupiter-api:5.6.0'
testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine'
implementation group: 'com.googlecode.json-simple', name: 'json-simple', version: '1.1.1'
}

// Ultimate kompatibel
intellij {
version '2021.2.2'//
type 'IU'
plugins = ['JavaScriptLanguage', 'com.intellij.java', 'com.jetbrains.php:212.5284.44'] //212.5284.44211.7628.21
}


This is my entire build.gradle file 

0

As indicated in the link I gave previously, this is fixed in 1.1.x version, but you're still using very outdated 0.7.3

0

Hi Yann Cebron

 

[update] : issue solved when I switch type(IC) -> type(IU) , cause the IC do not have the buildin-plugin JavaScript

--------------------------------------------------------------------------------------

My IDEA version is IntelliJ IDEA 2022.1.3 (Ultimate Edition),  I also meet this issue :

Cannot find builtin plugin 'JavaScript' for IDE: ~/.gradle/caches/modules-2/files-2.1/com.jetbrains.intellij.idea/ideaIC/2021.2/b0727ceddea2b62b16825db9308e14a470198e7f/ideaIC-2021.2

 

the step how to recurrence the issue:

step 1:

Use Idea's [new project], and new a plugin project

step 2:

<depends>JavaScript</depends> in plugin.xml

<!-- Plugin Configuration File. Read more: https://plugins.jetbrains.com/docs/intellij/plugin-configuration-file.html -->
<idea-plugin>
<!-- Unique identifier of the plugin. It should be FQN. It cannot be changed between the plugin versions. -->
<id>com.example.demo</id>

<!-- Public plugin name should be written in Title Case.
Guidelines: https://plugins.jetbrains.com/docs/marketplace/plugin-overview-page.html#plugin-name -->
<name>Demo</name>

<!-- A displayed Vendor name or Organization ID displayed on the Plugins Page. -->
<vendor email="support@yourcompany.com" url="https://www.yourcompany.com">YourCompany</vendor>

<!-- Description of the plugin displayed on the Plugin Page and IDE Plugin Manager.
Simple HTML elements (text formatting, paragraphs, and lists) can be added inside of <![CDATA[ ]]> tag.
Guidelines: https://plugins.jetbrains.com/docs/marketplace/plugin-overview-page.html#plugin-description -->
<description><![CDATA[
Enter short description for your plugin here.<br>
<em>most HTML tags may be used</em>
]]></description>

<!-- Product and plugin compatibility requirements.
Read more: https://plugins.jetbrains.com/docs/intellij/plugin-compatibility.html -->
<depends>com.intellij.modules.platform</depends>
<depends>JavaScript</depends>

<!-- Extension points defined by the plugin.
Read more: https://plugins.jetbrains.com/docs/intellij/plugin-extension-points.html -->
<extensions defaultExtensionNs="com.intellij">

</extensions>
</idea-plugin>

step 3:

plugins.set(listOf("JavaScript")) in build.gradle.ktx

plugins {
id("java")
id("org.jetbrains.intellij") version "1.5.2"
}

group = "com.example"
version = "1.0-SNAPSHOT"

repositories {
mavenCentral()
}

// Configure Gradle IntelliJ Plugin - read more: https://github.com/JetBrains/gradle-intellij-plugin
intellij {
version.set("2021.2")
type.set("IC") // Target IDE Platform

plugins.set(listOf("JavaScript"))
}

tasks {
// Set the JVM compatibility versions
withType<JavaCompile> {
sourceCompatibility = "11"
targetCompatibility = "11"
}

patchPluginXml {
sinceBuild.set("212")
untilBuild.set("222.*")
}

signPlugin {
certificateChain.set(System.getenv("CERTIFICATE_CHAIN"))
privateKey.set(System.getenv("PRIVATE_KEY"))
password.set(System.getenv("PRIVATE_KEY_PASSWORD"))
}

publishPlugin {
token.set(System.getenv("PUBLISH_TOKEN"))
}
}

 

and this issue happen.....

Cannot find builtin plugin 'JavaScript' for IDE: ~/.gradle/caches/modules-2/files-2.1/com.jetbrains.intellij.idea/ideaIC/2021.2/b0727ceddea2b62b16825db9308e14a470198e7f/ideaIC-2021.2

Any Solution? I just want to develop a JavaScript plugin

 

0

Edit: the solution for me was to use `JavaScript` instead of `JavaScriptLanguange`, I think.

Hi, I'm getting this issue also with newer versions of gradle-intellij-plugin, using IntelliJ IDEA Ultimate. What am I doing wrong here? Here is the code:
https://github.com/t4lz/mirrord/blob/8a299fad70658ec111ef1e95ad15b14ff6e08ec7/intellij-ext/modules/products/webstorm/build.gradle.kts#L23

This is the error:

Could not determine the dependencies of task ':mirrord-products-webstorm:compileKotlin'.
> Could not resolve all dependencies for configuration ':mirrord-products-webstorm:compileClasspath'.
   > Cannot find builtin plugin 'JavaScriptLanguage' for IDE: /Users/username/.gradle/caches/modules-2/files-2.1/com.jetbrains.intellij.idea/ideaIU/2022.3/56e5440ce30b03c913ff231a46cb1ba6ac4df63/ideaIU-2022.3

 

1

Thanks you for the advice and the link. The documentation here https://plugins.jetbrains.com/docs/intellij/webstorm.html#configuring-plugin-projects-targeting-webstorm says `JavaScriptLanguage`, is it outdated?

0

t4lz Thanks a lot for catching this, fixed.

1

请先登录再写评论。