8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
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
A user has a file that we are trying to add to Proskomma. We get this error:
/Users/hubbard/codereview/appbuilder-pwa/node_modules/proskomma-core/dist/index.js:53510 callback(result); ^ Error: Adding document, likely not USFM? : data/books/C02/42MRKarab_HB.usfm {"errors":[{"message":"Syntax Error: Expected Name, found String \"غَرَسَ رَجُلٌ كَرْمًا، وَسَيَّجَهُ وَحَفَرَ مِعْصَرَةً وَبَنَى بُرْجًا لِلْحِرَاسَةِ، ثُمَّ أَجَّرَهُ لِفَلاَّحِينَ وَسَافَرَ. \".","locations":[{"line":940,"column":48}]}]} at /Users/hubbard/codereview/appbuilder-pwa/convert/convertBooks.ts:709:27 at SABProskomma.gqlQuery (/Users/hubbard/codereview/appbuilder-pwa/node_modules/proskomma-core/dist/index.js:53510:9)
Does line 940, column 48 refer to the input file? If I open the file in VSCode and search for the string in quotes, here is what I find:
That text looks like it is on line 933, so it is close to 940?
It would be good to get some context (e.g. chapter, verse).
42MRKarab_HB.usfm.txt
The text was updated successfully, but these errors were encountered:
This specific issue is due to the three quote marks in the text and that we are adding content using gqlQuery syntax.
pk.gqlQuery( `mutation { addDocument( selectors: [ {key: "lang", value: "${context.lang}"}, {key: "abbr", value: "${context.bcId}"} ], contentType: "${book.file.split('.').pop()}", content: """${content}""", tags: [ "sections:${book.section}", "testament:${book.testament}" ] ) }`, (r:any) => { // log if document added successfully ... // if the document is not added successfully, the response return ed by Proskomma includes an error message ... resolve(); }
Mark suggested that we add documents to the docset like the functions in https://github.com/Proskomma/proskomma-core/blob/main/test/lib/load.cjs
Sorry, something went wrong.
No branches or pull requests
A user has a file that we are trying to add to Proskomma. We get this error:
Does line 940, column 48 refer to the input file? If I open the file in VSCode and search for the string in quotes, here is what I find:
That text looks like it is on line 933, so it is close to 940?
It would be good to get some context (e.g. chapter, verse).
42MRKarab_HB.usfm.txt
The text was updated successfully, but these errors were encountered: