-
Notifications
You must be signed in to change notification settings - Fork 4.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can't install packages hosted on GitHub #2880
Comments
You don't give an example of the failing code in packages.el of your layer. Here's an example from a private layer of mine, which works to install stuff from github: ;; List of all packages to install and/or initialize. Built-in packages
;; which require an initialization must be listed explicitly in the list.
(setq org-ref-packages
'(
;; package names go here
(org-ref :location (recipe :fetcher github :repo "jkitchin/org-ref"))
)) |
I added this to a FAQ which I hope will grow to become useful: https://github.com/mbertheau/spacemacs-faq/wiki#how-do-i-install-an-emacs-package-from-github |
@AdmnUnpwnd bear in mind that webkit is dependant on external dependencies..don't even bother with it. It's not worth the time. |
@CestDiego Is there an alternate Emacs web browser that you recommend. I hate using lynx and if possible would like to avoid opening Chrome every time I want to view a web page. |
@AdmnUnpwnd unfortunately there is no true webkit browser :( people try w3m and eww, but I don't find unconvenient to open chrome for everything. You can search in any search engine from within emacs though (check the search-engine layer) this will open a search into chrome though, or firefox |
@CestDiego Thank you. I will try the search-engine layer. |
Maybe haxe-complete depends on a package that is it in MELPA ? |
@fintelkai @mbertheau I have tried what you posted in a custom layer but it still doesn't work. However, it works when I use it in |
|
@AdmnUnpwnd can you open an issue on haxe-complete repo to ask the author to add a proper package.el header to the source file ? |
@syl20bnr I will open an issue on the haxe-complete repo. I've also tried installing haxe-eldoc and hx-emacs and they failed as well. From my understanding haxe-eldoc seems to have a proper package.el header however I might be wrong. Can you please confirm this? If the header is the problem then I will open an issue on those repos as well. Thank you. |
@AdmnUnpwnd haxe-eldoc has one but I don't know if it is valid. I don't see any other difference that might explain your issue though. |
@syl20bnr Another thing I've noticed is that I can only install GitHub hosted packages if I put them in |
Does anyone still have this problem? I tried yesterday to use github fetcher for a package in the ranger layer and it worked. |
@StreakyCobra I'm still having problems installing the packages I listed above. I can install other packages that are ELPA compliant with no problem however, for some reason req-package installs but whenever I try to use it I get an error suggesting that the package is missing. I was hoping to use that to install the above packages since I tried el-get but was getting an error about el-get-recipe-path being void. I am using the latest development version. |
I've noticed that this issue has been taken care of in the Autumnal Cleanup 2015 Reporting (#3549) however unfortunately I still have no idea how I can install packages that are not in the correct ELPA compliant format. Any help will be appreciated. Thank you. |
@AdmnUnpwnd The autumnal cleanup was made to identify old and dead issues. This one is valid so it's still open :-) But I don't think there is an easy way now to install a package that is not in ELPA format, you can try to debug/improve/document it yourself, or wait that someone get interested in this functionality :-/ |
@StreakyCobra I'm not experienced in Emacs Lisp beyond the general configuration but I'll keep looking for alternate ways and report if I find anything. Meanwhile, I would appreciate if someone is able to integrate this functionality in spacemacs. |
Download it and load it manually, then. I don't think the burden should be on us to support non-standard packages, particularly when the standard is as accepted as it is. |
@TheBB How do I load it manually? Do I edit .spacemacs or init.el? Sorry I am new to Emacs. |
You can use |
@TheBB Thank you. |
@AdmnUnpwnd Do you managed to make it work? @syl20bnr @TheBB So to be clear, there is no plan to support non-elpa packages as it's not a standard right? If this is the case, this issue can be closed once @AdmnUnpwnd will have solved his problem. |
@StreakyCobra Unfortunately the |
Ok, let us know if you find a way to make it work :-) |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Please let us know if this issue is still valid! |
I have been using vim for a while now and decided to try Emacs. I picked Spacemacs since it's easier for a vim user to transition to.
I was able to create a package layer to install packages hosted in MELPA but when I tried installing packages hosted on GitHub using
:fetcher github
it gave an error: 'Package [package name] is unavailable. Is the package name misspelled?'I've checked out the develop branch.
A few packages I tried are Emacs Webkit and haxe-complete
How do I install packages hosted on GitHub?
Edit: Here is what I have in my Haxe layer that I created in .emacs.d/contrib/!lang/haxe/packages.el
haxe-mode is in MELPA is is working properly. haxe-complete is on GitHub and produces the above error.
The text was updated successfully, but these errors were encountered: