Plugin verification after install - plugins

I am developing a plugin that requires some additional software to be installed. What I am trying to do is, when I install for the first time the plugin it checks if the software is installed in the machine. If it isn't installed it prompts a dialog, for example that have a button to install it. Is it possible? I am developing this plugin for PyCharm using gradle.

I'd register a listener to com.intellij.openapi.project.ProjectManagerListener topic (see https://www.jetbrains.org/intellij/sdk/docs/basics/plugin_structure/plugin_listeners.html) and on project opening I'd check if the software is installed.
Once the check is done, I'd save some flag to settings (see https://www.jetbrains.org/intellij/sdk/docs/basics/persisting_state_of_components.html) and read it on the next project opening before checking if the software is installed.

Related

How do you install a Moodle plugin stuck in "to be installed" status?

I have installed a Moodle plugin via the zip upload option. There were no problems with the file package. But now when I go to the Plugins Check page it's listed as "To be installed" and provides an option to cancel the installation -- but it's just stuck there. I've reloaded several times, but it hasn't installed the plugin for over an hour.
Is there a way to force the installation, or to troubleshoot if there's an underlying issue?

Eclipse Mars 4.5.1 cannot access internet after first update/plugin install

I recently installed Eclipse Mars 4.5.1 (for Java Developers) using the Oomph installer. It is installed in my User directory in Windows 7. I was able to start it up, create a hello world app, and it all ran fine.
So far so good....
Then, I go to the "install software" feature under Help and download the C/C++ developer plugin. It downloads and installs fine. When I restart, I am able to build and run C++ binaries.
Again, no problem, yet....
Then, I wanted to install another plugin, PHP Developer. However, when I have Eclipse search the available sites for the package, it cannot find any sites. I tried to do a software update, and it claims it cannot find any of the hosts.
When I try to check my network preferences, I get a "null pointer exception" error report when I try to look at the Network preferences. The error report details indicate this has something to do with ".ssh\known_hosts" file not being found. Therefore, I cannot see what proxies it is using, and the list of known hosts is blank.
Bottom line: after updating itself fine for the first plugin, it appears to be unable to get to any repository for further updates. This happens regardless of what I choose as the first plugin to get.

Installing Sonar in eclipse without network

I am currently working on installing sonar into eclipse. The machienes I am installing them on, however, run on a private server. I cannot install from the eclipse marketplace. I was wondering how I can get the proper files needed to install the plug-in?
Same answer I gave on the Eclipse forums:
One option for installing on machines without Internet access would be if the Sonar plugin developers provide an Update Site Archive (which can be used from Eclipse's Install New Software wizard). Looking at their instructions it doesn't look like they do, but maybe you could reach out to them and ask for it. Producing an archive isn't much trouble if they're already publishing an update site (which it appears they are).
Another option exists, if you have at least one machine on that network that can install the plugin: share that machine's Eclipse installation folder on the network so other machines can see it, then use File > Import > Install > From Existing Installation to select the shared Eclipse folder where Sonar is installed.
Ticket created to provide a zipped update site for next version:
http://jira.sonarsource.com/browse/SONARCLIPS-448

Install Eclipse without any Features

The standard/class edition of eclipse still includes JDT, CVS, GIT and various other features.
Is there a way to install it with only 'resource' management/project tools.
Essentially a version of eclipse built without any language or environment in mind.
A lot like an operating system without any programs installed other than what it needs to run itself and provide the means to install programs entirely at the user's discretion.
Post Answer:
http://download.eclipse.org/eclipse/downloads/drops4/R-4.3-201306052000/
The eclipse-platform section contains no-frills, just raw eclipse.
try this link (http://www.eclipse.org/downloads/moreinfo/custom.php) It should contain what is called a Eclipse Platform Runtime Binaries which is the most minimalist package available.
Same answer I wrote in: Eclipse without plugins for windows
You can download it from here: http://download.eclipse.org/eclipse/downloads/index.html. There you can find 'clean' builds of Eclipse, which do not ship with common development tools.
You still can uninstall the plugins you don't want this way :
Menu > Help > About eclipse SDK > Installation details
Install software tab
Select the plugin you don't want
Uninstall button
Goto https://download.eclipse.org/eclipse/downloads/
Choose a release
e.g. "Latest Release : 4.10" --> https://download.eclipse.org/eclipse/downloads/drops4/R-4.10-201812060815/
On this new page choose "Platform Runtime Binary"
It contains the Eclipse Rich Client Platform base bundles and do not contain source or programmer documentation.

Installing ADT on Eclipse Indigo

On Eclipse Indigo 64-bit, I tried to install ADT (Android Development Tools) plugin ver 15.0. But I get this error :
Cannot complete the install because one or more required items could
not be found. Software currently installed: Shared profile
1.0.0.1316138720972 (SharedProfile_epp.package.java 1.0.0.1316138720972) Missing requirement: Shared profile 1.0.0.1316138720972 (SharedProfile_epp.package.java 1.0.0.1316138720972) requires 'org.maven.ide.eclipse [1.0.100.20110804-1717]' but it could not be found
Do I need to install an eclipse dependency ?
I installed eclipse into /opt as root. I had this exact issue.
Seems that this has something to do with permissions (Yeah, great error message, I know).
I simply installed the plugins while running eclipse as root:
user#computer ~$ sudo eclipse &
Problem solved!
EDIT:
Instead of this, when you install it, you can change the ownership of the eclipse files so that you don't have to run as super user every time you want to install an addon.
user#computer /opt $ sudo chown -R user eclipse/
It's an Eclipse bug, see:
https://bugs.eclipse.org/bugs/show_bug.cgi?id=350645
You shouldn't need to be administrator to install additional plugins...
Alright... this solved my problem:
Open Eclipse
Go to Help > Install New Software > click on Available Software Sites.
Make sure that "http://download.eclipse.org/releases/indigo" is checked.
Then.. enable the "contact all update sites.." option on the Install new software page.
You should be all set!
Try to enable the "contact all update sites.." option on the Install new software page.
That said, ADT should not have a dependency on epp packages, unless you have some other software installed along with Eclipse. Please make sure you're using one of the following Eclipse versions:
Eclipse IDE for Java Developers
Eclipse Classic (versions 3.5.1 and higher)
Eclipse IDE for Java EE Developers
Follow instructions on http://developer.android.com/sdk/eclipse-adt.html thereafter.
Run Eclipse with administrator priviledges... If on Windows right click, and select run as admin
Try to download the SDK archive and follow these instructions, it worked for me.
http://developer.android.com/sdk/installing/installing-adt.html#Troubleshooting
Download the ADT Plugin zip file (do not unpack it):
Start Eclipse, then select Help > Install New Software.
Click Add, in the top-right corner.
In the Add Repository dialog, click Archive.
Select the downloaded ADT-21.0.0.zip file and click OK.
Enter "ADT Plugin" for the name and click OK.
In the Available Software dialog, select the checkbox next to Developer Tools and click Next.
In the next window, you'll see a list of the tools to be downloaded. Click Next.
Read and accept the license agreements, then click Finish.
If you get a security warning saying that the authenticity or validity of the software can't be established, click OK.
Lastly, when the installation completes, restart Eclipse.