Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Some Flashcards are not added, even though I don't have any errors in Obsidian Console #469

Open
Cloufish opened this issue Dec 31, 2023 · 6 comments
Labels
bug Something isn't working

Comments

@Cloufish
Copy link

Cloufish commented Dec 31, 2023

Flashcards are not added, even though I don't have any errors in Obsidian Console

I use a specific regex expression:
((?:[^\n][\n]?)+) #flashcard ?\n*((?:\n(?:^.{1,3}$|^.{4}(?<!<!--).*))+)
That is defined in the original documentation

However, when I run the plugin some Flashcards are created, and some not

  1. I checked regex expression and two of them (all tested) match the expression
  2. I use Basic Flashcard Type, and the Fields are being detected
  3. I have around 400 flashcards in my file, but only 290 are being created
  4. I cleared every setting from the menu—but this didn't help.
  5. I've set allowDuplicate: true in main.js in .obsidian/plugins/obsidian-to-anki-plugin folder
  6. Each flashcard has at least 2 new line characters
@ShootingKing-AM
Copy link
Member

Same issue as ShootingKing-AM#201, Locking the other Issue so discussion can continue on here.

@ShootingKing-AM ShootingKing-AM added the bug Something isn't working label Jan 19, 2024
@hihvan
Copy link

hihvan commented Jan 22, 2024

我也遇到同样的问题,默认正则表达式,在一个约40个抽认卡的md文件中,会有几个无法自动生成,但是把不能生成的文段复制到一个新建的md文件后,再次执行拓展插件,是可以正常生成的。

I also encountered the same problem, the default regular expression, in a md file of about 40 flashcards, there will be a few can not be automatically generated, but the text can not be generated to a new md file, the implementation of the extension plug-in can be generated normally.

问答题和cloze两种都有出现。

@ShootingKing-AM
Copy link
Member

我也遇到同样的问题,默认正则表达式,在一个约40个抽认卡的md文件中,会有几个无法自动生成,但是把不能生成的文段复制到一个新建的md文件后,再次执行拓展插件,是可以正常生成的。

I also encountered the same problem, the default regular expression, in a md file of about 40 flashcards, there will be a few can not be automatically generated, but the text can not be generated to a new md file, the implementation of the extension plug-in can be generated normally.

问答题和cloze两种都有出现。

The translator is not working good. Cant understand your issue here. For any translator to work fine, use simpler and small sentences.

@hihvan
Copy link

hihvan commented Jan 23, 2024

The translator is not working good. Cant understand your issue here. For any translator to work fine, use simpler and small sentences.

**- here is the translation of my text into English:

I'm sorry, my previous statement was not accurate. Here is a revised explanation of the issue I encountered:

I also encountered a similar issue. When I imported a ".Markdown" file containing approximately 47 notes using the default provided regular expression (regex), I found that some notes were not recognized. No flashcards were generated for these notes.
However, when I copied the unrecognized content into a newly created Markdown file, the regular expression was able to recognize it and generate flashcards.
I hope this clarifies the issue I am experiencing.**

_很抱歉,我之前的表述不太准确,下面我重新整理一下我的语言,说明我遇到的情况。情况如下:

  • 我也遇到类似的情况,我的“.Markdown”文件,约47条笔记(note),使用 默认提供的 正则表达式(regex) 导入后,发现有一些笔记没有被识别到。没有生成“Flashcards”
  • 但是,我将没有被识别到的 部分内容,复制到新建的“Markdown文件”后,是可以被正则表达式识别,生成抽认卡的。_

@kafkazov
Copy link

same problem.

@haphanhp
Copy link

me too. got the same thing. I checked with Dev Console, the connect was suceed but no cards added. I tried with both way, by note with syntax and by #flashcard

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

5 participants