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

Add CLion SDK support #342

Closed
amakeev opened this issue Dec 17, 2018 · 5 comments · Fixed by #343
Closed

Add CLion SDK support #342

amakeev opened this issue Dec 17, 2018 · 5 comments · Fixed by #343
Assignees

Comments

@amakeev
Copy link
Member

amakeev commented Dec 17, 2018

Support CLion SDK as IDE distribution type.
See also https://youtrack.jetbrains.com/issue/CPP-14770

amakeev added a commit to amakeev/gradle-intellij-plugin that referenced this issue Dec 17, 2018
@zolotov
Copy link
Member

zolotov commented Dec 18, 2018

Form compilation and null instrumentation are not supported yet. Reopening for now

@zolotov zolotov reopened this Dec 18, 2018
@zolotov zolotov self-assigned this Dec 18, 2018
@ilwsm
Copy link

ilwsm commented Feb 18, 2019

How develop plugin for clion now?
What instrumentation can use?

@zolotov
Copy link
Member

zolotov commented Feb 19, 2019

@ilwsm
Copy link

ilwsm commented Feb 20, 2019

buildscript {
    repositories {
        mavenCentral()
        maven {
            url "https://oss.sonatype.org/content/repositories/snapshots/"
        }
        maven {
            url 'http://dl.bintray.com/jetbrains/intellij-plugin-service'
        }

    }
    dependencies {

    }
}


plugins {
    id 'idea'
    id 'java'
    id 'org.jetbrains.intellij' version '0.4.3'
}

group 'org.kinocat'
version '1.0-SNAPSHOT'

sourceCompatibility = 1.8

intellij {
    sandboxDirectory = "C:/Users/Andrey/.CLion2019.1"
    pluginName 'test_name'
    localPath 'F:/Run/Lprogr/JetBrains/CLion_2019/'
    alternativeIdePath 'F:/Run/Lprogr/JetBrains/CLion_2019/'
    downloadSources false
    type 'CL'
    
}

Here my build.gradle - only one !
My Clion version:
CLion 2019.1 EAP
Build #CL-191.5532.20, built on February 13, 2019

After task verifyPlugin i have next errors:

21:37:54: Executing task 'verifyPlugin'...

> Task :compileJava
> Task :patchPluginXml
> Task :processResources
> Task :classes
> Task :instrumentCode FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':instrumentCode'.
> Could not resolve all files for configuration ':detachedConfiguration1'.
   > Could not find com.jetbrains.intellij.java:java-compiler-ant-tasks:LATEST-EAP-SNAPSHOT.
     Searched in the following locations:
       - file:/F:/Run/Lprogr/JetBrains/CLion_2019/com.jetbrains.intellij.java/java-compiler-ant-tasks/LATEST-EAP-SNAPSHOT/ivy-LATEST-EAP-SNAPSHOT.xml
       - file:/F:/Run/Lprogr/JetBrains/CLion_2019/java-compiler-ant-tasks-LATEST-EAP-SNAPSHOT-withKotlin.xml
       - file:/F:/Run/Lprogr/JetBrains/CLion_2019/com.jetbrains.intellij.java/java-compiler-ant-tasks/LATEST-EAP-SNAPSHOT/java-compiler-ant-tasks-LATEST-EAP-SNAPSHOT.jar
       - file:/F:/Run/Lprogr/JetBrains/CLion_2019/java-compiler-ant-tasks.jar
       - https://cache-redirector.jetbrains.com/plugins.jetbrains.com/maven/com/jetbrains/intellij/java/java-compiler-ant-tasks/LATEST-EAP-SNAPSHOT/maven-metadata.xml
       - https://cache-redirector.jetbrains.com/plugins.jetbrains.com/maven/com/jetbrains/intellij/java/java-compiler-ant-tasks/LATEST-EAP-SNAPSHOT/java-compiler-ant-tasks-LATEST-EAP-SNAPSHOT.pom
       - https://cache-redirector.jetbrains.com/plugins.jetbrains.com/maven/com/jetbrains/intellij/java/java-compiler-ant-tasks/LATEST-EAP-SNAPSHOT/java-compiler-ant-tasks-LATEST-EAP-SNAPSHOT.jar
       - https://cache-redirector.jetbrains.com/jetbrains.bintray.com/intellij-third-party-dependencies/com/jetbrains/intellij/java/java-compiler-ant-tasks/LATEST-EAP-SNAPSHOT/maven-metadata.xml
       - https://cache-redirector.jetbrains.com/jetbrains.bintray.com/intellij-third-party-dependencies/com/jetbrains/intellij/java/java-compiler-ant-tasks/LATEST-EAP-SNAPSHOT/java-compiler-ant-tasks-LATEST-EAP-SNAPSHOT.pom
       - https://cache-redirector.jetbrains.com/jetbrains.bintray.com/intellij-third-party-dependencies/com/jetbrains/intellij/java/java-compiler-ant-tasks/LATEST-EAP-SNAPSHOT/java-compiler-ant-tasks-LATEST-EAP-SNAPSHOT.jar
       - https://cache-redirector.jetbrains.com/repo1.maven.org/maven2/com/jetbrains/intellij/java/java-compiler-ant-tasks/LATEST-EAP-SNAPSHOT/maven-metadata.xml
       - https://cache-redirector.jetbrains.com/repo1.maven.org/maven2/com/jetbrains/intellij/java/java-compiler-ant-tasks/LATEST-EAP-SNAPSHOT/java-compiler-ant-tasks-LATEST-EAP-SNAPSHOT.pom
       - https://cache-redirector.jetbrains.com/repo1.maven.org/maven2/com/jetbrains/intellij/java/java-compiler-ant-tasks/LATEST-EAP-SNAPSHOT/java-compiler-ant-tasks-LATEST-EAP-SNAPSHOT.jar
     Required by:
         project :

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

