You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Dec 27, 2020. It is now read-only.
Once issue #34 has been closed, the functionality of the "--verbose" flag should be refactored to output more useful information about the nature of a file's unparseability. Output information should include:
The error type.
The error message.
The literal offending line encountered by the BibTeX parser.
The line number of the unparseable line.
This information can be determined by storing and later inspecting the Exception object created when a parsing error occurs.
Suggested solution
First, pybtex.fs_utils.import_bib_files should be refactored to store the Exception object created when a parsing error occurs instead of storing None in the dictionary it returns.
These Exception objects have a number of parameters which can be queried to determine exactly what happened to cause the parser to fail. For example:
For each unparseable file, the refmanage cli should output the filename (like it does with the default behavior), then each of the items in the list above, indented with a tab.
Once issue #34 has been closed, the functionality of the "--verbose" flag should be refactored to output more useful information about the nature of a file's unparseability. Output information should include:
This information can be determined by storing and later inspecting the
Exception
object created when a parsing error occurs.Suggested solution
First,
pybtex.fs_utils.import_bib_files
should be refactored to store theException
object created when a parsing error occurs instead of storingNone
in the dictionary it returns.These
Exception
objects have a number of parameters which can be queried to determine exactly what happened to cause the parser to fail. For example:For each unparseable file, the
refmanage
cli should output the filename (like it does with the default behavior), then each of the items in the list above, indented with a tab.$ ref --test --verbose bookshelf.bib bookshelf.bib type: syntax error message: entry key expected line number: 228 context: @Book{,\n ^^^
Note
This issue is split from #32.
The above example assumes that issue #33 has not been closed.
The text was updated successfully, but these errors were encountered: