intellij-plugin

Java and Scala ClassNotFoundException after upgrading to IntelliJ 14

雨燕双飞 提交于 2019-12-22 08:01:13
问题 I recently upgraded to IntelliJ 14 , then added Scala support. My main files stopped running. For example the GUI file, which has no errors and is a totally self contained hello world style for testing this error: Exception in thread "main" java.lang.ClassNotFoundException: GUI It makes no sense and I'm pretty frustrated that the IntelliJ devs are slacking in not auto-detecting a solution to this. I have tried everything to fix it. From settings, compilers, to making the project from scratch.

How can I create custom Live Templates with an Intellij plugin

。_饼干妹妹 提交于 2019-12-21 04:25:37
问题 I want to create a custom Live Template that will be available with my plugin. I know how to create custom Live Templates using the Settings dialog, but I want to be able to distribute the Live Template as part of my plugin: How is the Live Template defined within the plugin? Where is the entry point to register it with the application? Thanks. 回答1: using 12.1.5 I was able to accomplish this after looking at the groovy plugin source. Go ahead and create your template using the settings dialog

Create a background task in IntelliJ plugin

五迷三道 提交于 2019-12-20 12:15:12
问题 I'm developing an IntelliJ-idea plugin and want to run code in background task (visible in the background tasks dialog and in another thread than the UI). I found the following Helper class and tried it by passing a Runnable object and implement its run method but it still blocking the UI and when I tried to do the threading myself i got the following error Read access is allowed from event dispatch thread or inside read-action only (see com.intellij.openapi.application.Application

Idea intellij plugin not working in android studio 1.5.1

不想你离开。 提交于 2019-12-20 03:20:11
问题 I'm developing a test plugin for android studio, my plugin works (The actions created are visible ) in Android studio 1.5 when added using "install plugin from disk". But the same jar file is not working in Android studio 1.5.1. Below is the plugin.xml file. Please help. <idea-plugin version="2"> <id>com.test.android.studio.plugin</id> <name>test Android Studio Plugin</name> <version>1.0</version> <vendor email="test@test.com" url="http://www.test.com">test test Services Pvt. Ltd.</vendor>

IntelliJ IDEA plugin development in other JVM languages

夙愿已清 提交于 2019-12-19 19:58:31
问题 Is it possible to use other JVM languages such as Scala and Clojure for developing an IntelliJ IDEA plugin? Or do we have to use Java for this purpose? I could find no pointers on this on web, hence posting the question here. 回答1: Yes, it is entirely possible. Any plugin essentially is a set of extensions for several extension points which IDEA API provides. These extensions are regular java classes implementing predefined interfaces, and these classes are referenced to in the manifest. Also,

Run intellij plugin on Android Studio

雨燕双飞 提交于 2019-12-19 11:25:04
问题 I'm developing an intellij plugin supposed to be used in android studio. I've already setup the plugin development environment, but when I hit "Run" command it starts a new intellij instance with the plugin installed. What I'm looking for is how to run the plugin directly on Android Studio, is that possibile? The only place where I think it can be configured is from "Run configurations" but I do not find anything useful there. Thanks 回答1: You can specify the platform to run on in the IntelliJ

Where is the plugin folder for Android Studio on MAC

强颜欢笑 提交于 2019-12-18 13:12:06
问题 I have installed a plugin which now crashes my Android Studio on start. Does someone know where Android Studio stores its downloaded plugin files, so I can delete it manually? 回答1: Android Studio plugin directories are /Applications/Android Studio.app/plugins and ~/Library/Application Support/AndroidStudioPreview (hidden). Perhaps if you find and delete the bad plugin folder Android Studio will be able to be started correctly. 回答2: For Android Studio 2.3 its: /Applications/Android Studio.app

Make IntelliJ IDEA 15 portable

你。 提交于 2019-12-13 19:04:25
问题 There are a lot of Tutorials on how to make IntelliJ IDEA 14 portable, but 14 is outdated now The Version 15 does somehow ignore the idea.properties file in /bin/, and setting %USERPROFILE% to %cd%..\portable does also not work So how to I make this installation portable? 回答1: Got it! Adding -Duser.home=../../../portable/ To the idea(64).exe.vmoptions makes it use the folder portable next to the bin folder 来源: https://stackoverflow.com/questions/35536638/make-intellij-idea-15-portable

Debugging plugins in Intellij and PyCharm

陌路散爱 提交于 2019-12-13 02:49:41
问题 I'm developing custom plugin for PyCharm in Intellij IDEA Community. I've change JRE to PyCharm Changed plugin.xml file <idea-plugin version="2"> <id>com.krupa.adrian.plugin</id> <name>Test plugin</name> <version>1.0</version> <vendor email="support@yourcompany.com" url="http://www.yourcompany.com">YourCompany</vendor> <description><![CDATA[ Enter short description for your plugin here.<br> <em>most HTML tags may be used</em> ]]></description> <change-notes><![CDATA[ Add change notes here.<br

Invoke intellij code formatter programmatically on java files

不想你离开。 提交于 2019-12-12 21:24:24
问题 How can I programmatically invoke intellij's java source code formatter on an arbitrary source file on disk? I don't mind writing a plugin to do this but if there is a way to invoke the formatter from command line that would be great! Thanks 回答1: I ended up writing my own plugin which is available on github. Note that it might need some more fine tuning 来源: https://stackoverflow.com/questions/26198057/invoke-intellij-code-formatter-programmatically-on-java-files