Skip to content
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

Warning on Org installation #211

Closed
xuchunyang opened this issue Jan 1, 2018 · 12 comments
Closed

Warning on Org installation #211

xuchunyang opened this issue Jan 1, 2018 · 12 comments

Comments

@xuchunyang
Copy link
Contributor

xuchunyang commented Jan 1, 2018

When I use (straight-use-package 'org) to install the latest Org, it displays the following in *Warning* buffer

Warning (emacs): Could not define org version correctly. Check installation! [2 times]

and M-x org-version shows

Org mode version N/A (N/A !!check installation!! @ /Users/xcy/tempt/.emacs.d/straight/build/org/)

@raxod502
Copy link
Member

raxod502 commented Jan 3, 2018

This should be fixed by #72. The problem is that Org produces this warning if you byte-compile it without running make first. The issue should be fixable via some combination of #72 and #115.

@raxod502
Copy link
Member

raxod502 commented Jan 3, 2018

See also #168 (comment), where I mention some hacks I put in my init-file to inhibit the warning until this issue is fixed.

@xuchunyang
Copy link
Contributor Author

Thanks for the info. I'm going to close this issue since it has been tracked by other issue.

For now, I switch back to make to install org manually, it looks the most obvious downside is that I should not install any package which declares org as its dependency, I think I can live with that.

@caadar
Copy link

caadar commented Jan 4, 2018

I should not install any package which declares org as its dependency...

Not a problem at all.

(straight-override-recipe
   '(org :type git :host github :repo "emacsmirror/org" :no-build t))
(use-package org)

(Correct host, repo etc if needed.)

@raxod502
Copy link
Member

raxod502 commented Jan 7, 2018

Actually, I think you can just do

(straight-use-package '(org :local-repo nil))

in the latest version of straight.el.

(Unless of course you want Org to be cloned, but not loaded, in which case @caadar definitely has the right approach.)

@xuchunyang
Copy link
Contributor Author

Thank you both for the tips, they helps.

xuchunyang added a commit to xuchunyang/emacs.d that referenced this issue Jan 8, 2018
* init.el (org): Register it for straight.el.
(orglink): Install it.

radian-software/straight.el#211
@raxod502
Copy link
Member

raxod502 commented Jan 9, 2018

There's a much better hack now, thanks to radian-software/radian#410.

@dustinlacewell-wk
Copy link

I'm still getting this error, even with the updated hacks and everything.

@raxod502
Copy link
Member

raxod502 commented Feb 5, 2018

It continues to work for me. Can you post your configuration?

@dustinlacewell-wk
Copy link

I think it had to do something with with something causing org8 to be loaded some how. I had to completely deconstruct my init file and rebuild it from scratch, adding piece by piece back, with all my org stuff right after straight.el boostrapping. I still have no idea what was causing org-8 to be loaded. I was getting that NA version thing.

I'm thinking that to help straight.el in terms of adoption in this time (I do a lot of straight.el evangelism) to add a section on the README, maybe near the bit where you explain how to bootstrap straight.el, what a minimal working Org 9 configuration looks like.

Hey anyway, thanks so much for this package, it is definitely the future for emacs.

@raxod502
Copy link
Member

raxod502 commented Feb 6, 2018

@dustinlacewell-wk I've done as you suggest on develop; let me know what you think. I'm glad you like straight.el :)

@dustinlacewell-wk
Copy link

lgtm :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

4 participants