jasonwilliams / anki

Anki VSCode Plugin
MIT License
273 stars 31 forks source link

Send to Own/DirName Deck creates deck but does not add cards #83

Closed liquidsaul closed 1 year ago

liquidsaul commented 1 year ago

Title says it all.

I have the localhost instance running.

The desk is created however the actual card(s) never appear in the deck so the deck always has 0 cards and I can't add any.

Suggestions? @jasonwilliams

liquidsaul commented 1 year ago

Here is the markdown file I'm using to try and create cards.

# Topic1

## What's the Markdown?

Markdown is a lightweight markup language with plain-text-formatting syntax.
Its design allows it to be converted to many output formats,
but the original tool by the same name only supports HTML.

## Who created Markdown?

John Gruber created the Markdown language in 2004 in collaboration with
Aaron Swartz on the syntax.
jasonwilliams commented 1 year ago

Could you show us your project directory structure @liquidsaul?

what happens when you don’t set a H1?

CC @duguosheng

duguosheng commented 1 year ago

I haven't changed the code of creating card, so I don't know the reason for this...

liquidsaul commented 1 year ago

@jasonwilliams

Structure

$  tree flashcards
flashcards
└── deck1
    └── cluster_update_maintenance.md

I'm guessing its a problem with my directory structure but I'm not sure what the correct setup is.

Send to deck and send to DirName Deck both don't error out and create a desk but no cards are added (even with no H1)

If I don't set H1 with "Send to own deck" the error is -> "Deck not sent: Unable to parse title!"

liquidsaul commented 1 year ago

Issue fixed itself after I got a new M1 Macbook and tried it there.