-
Notifications
You must be signed in to change notification settings - Fork 260
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
No way to install org
#319
Comments
Relevant elisp:
That last one is the key to solving this IMO. |
This is the workaround I'm using for now, maybe it could be adapted into something inside
|
I use the the ...
(eval-and-compile
(setq
package-archives
'(("melpa-stable" . "http://stable.melpa.org/packages/")
("melpa" . "http://melpa.org/packages/")
("marmalade" . "http://marmalade-repo.org/packages/")
("org" . "http://orgmode.org/elpa/")
("gnu" . "http://elpa.gnu.org/packages/")
("sc" . "http://joseito.republika.pl/sunrise-commander/")))
...
(use-package org
:ensure org-plus-contrib
:defer 7
... |
Thanks for the info! Sadly, this isn't a workaround that would work for any other built-in package. This seems to be a deeper issue with I suggest we either:
|
Hi! org-mode is a pain in a** indeed. Here is my workaround:
I know. It's a brute force method. However, it does its job. I couldn't find any better solution. |
(use-package org :ensure t) installs the latest 8.2.10 for me with no issues. However I break my load sequence into an 'init.el' which then loads my 'emacs.el' I have the following in my init.el
And then the following in my 'emacs.el'
|
Well, I actually have a workaround that a kind user on Emacs Stack Exchange helped me with, here is the code:
I'm only using it to update org when my Emacs start, before loading the rest of my configuration which is written on an org file. Hope it helps :) |
See jwiegley/use-package#319 Org cannot be installed because `package-installed-p' thinks it already install -- which it is, because it comes with builtin with Emacs. The fix is the briefly set the variable `package--builtins' to NIL and force install the ones defined in `my-packages'.
I don't use
This is what I do to get around that:
(Sorry about the reference -- didn't think adding the URL to this issue on that commit |
Just a cople of comments on this issue -
Would be good if I could just have org pinned to a specific repo and be done with it, but that doesn't seem to work correctly when the package is also built-in/bundled with emacs. You also have to be far too careful about how you load things to avoid getting a mixed and unreliable org loaded. Most of this is not a use-package problem directly, but things like use-package seem to be exposing some of the weaknesses in either package.el or the relationship between core emacs, package repositories and different user requirements (i.e. bleeding edge/latest features vs most stable etc). |
Another solution is to drop
|
@raxod502 I learned about Do I need to specify my own recipe for |
@zzamboni FWIW I use the following with
|
@zzamboni to avoid cluttering this issue tracker can you open a ticket against |
I'm closing this as not something to be fixed in |
My solution (Emacs 25.3): (unless (file-expand-wildcards (concat package-user-dir "/org-[0-9]*"))
(package-install (elt (cdr (assoc 'org package-archive-contents)) 0)))
(require 'org) |
Sorry for practising necromancy – I have just found a one-liner that fixes the issue (Emacs 25.2):
|
Thanks for the solution. Had to make a two liner out of it (Emacs 27.1):
|
Thanks @hubisan, this seems to work for me, also in Emacs 28 branch. However, I would still like that The same applies to other packages too, not only to org. |
Since
org
is included with emacs,use-package
won't fetch it from a remote repo, even when using:pin
– most likely due to the fact thatpackage-installed-p
also check built in packages. This can be problematic, because not only does it renderuse-package
powerless to install a newer version of a package than is shipped with emacs (which can not only old but also buggy, as is the case withorg
in Emacs 25 devel), but also pretty much undermines:pin
, which I would expect to ensure that the pinned version is installed.Possible solutions are:
package-installed-p
package-delete
if necessarySteps to reproduce using
emacs -Q
:use-package
(use-package org :pin gnu)
The text was updated successfully, but these errors were encountered: