Feneric / doxypypy

A more Pythonic version of doxypy, a Doxygen filter for Python.
GNU General Public License v2.0
149 stars 49 forks source link

Offset in line numbers #83

Open wimcoelus opened 2 years ago

wimcoelus commented 2 years ago

We use doxypypy with ubuntu 20.04 and windows 10 python version >3.8 or greater. We install the module using pip3 git because of an error when using the pip version. When using FILTER_PATTERNS = *.py=py_filter and configuring code browsing options in Doxygen we notice an offset in the line numbers off the code block. As in the codeblocks starts halfway the function and shows lines from the next function.

We use a workaround by running doxypypy as a preprocess step on al our code with a simple bash script

#!/bin/bash
set -x
EXT=py
SRC=/home/code/lib/mylib/
DST=./lib
function process() {
    for i in $SRC*.${EXT}; do
        echo $i
        if [ "${i}" != "${i%.${EXT}}" ];then
            n=$(basename $i)
            echo $n
            doxypypy -a -c $i > $DST/$n
        fi
    done
}

process $EXT $DIR $DST

And when using doxygen with this preprocessed files all output is correct.

Not 100% sure if this is a doxypyy or a doxygen issue.

doxygen version is 1.9.2 but same behavior also visible in 1.8.17