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

org-export-as: Wrong number of arguments #2856

Closed
srid opened this issue Sep 2, 2015 · 12 comments
Closed

org-export-as: Wrong number of arguments #2856

srid opened this issue Sep 2, 2015 · 12 comments
Labels

Comments

@srid
Copy link
Contributor

srid commented Sep 2, 2015

, e h h (org export to html) is broken in the latest develop branch (Spacemacs v.0.104.0):

org-export-as: Wrong number of arguments: #[(templates) "�eb�Æ�ÇÈÆÉ#�\\�Ê �Ë    !Ì=�X�Í    
\"�ÎÏ \"��   ÎÐ    \"E�����<�ÑÒÎÓ \"\"��W���W�
�B�ÎÔ    \"b�ÕÆx�`|���c�)+)���*�" [record object templates value begin signature nil re-search-forward "{{{[-A-Za-z0-9_]" t ...] 6 ("/usr/local/Cellar/emacs/24.5/share/emacs/24.5/lisp/org/org-macro.elc" . 3797)], 3
@TheBB
Copy link
Contributor

TheBB commented Sep 2, 2015

I can't reproduce. Have you updated org? Can you produce a minimal reproducing example?

@TheBB TheBB added the Org label Sep 2, 2015
@mnick
Copy link

mnick commented Sep 2, 2015

I had the same problem. Deleting the org directory in the emacs.d/elpa directory and reinstalling org (just restart spacemacs) fixed it for me.

@bjeanes
Copy link
Contributor

bjeanes commented Sep 11, 2015

Also having this problem. rm -rf ~/.emacs.d/elpa/org* and restarting Spacemacs to reinstall org did not change the result for me.

Invalid face reference: t [372 times]
progn: Wrong number of arguments: #[(templates) "�eb�Æ�ÇÈÆÉ#�\\�Ê �Ë  !Ì=�X�Í  
\"�ÎÏ \"��   ÎÐ    \"E�����<�ÑÒÎÓ   \"\"��W���W�
�B�ÎÔ    \"b�ÕÆx�`|���c�)+)���*�" [record object templates value begin signature nil re-search-forward "{{{[-A-Za-z0-9_]" t ...] 6 ("/usr/local/Cellar/emacs-mac/emacs-24.5-z-mac-5.9/share/emacs/24.5/lisp/org/org-macro.elc" . 3797)], 3Invalid face reference: t

@bjeanes
Copy link
Contributor

bjeanes commented Sep 11, 2015

I noticed another error Symbol's value as variable is void: org-planning-line-re. That lead me to this StackOverflow question.

Running org-reload fixes exporting for me (at least perhaps until the next restart). It seems like maybe corrupt compiled elc between the ELPA org and the stock org mode. I don't know enough about Emacs to understand the implications of this in the long term or what next steps would be, as it seems like org-reload is a workaround at best.

@stonejiajia
Copy link

Can't solve this programming,when I executed R code on org-mode babel happen to me.Tried all the solution above all ,Can't help.
It was ok when I executed R code with ess .Just happened on org-mode babel

@mnick
Copy link

mnick commented Sep 17, 2015

I ran into the problem again. This time deleting elpa/org* didn't fix the problem. However, as @bjeanes suggested, putting (org-reload) at the end of dotspacemacs/config() fixed it for me.

@StreakyCobra
Copy link
Contributor

@TheBB
Copy link
Contributor

TheBB commented Jan 6, 2016

I think so, since the filename in the error message is not in the elpa directory.

I'm leaning towards closing this as a user configuration error, then.

@TheBB
Copy link
Contributor

TheBB commented Jan 6, 2016

@adimit had this exact problem on gitter and fixed it by changing his configuration so that org was not loaded early. I think that's enough evidence.

@TheBB TheBB closed this as completed Jan 6, 2016
@adimit
Copy link

adimit commented Jan 6, 2016

Yup. Watch out for stuff like custom-set-variables, which will evaluate before user-init is run. Wrap custom-set-variables in with-eval-after-load 'org.

@nrolland
Copy link

same pb here, doing org-reload manually for now

@TheColourOutOfSpace
Copy link

The solution by @StreakyCobra and @adimit works for me. Putting org-babel-do-load-languages inside with-eval-after-load 'org made it go away.

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

No branches or pull requests

9 participants