Louis
8b7d99af72
[test] Create test for content plugins
9 years ago
Louis
d184f037fc
[WIP] Content errors are now gathered
* Rename `patacrep.content.Content` to `patacrep.content.ContentItem`
* Create pseudo-list `patacrep.content.ContentList`, which has an
`errors` attribute.
* Songs that cannot be parsed at all no longer produce an empty song.
This is highly work in progress: most of the `patacrep.content.*`
packages are broken.
9 years ago
Louis
d40fd9bb15
[song.chordpro] Catch fatal syntax error when a block is not closed
9 years ago
Louis
61a3df1f11
Replace LOGGER.error by LOGGER.warning for catchable errors
9 years ago
Louis
362c6b87ce
Song errors contain a reference to the song they occur in
9 years ago
Louis
5d68bd338f
pylint
9 years ago
Louis
0ae923be3b
Gather songbook errors
9 years ago
Louis
8c86f904cd
Errors that can be ignored are logged as warnings
9 years ago
Louis
efc87a7c8c
Remove `object` superclass (necessary in python2, useless in python3)
9 years ago
Oliverpool
9afd8f7b61
Raise a SongSyntaxError on fatal error
9 years ago
Oliverpool
6d38c97141
expand TODO
9 years ago
Oliverpool
1340bbed02
Include line number only if relevant
9 years ago
Oliverpool
198db1a0e1
Factorize the error recording
9 years ago
Oliverpool
13738f41b9
Typo
9 years ago
Louis
f8c84de29c
Add an `errors` attribute to songs, compiling the song errors
First step to #121
9 years ago
oliverpool
8b0b467e50
Merge pull request #175 from patacrep/lineno
Add line number to AST elements
9 years ago
Louis
d0e7bf287f
Merge branch 'master' into lineno
9 years ago
Louis
9b1b94cdd4
Merge pull request #174 from patacrep/new_extensions
New file extensions
9 years ago
Oliverpool
9d74a41f53
improve test_parser docstring
9 years ago
Oliverpool
cd25a07956
remove useless comment
9 years ago
Oliverpool
3b0ec365c3
Keep .tex extension for templates
9 years ago
Oliverpool
7ee17760cd
Keep backward compatibility with .sg songs
9 years ago
Oliverpool
20aeae8003
(pylint) unused variable
9 years ago
Oliverpool
7e8f69483b
Simplify converter
9 years ago
Oliverpool
85da39dac6
Syntax error in converter
9 years ago
Oliverpool
e1e024d2ce
Convert example extensions
9 years ago
Oliverpool
312b63df60
Change test_compilation extensions
9 years ago
Oliverpool
11f49258d3
Change test_parser extensions
9 years ago
Louis
a5c9b48674
Merge pull request #172 from patacrep/invalid_source
Parsing hangs when file is inconsistent
9 years ago
Louis
b1eb5a0f87
Use variable number of arguments for `chdir`
9 years ago
Oliverpool
1f09d6af78
Rename parse_failure test function
9 years ago
Oliverpool
46ab0b047f
Code cleaning
9 years ago
Oliverpool
5eae2230b2
Implement test for parsing failures
9 years ago
Oliverpool
90c77201a9
Useless existence test
9 years ago
Oliverpool
f70df32d6d
Use files.chdir
9 years ago
Louis
70f17b8a0f
Add line number to AST elements
First step for #121
9 years ago
Oliverpool
4cbbe29d28
Localize were the error parsing should be made
9 years ago
Oliverpool
db1a19a873
Only skip the erro if the end of the file wasn't reached
9 years ago
Louis
205c6c3c65
Use generator instead of list
9 years ago
Louis
48fae04d85
Replace list of lists of iterators by `itertools.chain`
9 years ago
Louis
46f3790a89
Append default datadir to each datadir list (or iterator)
9 years ago
Oliverpool
9dca42bc16
Problem localization?
9 years ago
Oliverpool
b612ec9f67
Parsing hangs when file is inconsistent
9 years ago
Oliverpool
ba802a79fb
Escape ] in regexp
9 years ago
oliverpool
104e637de7
etoolbox is required for patadata
9 years ago
oliverpool
4d5e739efd
Italian and portuges babel packages were missing
9 years ago
Oliverpool
af147a57fa
Simplify Requirements.txt
Closes #162
9 years ago
oliverpool
9189bd6611
Merge pull request #168 from patacrep/setup_data
[setup] Data is included differently depending on platform
9 years ago
Louis
99957c20d3
[setup] Data is included differently depending on platform
We cannot manage to make `hgtools` work on windows. So it's the default,
excepted on windows where we use and alternate method.
9 years ago
Louis
b18a202f0d
Merge pull request #165 from patacrep/argument_simplification
Simplify some method arguments
9 years ago