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

Renaming note-types breaks them #177

Open
ShaddyDC opened this issue Dec 22, 2020 · 2 comments
Open

Renaming note-types breaks them #177

ShaddyDC opened this issue Dec 22, 2020 · 2 comments

Comments

@ShaddyDC
Copy link

@ShaddyDC ShaddyDC commented Dec 22, 2020

Hey, I'm using this project as the obsidian extension, and I really like it so far. Thank you!
I ran into an issue when using it today though. Namely, I wasn't able to create cards for a specific note type I'd renamed earlier.
After some debugging, I noticed that said type is broken in the Note Type Table too, and none of the fields are shown.

Regenerating the Note Type Table doesn't fix it and yields this error.

I noticed that, while the note type name now provided by anki is the new version, the one populating the dictionary plugin.fields_dict was the old one, thus yielding this error.

I fixed it by manually going into .obsidian/plugins/obsidian-to-anki-plugin/data.json, removing instances of the new name and renaming instances of the old name to the new one.

@Pseudonium
Copy link
Owner

@Pseudonium Pseudonium commented Dec 23, 2020

Oh, interesting! I’ll see what I can do to fix this

@serpro69
Copy link

@serpro69 serpro69 commented Feb 1, 2021

Have a similar issue.
As a temporary workaround you can do this - open the data.json file located in .obsidian/plugins/obsidian-to-anki-plugin and edit it manually, save the file, and restart obsidian.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
3 participants