VACUMM / sphinx-fortran

Fortran domain and autodoc extensions to Sphinx
Other
45 stars 29 forks source link

Error when parsing source with abstract interface #32

Open jhaiduce opened 3 years ago

jhaiduce commented 3 years ago

When I try to use fortran_autodoc on a source file that uses an abstract interface, sphinx crashes with

Extension error:
Handler <function fortran_parse at 0x112981d30> for event 'builder-inited' threw an exception (exception: crackline: groupcounter(=0) is nonpositive. Check the blocks.)
make: *** [html] Error 2

Example Fortran source file:

module test
  abstract interface
  end interface
end module test
jhaiduce commented 3 years ago

Just realized this is probably a duplicate of #30.