supermemo / SuperMemoAssistant.Plugins.PDF

Incremental PDF for SuperMemo
https://www.supermemo.wiki/sma/
MIT License
33 stars 5 forks source link

SMA PDF plugin crashes when making extract on pdf whose source element has no template #115

Open rajlego opened 4 years ago

rajlego commented 4 years ago

Description

I have a pdf imported. When it opens and I tried to make extract, SMA crashes.

Steps to Reproduce

Tell us how to reproduce this issue.

  1. Import pdf
  2. Make sure element has no template (I checked with ctrl+shift+p)
  3. Make extract
  4. Crash

Fix:

  1. use ctrl+shift+m
  2. Apply any template
  3. Extracts now work

Expected behavior

I can make extracts without having to do anything special

Environment (fill where applicable)

alexis- commented 4 years ago

1) Moved to the appropriate repository.

2) I can't reproduce this, are you sure this is due to the template ? I extract from template-less PDF elements all the time in my collection.

rajlego commented 4 years ago

I think this is actually due to concepts. When I import something, if pdf is not assigned a concept, it won't make extracts without an error. Once I do assign it one, I have to restart. I'll show you sometime on vc that'll be easier