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

Wrong type argument: integer-or-marker-p, nil (develop branch) #89

Open
bitozoid opened this issue Mar 8, 2021 · 2 comments
Open

Wrong type argument: integer-or-marker-p, nil (develop branch) #89

bitozoid opened this issue Mar 8, 2021 · 2 comments

Comments

@bitozoid
Copy link

bitozoid commented Mar 8, 2021

I was getting an error until I upgraded anki-editor to leoc@c68beb4.

Then, I got a new error imho motivated from commit b2cbf48 (develop branch of this repo):

ANKI_FAILURE_REASON: Wrong type argument: integer-or-marker-p, nil

After some debugging, it looks that the new code from b2cbf48 (refactor of anki-editor--build-fields) can not handle empty fields.

As a workaround, I have set just a dash (-) as field value, but I think this should be fixed.

@bitozoid
Copy link
Author

As a matter of fact, I've realized that I cannot push cards with a "reverse" empty field.

@bitozoid
Copy link
Author

bitozoid commented Mar 21, 2021

As a new workaround, I decided to remove headers of empty fields so I get no error. However, that does not empty the field in Anki, but preserves its current Anki value.

EDIT: [...] However, that does not empty the field in Anki. Indeed, it may set the value of the field to the upper org header.

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

No branches or pull requests

1 participant