Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Offset in line numbers #83

Open
wimcoelus opened this issue Dec 10, 2021 · 0 comments
Open

Offset in line numbers #83

wimcoelus opened this issue Dec 10, 2021 · 0 comments

Comments

@wimcoelus
Copy link

wimcoelus commented Dec 10, 2021

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant