ObsidianToAnki / Obsidian_to_Anki

Script to add flashcards from text/markdown files to Anki
GNU General Public License v3.0
1.54k stars 136 forks source link

obsidian to anki Can't generate card #426

Open lily8186 opened 1 year ago

lily8186 commented 1 year ago

obsidian to anki Can't generate card It shows that the connection with anki is successful, but the anki card will not be generated. The prompt is as shown in the figure. Seek the guidance of the great God (obsidian to anki不能生成卡片 只显示与anki连接成功,但是不会生成anki卡片。提示如图。求大神指点) 控制台信息 插件设置

lily8186 commented 1 year ago

控制台信息

Adam9331 commented 1 year ago

↑ I got the some problem.

oskarryn commented 1 year ago

Did you update the plugin to 3.4.2?

lily8186 commented 1 year ago

Did you update the plugin to 3.4.2?

yes

jasonho1308 commented 1 year ago

Have you ever edit the data.json? it seems that the fields_dict is does not match with the rest of the data

ghost commented 1 year ago

When I had that problem I:

lily8186 commented 1 year ago

Have you ever edit the data.json? it seems that the fields_dict is does not match with the rest of the data

I don't have

lily8186 commented 1 year ago

When I had that problem I:

  • Remove the regex line in the table (in your case ((?:[^\n][\n]?)+) #flashcard ?\n*((?:\n(?:^.{1,3}$|^.{4}(?<!<!--).*))+))
  • Run the plugin (you shouldn't have any problem here, because the Note Type Table should have the Custom Regexp empty).
  • Add again the regex line
  • Run the plugin

Not resolved

LucasCodeur commented 1 year ago

Hello, I have the same problem, I can't generate of flashcards

EvoAlg commented 1 year ago

I had a similar problem. You can see from the console error below that this newly added Regex pattern was not jiving with the rest of the plugin. I removed this Regex and then the other notes uploads worked.

image
lily8186 commented 1 year ago

I had a similar problem. You can see from the console error below that this newly added Regex pattern was not jiving with the rest of the plugin. I removed this Regex and then the other notes uploads worked. image

I removed the custom regular expression and ran the error message again. Did I do something wrong?

ArtemisFowl-san commented 8 months ago

Try uninstalling and reinstalling the plug in. This worked for me.