intellij-plugin

PolicyDefinition result return empty collection using Java SDK of TFS 2015 “tp.getCheckinPolicies()” or “vcc.getCheckinPoliciesForServerPaths()”

我是研究僧i 提交于 2019-12-11 07:35:23
问题 Does anyone tried to retrieve PolicyDefinition using Java SDK of TFS 2015? I have used following code to retrieve the PolicyDefinition under intelliJ Plugin. Code execute fine but I am getting empty collection of PolicyDefinition. I am working on CustomPath Policy and I know on particular team project customPath Policy is applied. Before allowing user checkin I want to validate that weather this policy is applied or not. Sample Code: Project myProject = policyContext.getProject(); //

IntelliJ IDEA Plugin dev library missing GSON

强颜欢笑 提交于 2019-12-11 07:33:46
问题 I'm building my old IntelliJ IDEA Plugin using new IDEA version (2017.3), and it gives warning: Warning:Kotlin: Classpath entry points to a non-existent location: /home/ice1000/IDE/idea-IC-172.3544.35/lib/gson-2.5.jar And errors: Error:(4, 19) Kotlin: Unresolved reference: gson Error:(29, 22) Kotlin: Unresolved reference: Gson Error:(48, 24) Kotlin: Unresolved reference: Gson Seems that the GSON library is removed, but my plugin is running finely in the new version. But I can't build my

How do I detect Intellij or Android stdio file modifications 'real' realtime?

不打扰是莪最后的温柔 提交于 2019-12-11 07:32:51
问题 I am writing a plugin for intellij idea. How do I detect Intellij or Android stdio file modifications realtime? Solution 1: BulkFileListener But it works after pressing Ctrl+S . When a character was added or deleted without ctrl+s, it cannot report this event. Solution 2: TypedActionHandler But it only works for adding characters. When a character or a line was deleted, it cannot report this event. The above two are not what I want. Any other advices? 回答1: To get notifications about changes

How to enable gradle in an IntelliJ-plugin project

妖精的绣舞 提交于 2019-12-10 15:46:03
问题 When you create an IntelliJ 13 plugin project you can't also choose to make it a Gradle project. How do you start a plugin development project that is backed by Gradle? 回答1: The current version of IntelliJ, 13.1.2, only supports Gradle-integration up to version 1.10. Configure this version of Gradle as your project's gradle home. Now start by creating a build.gradle file in your project root. If you try to run the gradle build in IntelliJ now you will get the message: "Error running build:

How can I perform the searches Java IDEs do for method references programmatically? [closed]

本秂侑毒 提交于 2019-12-08 16:53:50
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 5 months ago . You know the find all references feature of eclipse (Search > References > Workspace or Ctrl-Shift-G)? How can I run that programmatically? I have a large codebase that I need to audit for security violations and need to chain about a dozen conditions. Are there libraries out there that can analyze large

The difference between QAPlug-CheckStyle and CheckStyle-IDEA

不想你离开。 提交于 2019-12-07 19:44:21
问题 Found a similar question about the difference between QAPlug-FindBugs and FindBugs-IDEA, but not about CheckStyle... I think (from previous experience) with these plug-ins that one difference is that the QAPlug's CheckStyle version seems to be behind the CheckStyle-IDEA's CheckStyle version (I'm not referring to the versions of the plug-ins, but of the version of CheckStyle that's embedded in them). Anyone knows of any other differences between those? 回答1: Advantages of CheckStyle-IDEA over

Intellij Completion Contributor

[亡魂溺海] 提交于 2019-12-06 23:30:50
问题 I am developing a plugin for intellij and I want to add custom suggestions to xml editor based on a xsd. Up to now I can get required suggestions from xsd file. I have implemented a completion contributor for xml as follows import com.intellij.codeInsight.completion.*; import com.intellij.codeInsight.lookup.LookupElementBuilder; import com.intellij.patterns.PlatformPatterns; import com.intellij.psi.xml.XmlElementType; import com.intellij.util.ProcessingContext; import com.intellij.lang.xml.*;

Extremely slow in autocompletion & code analysis for Kotlin projects in Intellij IDEA

我是研究僧i 提交于 2019-12-06 23:15:35
问题 We have a project on IDEA that consists of a couple med sized Java packages and one very small Kotlin package (5 files). I noticed performance is fine with any Java packages, but it's 10x slower in autocompletion, code analysis and compilation for the very small Kotlin package. Autocompletion occasionally was so slow to a point where the popover couldn't load all the methods and it had to load a couple API incrementally. Every time our developer types a word and wait for autocomplete, it

The difference between QAPlug-CheckStyle and CheckStyle-IDEA

跟風遠走 提交于 2019-12-06 08:16:09
Found a similar question about the difference between QAPlug-FindBugs and FindBugs-IDEA, but not about CheckStyle... I think (from previous experience) with these plug-ins that one difference is that the QAPlug's CheckStyle version seems to be behind the CheckStyle-IDEA's CheckStyle version (I'm not referring to the versions of the plug-ins, but of the version of CheckStyle that's embedded in them). Anyone knows of any other differences between those? Advantages of CheckStyle-IDEA over QAPlug – Checkstyle: Newer version of Checkstyle used Community on GitHub Fast scan before commit Support for

Extremely slow in autocompletion & code analysis for Kotlin projects in Intellij IDEA

半城伤御伤魂 提交于 2019-12-05 03:28:17
We have a project on IDEA that consists of a couple med sized Java packages and one very small Kotlin package (5 files). I noticed performance is fine with any Java packages, but it's 10x slower in autocompletion, code analysis and compilation for the very small Kotlin package. Autocompletion occasionally was so slow to a point where the popover couldn't load all the methods and it had to load a couple API incrementally. Every time our developer types a word and wait for autocomplete, it takes about 2-5 seconds for the expected autocomplete to show up. Sometimes autocomplete was too slow to