Coder Social home page Coder Social logo

Comments (11)

kreuzerkrieg avatar kreuzerkrieg commented on June 29, 2024 1

Hold on guys, we will get coverage build-in in the nearest (IMHO) CLion release

from c-cpp-coverage-for-clion.

zero9178 avatar zero9178 commented on June 29, 2024 1

Just pushed an update that should fix this issue. Should take around a day or two till it's approved and pushed

from c-cpp-coverage-for-clion.

zero9178 avatar zero9178 commented on June 29, 2024

If the folder is full of gcov files then you did everything correctly. I am assuming you are using the newest version of the plugin? Do you have any other projects without dependencies where you can reproduce the problem?

from c-cpp-coverage-for-clion.

rdxernest avatar rdxernest commented on June 29, 2024

main.cpp

#include <iostream>

struct foo
{
	std::string bar(int i)
	{ return std::to_string(i); }
};

int main()
{
	foo f;
	std::cout << f.bar(42) << std::endl;
	return 0;
}

CMakeList.txt

CMAKE_MINIMUM_REQUIRED(VERSION 3.12)
PROJECT(BufferedOp)

SET(CMAKE_CXX_STANDARD 17)

ADD_EXECUTABLE(BufferedOp main.cpp)
TARGET_COMPILE_OPTIONS(BufferedOp PUBLIC
                       --coverage)
TARGET_LINK_LIBRARIES(BufferedOp
                      gcov
                      )

The result same as above.

from c-cpp-coverage-for-clion.

mrlukasbos avatar mrlukasbos commented on June 29, 2024

I have this issue as well. I am running CLion 2018.2 with the latest GCoverage (1.1.1) on Ubuntu 18.04

from c-cpp-coverage-for-clion.

NuckNuck avatar NuckNuck commented on June 29, 2024

I have this issue as well. I am running CLion 2018.2 with the latest GCoverage (1.1.1) on Ubuntu 18.04

Ditto. Same behavior and same software versions.

from c-cpp-coverage-for-clion.

Latios96 avatar Latios96 commented on June 29, 2024

I have the same problem on Mac OS 10.14, Clion 2018.2 and Clang 10.0.0. The GCoverage plugin is looking for .gcda files. But when my program is executed with the GCoverage Plugin, no .gcda files are written. However, when I run the program from Clion the standard way, the .gcda files are created.

from c-cpp-coverage-for-clion.

stanislaw avatar stanislaw commented on June 29, 2024

The same problem for me (macOS 10.13.4, Clion 2018.2) 😢

The plugin seems to be pretty much what we would use.

Looking forward to see what ships with the next CLions, as promised by @kreuzerkrieg.

from c-cpp-coverage-for-clion.

stanislaw avatar stanislaw commented on June 29, 2024

Tried the latest version 1.1.2. It now switches to Gathering coverage data... and hangs. Also reported another issue: #2.

My details are the same, just updated CLion: macOS 10.13.4, CLion 2018.3.2.

P.S. I wish I had more time to look into this all myself. Sorry.

from c-cpp-coverage-for-clion.

Nihlus avatar Nihlus commented on June 29, 2024

I'm having the same issue on 1.1.3 - it works in one of my C projects that has a flat folder structure with no subdirectories inside my src dir, but not in my C++ project where the folder structure is more complex.

GCC 9.1.0, CMake 3.14.3, CLion CL-191.7141.37, Linux.

from c-cpp-coverage-for-clion.

Nihlus avatar Nihlus commented on June 29, 2024

Correction: The issue is with GCC 9.1.0. The intermediate coverage format has changed to a JSON format, and that causes breakage. Reverting to GCC 8.3.0 lets me gather coverage data once more.

from c-cpp-coverage-for-clion.

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.