Intellij plugin development "the selected directory is not a valid home for intellij platform plugin sdk" - intellij-idea

I'm following these guidelines on how to develop Intellij plugin.
So I
Open project settings.
Project SDK --> New
Choose the community edition path I just downloaded
Expected the directory is selected fine.
Actual: I get the error message:
"the selected directory is not a valid home for intellij platform plugin sdk"
See screenshot:
Am I doing something wrong?
Thanks

Intellij platform plugin sdk home should be your installed or builded IntelliJ, not sources. You can add that intellij-community folder as sources to your IntelliJ SDK later or not at all.

Goto Intellij installed directory
C:\ProgramFiles\JetBrains\IntelliJ IDEA Community Edition 2016.3.4
Select plugin folder
Create a directory (eg: scala)
Copy the scala lib folder
Restart the intellij

In my case, I had to download a newer IDEA version (Community Edition) and after the installation, everything worked fine.
This is the official and updated link for setting up your plugin development environment.

Related

IntelliJ Cannot resolve symbol 'String' when using IBM JDK

The similar issue was report in this post without any solution.
--
My IntelliJ Version is IntelliJ IDEA 2022.1.2 (Community Edition)
For over an year, I have been working on a maven project which uses a customized ibm-jdk8 and a customized maven installation.
So I've configured global maven runner & import settings & project & module SDK settings to use this custom JDK.
All this setup had been working fine for over an year.
Yesterday, I updated IDEA to newer version, I'm not sure what was the reason but I started getting wired IDE errors.
So I invalidated the cache and restarted the IDE,
When that did not solve the issues, I manually deleted following folders
All ~/AppData/*/JetBrains folders .
.idea folder inside project root.
project-name.iml file inside project root.
After that I updated all intelliJ setting same as above, but
Since then I've been getting Cannot resolve symbol 'String'
Strangely all other JDK classes are detected, but in whole code String is not working.
It's a known issue specific to IBM JDK.
The workaround is to manually add vm.jar file from JDK_HOME\jre\bin\default\jclSC180\vm.jar to the SDK classpath tab in IntelliJ IDEA.

Where is Dart SDK? | Error: the folder specified as the Dart SDK home does not exists

I installed Dart Plugin in IntelliJ IDEA and set Dart SDK path in settings page and got this error message Error: Dart SDK is not found in the specified location. What path should I set here? Where is Dark SDK?
I went to this page:
https://dart.dev/get-dart#install
and I installed dart following Install the Dart SDK section.
As the following instructions show, you can use a package manager to easily install and update the Dart SDK.
dart command is here: /usr/local/bin/dart.
but I cannot set this path as Dart SDK path in IntelliJ.
$ which dart
$ /usr/local/bin/dart
You can set the path this way in Preferences > Languages & Framework > Dart : Dart SDK Path
/usr/local/opt/dart/libexec
Or
/usr/local/Cellar/dart/2.8.3/libexec
not
/usr/local/bin/dart
I installed dart using Homebrew. I was able to get this path by running the command brew info dart but the above path should work for you as well
navigate to the folder where you have kept your flutter folder and then just go to bin folder inside your flutter folder, and then to cache and here you go, you found dart sdk .location of dart sdkdart sdk in android studio
C:\src\flutter\bin\cache
sometimes you add dart SDK with flutter SDK on developer folder if you using mac os ..
try this
/Users/username/developer/flutter/bin/cache/dart-sdk
We should give the path for the 'dart-sdk' folder not the bin folder inside 'dart-sdk' folder.
https://stackoverflow.com/a/62186444/10405867
yes, #Prateek Thakur answer is the best answer to be accepted.
To add the information.
if you have installed from brew, mine using macbook m1 - apple silicon
the default path is:
/opt/homebrew/opt/dart/libexec/bin/dart
if you are downloading from https://dart.dev/get-dart archive (link: https://dart.dev/get-dart/archive), you need to set the correct path on your local path where you downloaded the sdk archived folder.
in manjaro if you installed from pamac(add/remove), then the command will be at
which dart
/opt/flutter/bin/dart
So to solve this issue in intelliJ Idea..
Go to new project => dart => then in the Dart SDK path click on the ellipses
then locate this
/opt/flutter/bin/cache/dart-sdk

IntelliJ IDEA 2018.3 Browse Repositories

I can't find the "Browse Repositories" option under Plugins in IntelliJ Ultimate Edition 2018.3.2 and I am pretty sure that I had it before.
I need to install the Flutter plugin from repositories.
[!] IntelliJ IDEA Ultimate Edition (version 2018.3.2)
✗ Flutter plugin not installed; this adds Flutter specific functionality.
Seems like you have it already installed - check the Installed tab. If it's there you probably missing the Dart plugin, which should be installed together with Flutter plugin. Try to reinstall Flutter plugin.
There are many changes in the newer versions of IntelliJ IDEA.
"Marketplace" is similar to the "Browse Repositories" option.
If you have already installed a plugin it will be in your "installed" tab.
Also, check if have somehow disabled the plugin.
I found out that the Flutter plugin is not compatible with 2018.3 versions. I downgraded to 2018.2, now it is fine.

Run intellij plugin on Android Studio

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
You can specify the platform to run on in the IntelliJ Platform Plugin SDK settings, under Platform Settings | SDKs in the Project Structure settings. Point the IntelliJ Platform Plugin SDK home path to your Android Studio installation.
Another option is to create a new Plugin Run Configuration. In the Run Configuration it is possible to specify the JRE to run on. Click on the ... button there and select an Android Studio installation directory (e.g. /Applications/Android Studio.app/Contents on the Mac). This way it is possible to create a Run Configuration for all IntelliJ Platform IDEs you want to test your plugin on.

Eclipse plugin view does not show up after install

I created a sample plugin which includes a simple view in eclipse and ran the plugin from inside the workbench, my plugin is installed and I get my view showing up in Window/Show View/Other... . I packaged the plugin as a jar file and installed it under the plugins directory of eclipse and restarted my eclipse workbench. I am not able to find my plugin view. I dont know whats is wrong
I am using eclipse RCP SR2 (3.6) for developing plugins and my packaged jar file includes the code, META-INF/MANIFEST.MF and plugin.xml files.
I created the plugin from the book 'Eclipse Plug-ins, 3rd Edition'. I followed the steps outright and am not able to set up the plugin as a jar file.
I got it to work somehow? The plug-in project was created using Execution Environment JavaSE-1.6. 'It was given in the book I referred'. Now the manifest editor had the entry 'Bundle-RequiredExecutionEnvironment: JavaSE-1.6'. Now I ran the application with-in eclipse, it was working. But when I bundled the plugin as jar and copied the plug-in jar under plugins folder and restarted eclipse the plugin was not working, I dont know why, I thought my eclipse is not running under JRE1.6, but I checked my Windows->Preferences->Java->Installed JREs-> I have only jdk1.6.0_27 checked (So I assume that the eclipse is running under JavaSE1.6). This is bit confusing for me! I removed the Execution Environment entry in the Manifest editor Overview tab. Now there is no 'Bundle-RequiredExecutionEnvironment' entry in my Manifest, I created the bundle jar again and installed in eclipse plugins folder and restarted eclipse using -clean option. It started working in my eclipse. I got it to work somehow but with no understanding! I am still looking for answers from some one who can help me figure out what went wrong?
Open an OSGI console and type 'ss'. It should list all of the plugins. Can you see it? What is the state of it.
You can use Preferences/plug-in development/target platform edit running 'running platform' content tab to list and check/uncheck plugins. I hope it helps.
You could try copying your jar file to the eclipse/dropins folder.