intellij-plugin

How to include Kotlin PSI classes (e.g. KtClass) in Intellij IDEA Gradle plugin project written in Kotlin?

杀马特。学长 韩版系。学妹 提交于 2020-08-09 04:43:56
问题 I am trying to write a plugin to add mock data to a Kotlin project. The first part involves finding all the Kotlin classes in the current project that inherits from a specific base class. I want to be able to parse these classes to read the value of an annotation and to get the structure of the constructor. This information will then be used to add code to the project adding instances of selected classes to a mock database instance. I have been using the PsiViewer plugin to inspect the PSI

How do I install the Kotest plugin for intellij from a github repository?

可紊 提交于 2020-05-17 05:56:08
问题 I have this repo but don't know how to actually use it. Only did a git clone but what is next? https://github.com/kotest/kotest-intellij-plugin 回答1: Ok, I managed to install it ! Steps are: (On command line) 1) git clone the repo by running this git clone https://github.com/kotest/kotest-intellij-plugin.git . 2) Change directory to be inside the repo main folder and run gradle build . (On IntelliJ IDEA) 3) Go to Prefrences->plugins and click on the little cog symbol at the top. Choose

What scala version Intellij Idea scala plugin uses?

流过昼夜 提交于 2020-05-15 04:11:13
问题 I have en error with java annotation on scala enums. This scala bug seems to be fixed, but Inteliij Idea shows an error. So how I can ensure that intellij Idea scala plugin uses actual scala version? 回答1: You can check the Scala compiler and language level of your project under your project options from File > Project Structure... > Modules > Scala 来源: https://stackoverflow.com/questions/24363409/what-scala-version-intellij-idea-scala-plugin-uses

What scala version Intellij Idea scala plugin uses?

风格不统一 提交于 2020-05-15 04:11:06
问题 I have en error with java annotation on scala enums. This scala bug seems to be fixed, but Inteliij Idea shows an error. So how I can ensure that intellij Idea scala plugin uses actual scala version? 回答1: You can check the Scala compiler and language level of your project under your project options from File > Project Structure... > Modules > Scala 来源: https://stackoverflow.com/questions/24363409/what-scala-version-intellij-idea-scala-plugin-uses

Unable to read local file with HDFS API in IntelliJ Plugin

≡放荡痞女 提交于 2020-02-06 08:01:53
问题 I'm trying to write an IntelliJ plugin that reads local files using the Hadoop HDFS API (because I eventually want to read Parquet files, and the only way to do that is through Hadoop). I have a minimal codebase, using plugins plugins { id 'java' id 'org.jetbrains.intellij' version '0.4.16' } dependencies compile("org.apache.hadoop:hadoop-client:3.2.1") and code Configuration conf = new Configuration(); Path path = new Path(file.getPath()); try { FileSystem fs = path.getFileSystem(conf); }

IntelliJ IDEA Plugin development, how can I get the MavenProjectsManager instance?

天涯浪子 提交于 2020-01-23 16:27:32
问题 How can I get the MavenProjectsManager instance? Is there a service, component or something else that goes in the plugin.xml to instantiate the MavenProjectsManager instance? MavenProjectsManager manager = MavenProjectsManager.getInstance(project); My plugin.xml file so far: <idea-plugin version="2"> <id>com.arcbees.plugin.idea</id> <name>GWT-Platform (GWTP) IntelliJ IDEA Plugin</name> <version>1.0.0</version> <vendor email="support@arcbees.com" url="http://www.arcbees.com">ArcBees</vendor>

Any Support for Matlab or octave in intellij

我与影子孤独终老i 提交于 2020-01-14 08:54:06
问题 I code in Matlab/octave very often. While having several good features it lacks a good editor. My question is that is there any other good editor for it. My preference is intellij Idea, which is one the best IDEs I've ever tried. In this regard, can I connect octave or matlab to intellij (e.g. via some plugins)? 回答1: I've implemented Matlab plugin for IntelliJ: https://github.com/kornilova-l/matlab-IntelliJ-plugin It has syntax highlighting, resolve, rename and autocompletion. I continue

Limit text field completion to a specific set of segments within Intellij Plugin

一世执手 提交于 2020-01-05 04:07:15
问题 The bounty expires in 16 hours . Answers to this question are eligible for a +250 reputation bounty. Shai Almog wants to draw more attention to this question. I was able to get code completion to work for a text field in my plugin based on the answer here: Text Field with Standard PsiElement Auto Completion in IntelliJ Plugin But that's only a part of the problem. In my field I need to express plain text plus Java expressions e.g.: This is plain text and here's a Java expression {myJavaObject

IDEA Plugin: PersistentStateComponent not persisting xml

吃可爱长大的小学妹 提交于 2020-01-04 05:51:28
问题 I can not get my plugin to persist its state. The file configProvider.xml never gets created, nor does the @State annotation has any effect (apparently). This is the relevant part in the plugin.xml <extensions defaultExtensionNs="com.intellij"> <applicationService serviceImplementation="my.plugins.idea.vcs.ConfigProvider" serviceInterface="my.plugins.idea.vcs.ConfigProvider"/> </extensions> This is the Class providing the object that should get persisted: import com.intellij.openapi

how fix new error that's stopping app engine deployment? (after Google pushed a Cloud Tools SDK update today)

大兔子大兔子 提交于 2020-01-03 16:48:06
问题 I am using IntelliJ and I am deploying to Google App Engine Standard Environment. I have a new error after Google pushed a Cloud Tools SDK update to my development machine. I can no longer deploy current or previously deployed working versions to Google App Engine using IntelliJ. **error**: package com.google.appengine.api.users does not exist import warning: [options] bootstrap class path not set in conjunction with -source 1.7 C:\Users\Dave\AppData\Local\Temp\1500787298445-0\org\apache\jsp