Obsidian_to_Anki icon indicating copy to clipboard operation
Obsidian_to_Anki copied to clipboard

obsidian to anki Can't generate card

Open lily8186 opened this issue 1 year ago • 12 comments

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卡片。提示如图。求大神指点) ![控制台信息](https://github.com/Pseudonium/Obsidian_to_Anki/assets/76209421/f3344a6d-441e-4237-a68c-0f 提示信息 232cd2d05f) 插件设置

lily8186 avatar May 28 '23 10:05 lily8186

控制台信息

lily8186 avatar May 28 '23 10:05 lily8186

↑ I got the some problem.

Adam9331 avatar May 31 '23 07:05 Adam9331

Did you update the plugin to 3.4.2?

oskarryn avatar Jun 03 '23 10:06 oskarryn

Did you update the plugin to 3.4.2?

yes

lily8186 avatar Jun 04 '23 02:06 lily8186

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

jasonho1308 avatar Jun 12 '23 10:06 jasonho1308

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

ghost avatar Jun 15 '23 13:06 ghost

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 avatar Jun 16 '23 16:06 lily8186

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

lily8186 avatar Jun 16 '23 16:06 lily8186

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

LucasCodeur avatar Jul 28 '23 20:07 LucasCodeur

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

EvoAlg avatar Jul 31 '23 02:07 EvoAlg

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?

lily8186 avatar Aug 26 '23 15:08 lily8186

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

ArtemisFowl-san avatar Mar 18 '24 16:03 ArtemisFowl-san