Comments (11)
Hold on guys, we will get coverage build-in in the nearest (IMHO) CLion release
from c-cpp-coverage-for-clion.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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)
- net.zero9178.cov.data.LLVMCoverageGenerator: lass java.lang.Integer cannot be cast to class java.lang.Boolean HOT 5
- Crash when runnig gcov HOT 1
- Documentation seems incorrect for clang 9 HOT 2
- Exception in CLion HOT 3
- Viewing coverage for library targets HOT 1
- Running into exception when defining llvm-cov path HOT 2
- [2.11] Exception with Clang(8/9) HOT 3
- No llvm-profdata specified to accompany llvm-cov on macOS HOT 8
- Remote Host Support
- 0% files, 0% lines covered. HOT 1
- Questions about usage, as a novice user HOT 9
- Exception in CLion HOT 13
- Small suggestion: Clearer tooltip on the Run action? HOT 2
- Maybe provide feedback if no results after clicking Plugin's action HOT 2
- Function names not demangled - how do I fix my settings? HOT 10
- Create button not visible in the "Missing compilation flags" message
- The plugin does not work with some light CLion themes HOT 1
- [1.1.3] String index out of range: -1
- gcov called with -b arg even though branch coverage is disabled HOT 4
- WSL support? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from c-cpp-coverage-for-clion.