vedang / pdf-tools

Emacs support library for PDF files.
https://pdftools.wiki
GNU General Public License v3.0
618 stars 89 forks source link

autoload: pdf-sync.elc failed to define function pdf-tools #253

Open mandarm opened 8 months ago

mandarm commented 8 months ago

Not sure if I'm doing something silly, but I get the following error on opening a PDF file for the first time.

File mode specification error: (error Autoloading file ..../.emacs.d/elpa/
     pdf-tools-20230611.239/pdf-sync.elc failed to define function pdf-tools)

Steps for reproducing, starting with emacs -Q

(package-initialize)
(require 'use-package)
(use-package pdf-tools  :mode "\\.pdf\\'")

And then open a pdf file. I get the error, and the contents of the PDF file are displayed as plain text in Fundamental mode.

In my "real" setup (emacs startup with usual init file), the error is displayed, but as far as I can tell, no other functionality seems to be affected.