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

[Bug]: The citation style APA always gets CiteprocRsKit.CRError #1

Closed
twio142 opened this issue May 26, 2023 · 2 comments
Closed

[Bug]: The citation style APA always gets CiteprocRsKit.CRError #1

twio142 opened this issue May 26, 2023 · 2 comments

Comments

@twio142
Copy link

twio142 commented May 26, 2023

What happened?

No matter which variation of APA, it always get the error:

Failed to get Citation with style 'apa' with error: The operation couldn’t be completed. (CiteprocRsKit.CRError error 1.)

While it work with other styles (chicago, ama, mla, etc.) just fine.

Which input causes the bug?

ubib <url>

Version

1.0.0

@zeitlings
Copy link
Owner

Hey @twio142 ,
This is a problem with citeproc-rs not handling some cases when parsing the citation style XML. APA was updated a few days ago and has been failing since. Others have encountered the same problem #156.

Using the WASM demo of citeproc-rs, I found that the errors exposed the offending tokens. Simply removing them from the CSL should fix the problem. Here are the modified styles for APA 7th, 6th and 5th editions that work as expected on my end: apa7+6+5.zip.

You can move them to the "data folder" where the workflow will pick up on them (ubib :c > Browse Data Folder > csl)

@twio142
Copy link
Author

twio142 commented May 26, 2023

It works. Thanks a lot!

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

2 participants