-
-
Notifications
You must be signed in to change notification settings - Fork 43
DocParser should be changed to Parser in tools/check.py #299
Comments
On the off-chance that a simple change of the parse function would make things more better, I tried
but no such luck. That throws the following error.
I hope that's helpful to someone.... |
The recent releases of CommonMark have made a variety of internal code structure changes that broke compatibility. Good to see that project active after long dormancy, but admittedly we were taking the stability for granted. A very short term fix would be to pin to the 0.5.4 version in requirements.txt: (or manually downgrade using Longer term there are plans to change over to a different parser when the lessons do. Will this be a blocker for your work (if the proposed fix doesn't suffice)? I'm apparently absolute rubbish at predicting my schedule, but could dig further if it meant getting a lesson moving again. |
I can't speak for @naupaka, but that works for me. I manually downgraded, and it's now working. |
Yup no problem for me either in the short term. I'm still using 0.5.4 anyway. I'll try and remember not to upgrade. |
Thanks for tracking this one down - getting the template and tools back
in order is the next big task for the lesson maintainers' committee, and
I hope we'll get to it in two weeks.
|
This was found in #291 as well. If it is resolved, both issues can be closed. |
We've rewritten |
I ran into some problems and found the solutions in swcarpentry/r-novice-gapminder#7 swcarpentry/DEPRECATED-lesson-template#299
On line 87 of
tools/check.py
,parser = CommonMark.DocParser()
should be changed toparser = CommonMark.Parser()
to reflect the change in versions of CommonMark > 0.6.0.See readthedocs/commonmark.py@e5e32bb
I'd submit this as a PR but I am not sure on the SWC policy on library versions and breaking old things to ensure compatibility with newest versions.
The text was updated successfully, but these errors were encountered: