larstvei / ox-gfm

Github Flavored Markdown Back-End for Org Export Engine
233 stars 44 forks source link

Symbol's function definition is void: org-export-get-reference #28

Closed Red-Portal closed 7 years ago

Red-Portal commented 7 years ago

Calling org-gfm-export-as-markdown leads to that error.

I'm using emacs 25.3 and my org version is 8.2.10

larstvei commented 7 years ago

Hi, thanks for reporting!

Could you try to manually evaluate:

(require 'ox)

and try to export after?

Red-Portal commented 7 years ago

Too bad, still the same.

(require 'ox)

(eval-after-load "org"
  (use-package ox-gfm
    :ensure t
    :config
    (setq org-src-fontify-natively t)))

Here's the relevant snippet. with or without

(require 'ox)

doesn't do much. I also tried to eval (require 'ox) on ielm manually. didn't help

larstvei commented 7 years ago

My guess is that something has gone wrong in your installation of Org mode (based on this thread).

Try invoking C-u M-x org-reload which reloads org from source, and try exporting after. If this works, then try to recompile your org installation (or just delete and install (or even update!) from package-list-packages).

Red-Portal commented 7 years ago

Unfortunately, That didn't do a lot

larstvei commented 7 years ago

Sorry for not realizing this sooner: org-export-get-reference was first introduced in version 8.3, so you need to upgrade Org mode.

Red-Portal commented 7 years ago

It works well now thanks for the great package!

LanternD commented 7 years ago

I encountered the same issue today after I try to export .md through ox-gfm.

unknown "nil" back-end: Aborting export with no output

My previous Org version is 8.2.x. Now I upgrade to Org 9.1.2 and then I can export the markdown file as my expectation now. Thanks! Great package.

Ynjxsjmh commented 5 years ago

I also run into this issue even after I restart my emacs. My Org version is 9.1.9.

org-export-barf-if-invalid-backend: Unknown "nil" back-end: Aborting export 

But after I execute M-x org-reload mentioned above, it works out after that.

Thanks for the great package!