Groovy-Emacs-Modes / groovy-emacs-modes

A groovy major mode, grails minor mode, and a groovy inferior mode.
84 stars 39 forks source link

Groovy Mode not available #3

Closed malakeel closed 9 years ago

malakeel commented 9 years ago

I am unable to install groovy mode through elpa (Not Found):

Saving file /home/mansour/.emacs.d/elpa/groovy-mode-readme.txt... Wrote /home/mansour/.emacs.d/elpa/groovy-mode-readme.txt Type C-x 1 to delete the help window. Install package `groovy-mode'? y Contacting host: stable.melpa.org:80 package-handle-response: Error during download request: Not Found user-error: Minibuffer window is not active

This is from my .emacs

(require 'package) ;; You might already have this line (add-to-list 'package-archives '("melpa" . "http://melpa.org/packages/") t) (add-to-list 'package-archives '("melpa-2" . "http://melpa.milkbox.net/packages/") t) (add-to-list 'package-archives '("melpa-stable" . "http://stable.melpa.org/packages/") t) (add-to-list 'package-archives '("gnu" . "http://elpa.gnu.org/packages/") t) (package-initialize) (require 'gradle-mode) (gradle-mode 1)

russel commented 9 years ago

I think your melpa-2 entry is redundant as melpa.milkbox.net resolves to the same IP as melpa.org. I think the gnu entry is also redundant as it is automatically in place. Your issue has already been most useful to me as I still had the milkbox URL (and have now updated to the melpa one), and I hadn't realized they had separated stable out. I must investigate further :-)

As for your real problem: I do not use MELPA to get groovy-mode, I use the files directly from my Git repository so I am testing whatever I have rather than what is released. A consequence is that I will not notice any problems with groovy-mode on MELPA in the normal course of events. groovy-mode is listed for me in the packages list from MELPA and I just tried installing it and it appeared to work fine; I got version 20141024.951. So I think the issue is we do not have an installation of groovy-mode in MELPA Stable only in MELPA, which I will investigate. However you should have seen the list from MELPA including the one I successfully installed. I wonder if having MELPA Stable after MELPA changes the behaviour of package installation?

malakeel commented 9 years ago

In fact removing all others and keeping this one, fixed the issue and was able to install it succefully:

(add-to-list 'package-archives '("melpa-2" . "http://melpa.milkbox.net/packages/") t)

Probably, like you said the duplicate URLS may have caused this.

I will close it. Please reopen if this occured again.

russel commented 9 years ago

I am pleased things now work for you. I changed "http://melpa.milkbox.net/packages/" to "http://melpa.org/packages/" in my codes as it seems that this is the more future oriented URL.