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

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?

Related

Plugin verification after install

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.

Unable to install pydev

I am trying to install pydev through update site and eclipse marketplace but that's impossible.
When trying to install I receive the following message:
Unable to read repository at https://dl.bintray.com/fabioz/pydev/latest/content.xml.
Looks like this file does not exist anymore on the repository.
Did somebody found a solution about that ?
Regards
I've run into the same issue. I found out that the link at the PyDev site http://www.pydev.org/updates is redirecting to https://dl.bintray.com/fabioz/pydev/6.4.1. Using this link doesn't work for me, in Eclipse 4.7.3a.
However, changing this link to http://dl.bintray.com/fabioz/pydev/6.4.1 solves my problems. Apparently, there is an issue with the SSL redirection at the distribution site, or the https downloads in Eclipse.
The Error Message
I am note sure why you are getting an error message about content.xml, the real file that Eclipse should be reading is content.jar which is there.
Try one of the solutions below and please post more details if you can.
Online Install
The URL for installation of the feature is http://pydev.org/updates. You can use that URL to Install New Software... from the Help menu if the Eclipse Marketplace is not doing what you want.
Offline Install
If you meet the requirements (below) and continue to have problems with the update site, you can download to install offline. Get it from SourceForge (or follow the link from PyDev's website to SourceForge)
LiClipse
Alternatively, simply get LiClipse instead. It is Eclipse and PyDev and a bunch of other useful stuff already packaged together. It is provided by the author of PyDev, so should give you the best experience.
Minimum Eclipse and JVM Requirement
Double-check you meet the minimum requirements: PyDev requires Java 1.7 or greater and Eclipse 3.8/4.3 or greater:
Requirements
Java 7:
[...]
Eclipse (3.8/4.3 onwards)
At start i was also facing same error that : The solution is not provide while installing PyDev - Python IDE for Eclipse 6.3.2
and when I am When trying to install I receive the following message: Unable to read repository at https://dl.bintray.com/fabioz/pydev/latest/content.xml. ?
Then i came up with the final solution :
follow the steps :
Online Install
The URL for installation of the feature is http://pydev.org/updates. You can use that URL to Install New Software... from the Help menu if the Eclipse Marketplace is not doing what you want.
and uncheck all the options mentioned below on Install New Software Window like:
Uncheck :
1.Show only the latest versions of available software
2.Group Items by category
3.Show only software applicable to target environment
4.Contact all update sites during install to find required software
Offline Install
If you meet the requirements (below) and continue to have problems with the update site, you can download to install offline. Get it from SourceForge (or follow the link from PyDev's website to SourceForge).
Download the latest zip from sourceforge
Unzip it in any temp location
In Eclipse: "Help->install new software"
"Add" a new location to "Work with" "Local" button allows you to select the
unzipped folder
Give the location a name Back on the "install new
software" dialog, select pydev, etc. and "finish" (Delete the zip and
unzipped folder)
and uncheck all the options mentioned below on Install New Software Window like:
Uncheck :
1.Show only the latest versions of available software
2.Group Items by category
3.Show only software applicable to target environment
4.Contact all update sites during install to find required software
To be a little more clear about an offline installation in eclipse neon:
Download the latest zip from sourceforge
Unzip it in any temp location
In Eclipse: "Help->install new software"
"Add" a new location to "Work with"
"Local" button allows you to select the unzipped folder
Give the location a name
Back on the "install new software" dialog, select pydev, etc. and "finish"
(Delete the zip and unzipped folder)
The Error Message
I am note sure why you are getting an error message about content.xml, the real file that Eclipse should be reading is content.jar which is there.
Try one of the solutions below and please post more details if you can.
Online Install
The URL for installation of the feature is http://pydev.org/updates. You can use that URL to Install New Software... from the Help menu if the Eclipse Marketplace is not doing what you want.
Offline Install
If you meet the requirements (below) and continue to have problems with the update site, you can download to install offline. Get it from SourceForge (or follow the link from PyDev's website to SourceForge)
LiClipse
Alternatively, simply get LiClipse instead. It is Eclipse and PyDev and a bunch of other useful stuff already packaged together. It is provided by the author of PyDev, so should give you the best experience.
Minimum Eclipse and JVM Requirement
Double-check you meet the minimum requirements: PyDev requires Java 1.7 or greater and Eclipse 3.8/4.3 or greater:

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

"Updates are not permitted" in Eclipse -bug or feature?

This is the situation: I am the admin of a shared installation of Eclipse, and I want regular users (who do not have write-permission to the installation directory) to be able to update existing plugins. If they try this now they get an error saying something like:
"Your original request has been modified.
[Plugin name] will be ignored because it is already installed, and updates are not permitted.
..."
It works perfectly well for users to install new plugins, just not update existing ones.
Steps to reproduce:
Install Eclipse (I've tried, among others, Eclipse Classic 3.6.2 and
3.7, in Linux SUSE Enterprise 10).
As an admin with write-permission to the installation directory, install a plugin, e.g. EGit 1.0 from
http://download.eclipse.org/egit/updates-1.0
As a user (without
write-permission), try to install a newer version of the plugin (e.g.
EGit 1.3 from http://download.eclipse.org/egit/updates-1.3).
Perhaps related: If a regular user opens "About Eclipse SDK --> Installation Details --> Installed Software", the "Update" and "Uninstall" buttons are greyed out for every item on the list, though they are not for the admin.
So my questions are: Is this on purpose? and: Can I do something to allow users to update plugins?
I just have the same error. I removed the plugin of the update configuration file (but it's not the best solution)
%eclipse_home%\configuration\org.eclipse.update\platform.xml
This error is easily reproducible, install a plugin directly into the main configuration directory, and do a manual plugin install, like :
%eclipse_home%\eclipse.exe -configuration %eclipse_home%\configuration
Install > New software ...
So, the update will not working if you do that.
To correctly install a plugin, you just have to drop it into the "dropins" dir, like :
%eclipse_home%\configuration\dropins\yourplugindir
Then, the user could use it, or do an update
(init configuration) %eclipse_home%\eclipse.exe -initialize
(refresh workspace) %eclipse_home%\eclipse.exe -clean
%eclipse_home%\eclipse.exe
Install > New software ...
The Eclipse runtime options
Best regards,