You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if (!file.exists(source_file) ||!grepl(rex::rex(start, rex::regex(paste0(package_path, collapse="|"))), source_file)) {
However, rex::regex assumes that the given expression is already an escaped regular expression. That might not be always the case - MacOS is allowing almost all Unicode characters in filenames. In my case, a parent folder contains a "+" (that, unfortunately, cannot be changed).
The effects might vary, but I guess in most cases, the files are simply ignored such that no reports on compiled files are returned.
It should be able to solve this by replacing the relevant expression with
The text was updated successfully, but these errors were encountered:
hsloot
changed the title
parse_gcov assumes that produces source file names are escaped regular expressionsparse_gcov assumes that produced source file names are escaped regular expressions
Dec 12, 2020
The function
parse_gcov
tries to skip all files for whichsource_file
is not below rootpackage_path
. It does that by using a regular expression.covr/R/compiled.R
Line 14 in ebf0e7f
However,
rex::regex
assumes that the given expression is already an escaped regular expression. That might not be always the case - MacOS is allowing almost all Unicode characters in filenames. In my case, a parent folder contains a "+" (that, unfortunately, cannot be changed).The effects might vary, but I guess in most cases, the files are simply ignored such that no reports on compiled files are returned.
It should be able to solve this by replacing the relevant expression with
Possible link to #448.
The text was updated successfully, but these errors were encountered: