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
I encountered a error when I was making a document:
File "~/.pyenv/versions/anaconda3-2019.10/lib/python3.7/site-packages/sphinxfortran/fortran_autodoc.py", line 348, in scan
m = block'vardescsearch'
KeyError: 'vardescsearch'
I have solved the error by changing the following lines in fortran_autodoc.py:
line 348
if line.strip().startswith('!'):
continue
m = block'vardescsearch'
if m:
block['vars'][m.group('varname').lower()]['desc'] = m.group('vardesc')
to
if line.strip().startswith('!'):
continue
if 'vardescsearch' in block:
m = block'vardescsearch'
if m:
block['vars'][m.group('varname').lower()]['desc'] = m.group('vardesc')
Also, in the user manual, I wonder
.. f:autovariable:: modname
instead,
.. f:automodule:: modname
Best regards.
The text was updated successfully, but these errors were encountered:
* Running 2to3 on python files
* Small changes for python3
Also I made an extra check if varsdescsearch is a key
because this can throw an error if it the key is not there
The regex for vardescsearch, because the current one did not
give proper match after variable declaration.
* Corrected bug for if triggered at the last line
In that case the src[iline+1] goes out of bound. So I added an extra
condition that checks that the length is less then len(src)-1.
* Removed unneeded changes compared to v1.1.1
* Fixes issues #25
* Fixes issues #25
Co-authored-by: rofl <[email protected]>
Dear developers,
I encountered a error when I was making a document:
File "~/.pyenv/versions/anaconda3-2019.10/lib/python3.7/site-packages/sphinxfortran/fortran_autodoc.py", line 348, in scan
m = block'vardescsearch'
KeyError: 'vardescsearch'
I have solved the error by changing the following lines in fortran_autodoc.py:
line 348
if line.strip().startswith('!'):
continue
m = block'vardescsearch'
if m:
block['vars'][m.group('varname').lower()]['desc'] = m.group('vardesc')
to
if line.strip().startswith('!'):
continue
if 'vardescsearch' in block:
m = block'vardescsearch'
if m:
block['vars'][m.group('varname').lower()]['desc'] = m.group('vardesc')
Also, in the user manual, I wonder
.. f:autovariable:: modname
instead,
.. f:automodule:: modname
Best regards.
The text was updated successfully, but these errors were encountered: