lujun9972 / anki-vocabulary.el

Help you to create vocabulary card in Anki
10 stars 3 forks source link

Get "Invalid function" error when get text from pdf-view #3

Closed chuxubank closed 3 years ago

chuxubank commented 3 years ago

When call anki-vocabulary in pdf-view, I get Invalid function: pdf-view-assert-active-region

I'm using doom-emacs on Emacs 27 and here is my config about anki-vocabulary and map file

``` SYSTEM type darwin config x86_64-apple-darwin18.7.0 shell /bin/zsh uname Darwin 19.6.0 Darwin Kernel Version 19.6.0: Mon Aug 31 22:12:52 PDT 2020; root:xnu-6153.141.2~1/RELEASE_X86_64 x86_64 path (/usr/local/bin /usr/bin /bin /usr/sbin /sbin /Library/TeX/texbin /opt/X11/bin /Library/Apple/usr/bin ~/.emacs.d/bin /usr/local/opt/llvm/bin /usr/local/sbin ~/Developer/.flutter/bin /Applications/Emacs.app/Contents/MacOS/libexec/) EMACS dir ~/.emacs.d/ version 27.1 build Aug 17, 2020 buildopts --with-mac --enable-mac-app=/Users/travis/build/railwaycat/homebrew-emacsmacport/build-scripts/emacs-source/tmproot --prefix=/Users/travis/build/railwaycat/homebrew-emacsmacport/build-scripts/emacs-source/tmproot --enable-mac-self-contained --with-modules features NOTIFY KQUEUE ACL GNUTLS LIBXML2 ZLIB TOOLKIT_SCROLL_BARS MODULES THREADS JSON PDUMPER LCMS2 GMP traits (server-running envvar-file) DOOM dir ~/.doom.d/ version 2.0.9 build HEAD -> develop 3e2c98a0a 2020-10-10 23:19:06 -0400 elc-files 0 modules (:completion company ivy :ui doom doom-dashboard doom-quit hl-todo modeline nav-flash ophints (popup +defaults) treemacs vc-gutter vi-tilde-fringe window-select workspaces zen :editor (evil +everywhere) file-templates fold (format +onsave) multiple-cursors snippets word-wrap :emacs dired electric undo vc :term eshell :checkers syntax spell :tools editorconfig (eval +overlay) gist (lookup +docsets +dictionary) lsp magit pdf :os macos :lang (cc +lsp) clojure data emacs-lisp (json +lsp) (java +lsp) (javascript +lsp) (kotlin +lsp) (latex +latexmk +cdlatex +lsp +fold) markdown (org +dragndrop +hugo +jupyter +pomodoro +present +roam +noter +pretty) plantuml (python +lsp) sh (swift +lsp) web yaml :app (rss +org) (&user leetcode) :config (default +bindings +smartparens) :input (&user chinese+) :study (&user review) (&user dict +anki)) packages ((lsp-latex :pin a9a26a21bf16b9444021563d844719ace0c5c3b6)) unpin (n/a) elpa (n/a) ```

It's strange that after manually M-x eval-defun at anki-vocabulary--get-pdf-text, the function works, and the error disappeared

chuxubank commented 3 years ago

Disappeared when upgrade doom... weird