Coder Social home page Coder Social logo

gcov7-viewer's Introduction

GCOV7 VIEWER

Background

  • Compatiable for plugin Gcov Viewer in VSCode
  • Transfers gcov-7 line format to gcov-9 json format

Limitation

  • Only valid for absolute path project temporarily now
  • ✔️Tested build suite: CMake + Makefiles
  • ❌Failed test build suite: CMake + Ninja
  • You must install Python 3

Usage

  • Nothing to config, this extension config gcov7 adapter as gcov binary

gcov7-viewer's People

Contributors

benenzhu avatar gitmensch avatar xiaoyun94 avatar

Stargazers

 avatar

Watchers

 avatar  avatar

gcov7-viewer's Issues

Accidental Install, Uninstall Failed

I accidentally installed this tool, but upon uninstalling, Gcov Viewer just throws errors:

Error while trying to run gcov, try to change the "Gcov Binary" setting. Error: Command failed: /home/tentorm/.vscode-server/extensions/bigforce.gcov7-viewer-0.0.5/gcov7-json.py --help /bin/sh: 1: /home/tentorm/.vscode-server/extensions/bigforce.gcov7-viewer-0.0.5/gcov7-json.py: not found

I've tried deleting the .vscode-server/extension/bigforce.gcov7-viewer-0.0.5 folder, but there was no improvement.

EDIT: was able to fix it by reinstalling gcc and purging the entire vscode-server folder after a reboot

support older gcov versions (-x -> -p -> none)

gcov 7 introduced --hash-filenames (which is used as -x in the script).
gcovr checks once if this option is available (peeking into gcov's help), if it isn't then --preserve-paths (-p) is used instead (actually gcovr also checks for this option in the help and if it isn't available it uses neither of them and output a warning).

Can you please add the same behaviour? This would help in "legacy" environments where you can't easily update gcc (which sadly has to matches gcov).

Unable to open /root/test.log

Attempting to use this plugin fails because it tries to open /root/test.log, which is inaccessible to most users. Removing the following lines appears to resolve the issue:

file = open("/root/test.log", "w")
file.write(os.getcwd() + "\n")
file.write(" ".join(sys.argv) + "\n")
file.close()

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.