Improve diagnostics of input file errors #268
Merged
Conversation
Add linenum field to track the number of lines read so far. Increment it each time s_textbuffer_next_line() is called.
Pass the name of the buffer which will be displayed in verbose output.
When verbose_loading is set, print input files line by line as they are parsed.
Set liblepton's verbose_loading global variable if --verbose (-v) command line option is passed to lepton-schematic.
Reformat, replace "gschem" with "lepton-schematic", offer to use --verbose command line option.
Return current line number of a given TextBuffer (lenenum field).
If an error occur during the parsing of input file, add line number information to the error message. Report line number where the parsing process is stopped.
|
@graahnul-grom, thanks! Please update NEWS as well. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
lepton-schematicprint input file line by line when invoked with-v(--verbose) flag"Failed to load file"error message (include line number where the parser was stopped)