* Get more help at https://help.gradle.org

BUILD FAILED in 1m 33s
4 actionable tasks: 4 executed
Could not find com.jetbrains.intellij.java:java-compiler-ant-tasks:LATEST-EAP-SNAPSHOT.
Searched in the following locations:
  - file:/F:/Run/Lprogr/JetBrains/CLion_2019/com.jetbrains.intellij.java/java-compiler-ant-tasks/LATEST-EAP-SNAPSHOT/ivy-LATEST-EAP-SNAPSHOT.xml
  - file:/F:/Run/Lprogr/JetBrains/CLion_2019/java-compiler-ant-tasks-LATEST-EAP-SNAPSHOT-withKotlin.xml
  - file:/F:/Run/Lprogr/JetBrains/CLion_2019/com.jetbrains.intellij.java/java-compiler-ant-tasks/LATEST-EAP-SNAPSHOT/java-compiler-ant-tasks-LATEST-EAP-SNAPSHOT.jar
  - file:/F:/Run/Lprogr/JetBrains/CLion_2019/java-compiler-ant-tasks.jar
  - https://cache-redirector.jetbrains.com/plugins.jetbrains.com/maven/com/jetbrains/intellij/java/java-compiler-ant-tasks/LATEST-EAP-SNAPSHOT/maven-metadata.xml
  - https://cache-redirector.jetbrains.com/plugins.jetbrains.com/maven/com/jetbrains/intellij/java/java-compiler-ant-tasks/LATEST-EAP-SNAPSHOT/java-compiler-ant-tasks-LATEST-EAP-SNAPSHOT.pom
  - https://cache-redirector.jetbrains.com/plugins.jetbrains.com/maven/com/jetbrains/intellij/java/java-compiler-ant-tasks/LATEST-EAP-SNAPSHOT/java-compiler-ant-tasks-LATEST-EAP-SNAPSHOT.jar
  - https://cache-redirector.jetbrains.com/jetbrains.bintray.com/intellij-third-party-dependencies/com/jetbrains/intellij/java/java-compiler-ant-tasks/LATEST-EAP-SNAPSHOT/maven-metadata.xml
  - https://cache-redirector.jetbrains.com/jetbrains.bintray.com/intellij-third-party-dependencies/com/jetbrains/intellij/java/java-compiler-ant-tasks/LATEST-EAP-SNAPSHOT/java-compiler-ant-tasks-LATEST-EAP-SNAPSHOT.pom
  - https://cache-redirector.jetbrains.com/jetbrains.bintray.com/intellij-third-party-dependencies/com/jetbrains/intellij/java/java-compiler-ant-tasks/LATEST-EAP-SNAPSHOT/java-compiler-ant-tasks-LATEST-EAP-SNAPSHOT.jar
  - https://cache-redirector.jetbrains.com/repo1.maven.org/maven2/com/jetbrains/intellij/java/java-compiler-ant-tasks/LATEST-EAP-SNAPSHOT/maven-metadata.xml
  - https://cache-redirector.jetbrains.com/repo1.maven.org/maven2/com/jetbrains/intellij/java/java-compiler-ant-tasks/LATEST-EAP-SNAPSHOT/java-compiler-ant-tasks-LATEST-EAP-SNAPSHOT.pom
  - https://cache-redirector.jetbrains.com/repo1.maven.org/maven2/com/jetbrains/intellij/java/java-compiler-ant-tasks/LATEST-EAP-SNAPSHOT/java-compiler-ant-tasks-LATEST-EAP-SNAPSHOT.jar
Required by:
    project :
21:39:28: Task execution finished 'verifyPlugin'.

What wrong?
I do not want to download extra sources and distributions, cluttering up my home folder. I want to use the already existing programming environment.

@zolotov
Copy link
Member

zolotov commented Feb 21, 2019

@GoodAndrewSoft as a workaround, put version 'CL-191.5532-EAP-CANDIDATE-SNAPSHOT' nearby localPath property or use this version in compilerVersion, see https://github.com/jetbrains/gradle-intellij-plugin#instrumenting-dsl

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

Successfully merging a pull request may close this issue.

3 participants