renard / o-blog

Standalone orgmode blog exporter. DEPECATED, NOT MAINTAINED
http://renard.github.com/o-blog-v2
260 stars 58 forks source link

ob:backend is not a class #116

Closed xielongen closed 4 years ago

xielongen commented 10 years ago

emacs 24.3.1 When I want to test the o-blog-publish function, I found a bug:eieio-defclass: Given parent class ob:backend is not a class.

jave commented 10 years ago

I also get this, and I think theres something wrong with el.-get initialization.

I can work around the issue by evaling all the o-blog el files by hand.

renard commented 10 years ago

You can also try the o-blog-v2.5 branch.

eieio is far away from CLOS and using it for v2 was a mistake.

v2.5 is back to good'old structs.

jave commented 10 years ago

I tend to like eieio, but tastes vary of course.

Not to sidetrack or aything, but did you have a look at https://github.com/skeeto/at-el ?

renard commented 10 years ago

Yes I just had a simple look at it (haven't tried). Unfortunately this requires to be add to emacs before o-blog work.

My opinion here, is to use CL structure and register backends with a simple custom dispatcher. Many projects use that. I guess there is a reason why.

jave commented 10 years ago

Ive been using the 2.5 branch for a bit, I think its soon ready to replace the v2 branch.

renard commented 10 years ago

I guess a I would be able to merge it into master pretty soon.

I think v2 was a transition version with many tries. I hope to have a stable engine soon

flowsta commented 10 years ago

I still get Given parent class ob:backend is not a class, hope to see stable engine soon

renard commented 10 years ago

@flowsta you should try the v2.5 branch and restart your emacs.

mourningsun75 commented 9 years ago

i installed o-blog via el-get. i still get the error "Given parent class ob:backend is not a class"

how to switch to v2.5?

mourningsun75 commented 9 years ago

switched to v2.5... same error....

renard commented 9 years ago

If you installed via el-get you need to manually change to branch 2.5 (git checkout o-blog-v2.5) and remove all *.elc files you got in the lisp directory.

This is mainly because emacs will read .elc files instead of .el.

mourningsun75 commented 9 years ago

ok, done....

now i got the following error: assoc: Symbol's function definition is void: cl-struct-slot-info

renard commented 9 years ago

try

(require 'cl-macs)

I will add it in a hotfix

davidpirro commented 9 years ago

Hi,

I installed o-blog via git. Switched to v2.5. I'm still getting the error: assoc: Symbol's function definition is void: cl-struct-slot-info

even if I added (require 'cl-macs)

to my init.el

Any ideas?

Thank you!

sven-- commented 9 years ago

I have exactly same problem with @mourningsun75. I tried adding (require 'cl-macs) in my .emacs or manually executing it in eshell, but still having problem.

davidpirro commented 9 years ago

Hi,

the only thing that solved this problem for me was to install emacs-snapshot (my version 24.4.50.1 now) from the new emacs snapshot repositories at http://londo.ganneff.de/ (see first red lines at http://emacs.naquadah.org/).

Hope that helps you!

sven-- commented 9 years ago

@davidpirro Thanks for your reply. However, I'm currently using Mac and I can't find a way to install it in Mac.

siefca commented 9 years ago

Same here – Emacs 24.3.1 and cannot install snapshot release.

renard commented 9 years ago

@davidpirro for mac you can either use http://emacsformacosx.com/ or try to build your own: https://github.com/renard/emacs-build-macosx