0

I installed Emacs 25.1.2 on Windows 10 machine, then installed yasnippet library from Elpa. Copied all my snippets from Linux machine. But for some reason none of them work. When I open a file I get this error:

File mode specification error: (wrong-type-argument integerp nil)
[yas] Loading for `cperl-mode', just-in-time: 
      (lambda nil (yas--load-directory-1 
          (quote D:/me/.emacs.d/yasnippets/cperl-mode) (quote cperl-mode)))!
[yas] Loading compiled snippets from D:/me/.emacs.d/yasnippets/cperl-mode
while: Wrong type argument: integerp, nil

Maybe, something is wrong with installed library?

  • Can you set debug-on-error and post the backtrace? – npostavs Mar 16 '17 at 12:37
  • @npostavs Will do, when reach that computer – user4035 Mar 16 '17 at 13:32
  • 1
    Before trying to get a backtrace, load the source file (*.el, not *.elc) for the yas code. That might give a more informative backtrace. – Drew Mar 16 '17 at 14:08
  • For the record, a similar report could not be reproduced from emacs -Q, so this is likely some kind of interaction with another package. – npostavs Jun 24 '17 at 23:11
  • 1
    @npostavs Yes, I had 2 versions of yasnippet installed. I removed the old one. And used the new from Elpa, and it started to work. – user4035 Jun 24 '17 at 23:47

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.