Giter VIP home page Giter VIP logo

Comments (4)

nyue avatar nyue commented on July 20, 2024

I am also encountering this problem.

Looking at the python code and my case, I believe it has to do with the fact that if function_name is not a simple/single word and contains spaces, ::, << >> etc (in the case of templatize code, the dictionary will fail to find the item.

I am using 1.4

from lcov-to-cobertura-xml.

rankers avatar rankers commented on July 20, 2024

Yep exactly the same from me, I'm on verison 1.4. I'm trying to use this on some objective-c code.

Function names can take the form FN:36,-[className methodName: someMoreStuff:] so when you make the line_parts array by splitting on ":" it actually splits the function name into bits.

When you come round to setting the function name variable you pick the last item in the line_parts array to work on but it can be just "]".

Maybe a work around could be splitting on ":" to initially get the input_type but then rejoining all but the first element back up to get an array of line parts as if there was only ever one colon on the line

Something like:

line_parts = [line_parts[0]] + [":".join(line_parts[1:])]

from lcov-to-cobertura-xml.

rankers avatar rankers commented on July 20, 2024

Ahh no - I see @nyue has already put a way better fix - its just not released yet. I'll just clone from here rather than pip installing.

Didn't know you could pass a second argument to split to limit the number. Nice.

from lcov-to-cobertura-xml.

eriwen avatar eriwen commented on July 20, 2024

I have released @nyue's fix and another one in v1.5 -- pushed to PyPI last night.

Please re-open this issue if anyone's problem's aren't handled.

from lcov-to-cobertura-xml.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.