Can you give a few more details? What versions of Jython and Python,
and what OS are you using?
--Ned.
--Ned.
Some of it is attached as a patch to issue 100, so it recognises the
source files at all. Obviously not much will work without this.
Another issue is the fact that Jython isn't always in control. At
least with Eclipse RCP, where I've been using it, control returns to
Java and stays there. This means that coverage.py doesn't collect
anything, because it relies on "atexit", and control never returns for
that to be called. To work around this I created a method
"process_shutdown" to basically call the save() method so that some
info came out at all.
Another one is that threads might be created by Java, and hence the
Jython code in them doesn't get tracked because threading.settrace
doesn't affect them. I added a little call that could be made when a
Java thread enters Jython code the first time.
The fourth is the issue I reported in issue 120, which I don't have a
solution for. It occurs to me that actually all that might be needed
is a way to exclude clause lines without excluding the whole clause. I
can't tell it to ignore "try." because then it will ignore every try
clause as well.
Regards,
Geoff