问:
Jacoco giving 0% coverage and Intellij Idea gives very less coverage
I am using android studio 3.5.3. After writing unit tests I made sure that unit tests are hitting most of the lines by debugging test cases but coverage is 11% which is very less for my case. Am getting these messages in ide</p>

```<code>---- IntelliJ IDEA coverage runner ----
sampling ...
include patterns:
exclude patterns:Class transformation time: 0.854799694s for 3630 classes or 2.3548200936639117E-4s per class
[2020.02.20 11:53:36] (Coverage): Class data was not extracted: kotlin.reflect.jvm.internal.impl.load.java.lazy.LazyJavaPackageFragmentProvider: java.lang.Throwable
[2020.02.20 11:53:36] (Coverage): Class data was not extracted: kotlin.reflect.jvm.internal.impl.load.java.lazy.LazyJavaTypeParameterResolver$resolve$1: java.lang.Throwable
[2020.02.20 11:53:36] (Coverage): Class data was not extracted: kotlin.collections.CollectionsKt___CollectionsKt$asSequence$$inlined$Sequence$1: java.lang.Throwable
[2020.02.20 11:53:36] (Coverage): Class data was not extracted: kotlin.reflect.jvm.internal.impl.resolve.InlineClassesUtilsKt: java.lang.Throwable
[2020.02.20 11:53:36] (Coverage): Class data was not extracted: kotlin.reflect.jvm.internal.impl.descriptors.impl.SubpackagesScope: java.lang.Throwable
[2020.02.20 11:53:36] (Coverage): Class data was not extracted: kotlin.reflect.jvm.internal.impl.serialization.deserialization.MemberDeserializer$getPropertyFieldAnnotations$1: java.lang.Throwable
[2020.02.20 11:53:36] (Coverage): Class data was not extracted: kotlin.reflect.jvm.internal.impl.metadata.deserialization.BinaryVersion: java.lang.Throwable
[2020.02.20 11:53:36] (Coverage): Class data was not extracted: kotlin.reflect.jvm.internal.impl.types.SimpleType: java.lang.Throwable
[2020.02.20 11:53:36] (Coverage): Class data was not extracted: kotlin.reflect.jvm.internal.impl.descriptors.NotFoundClasses$classes$1: java.lang.Throwable
[2020.02.20 11:53:36] (Coverage): Class data was not extracted: kotlin.reflect.jvm.internal.impl.serialization.deserialization.DeserializedPackageFragmentImpl$initialize$1: java.lang.Throwable
[2020.02.20 11:53:36] (Coverage): Class data was not extracted: kotlin.reflect.jvm.internal.impl.util.OperatorChecks$checks$1: java.lang.Throwable
[2020.02.20 11:53:36] (Coverage): Class data was not extracted: kotlin.reflect.jvm.internal.impl.descriptors.PackageFragmentProviderImpl: java.lang.Throwable
[2020.02.20 11:53:36] (Coverage): Class data was not extracted: kotlin.reflect.jvm.internal.impl.util.OperatorChecks$checks$2: java.lang.Throwable
[2020.02.20 11:53:36] (Coverage): Class data was not extracted: kotlin.reflect.jvm.internal.impl.util.OperatorChecks$checks$3: java.lang.Throwable
[2020.02.20 11:53:36] (Coverage): Class data was not extracted: kotlin.reflect.jvm.internal.impl.load.java.typeEnhancement.NotNullTypeParameter: java.lang.Throwable
[2020.02.20 11:53:36] (Coverage): Class data was not extracted: kotlin.reflect.jvm.internal.impl.load.java.typeEnhancement.SignatureEnhancementBuilder$ClassEnhancementBuilder$FunctionEnhancementBuilder: java.lang.Throwable
[2020.02.20 11:53:36] (Coverage): Class data was not extracted: kotlin.reflect.jvm.internal.impl.load.java.typeEnhancement.TypeEnhancementKt: java.lang.Throwable
[2020.02.20 11:53:36] (Coverage): Class data was not extracted: kotlin.reflect.jvm.internal.impl.load.kotlin.TypeSignatureMappingKt: java.lang.Throwable
[2020.02.20 11:53:36] (Coverage): Class data was not extracted: kotlin.reflect.jvm.internal.impl.builtins.CompanionObjectMapping: java.lang.Throwable
[2020.02.20 11:53:36] (Coverage): Class data was not extracted: kotlin.reflect.jvm.internal.impl.load.java.lazy.descriptors.LazyJavaClassMemberScope$nestedClasses$1: java.lang.Throwable
[2020.02.20 11:53:36] (Coverage): Class data was not extracted: kotlin.reflect.jvm.internal.impl.descriptors.annotations.Annotations$DefaultImpls: java.lang.Throwable
[2020.02.20 11:53:36] (Coverage): Class data was not extracted: kotlin.reflect.jvm.internal.impl.load.kotlin.header.KotlinClassHeader$Kind: java.lang.Throwable
[2020.02.20 11:53:36] (Coverage): Class data was not extracted: kotlin.reflect.jvm.internal.impl.serialization.deserialization.AnnotationDeserializer: java.lang.Throwable
[2020.02.20 11:53:36] (Coverage): Class data was not extracted: kotlin.reflect.jvm.internal.impl.types.typesApproximation.CapturedTypeApproximationKt: java.lang.Throwable
[2020.02.20 11:53:36] (Coverage): Class data was not extracted: kotlin.reflect.jvm.internal.impl.load.java.typeEnhancement.SignatureEnhancement$SignatureParts$extractQualifiersFromAnnotations$1: java.lang.Throwable
[2020.02.20 11:53:36] (Coverage): Class data was not extracted: kotlin.reflect.jvm.internal.impl.load.kotlin.SignatureBuildingComponents: java.lang.Throwable
[2020.02.20 11:53:36] (Coverage): Class data was not extracted: kotlin.reflect.jvm.internal.impl.load.java.FakePureImplementationsProvider: java.lang.Throwable
[2020.02.20 11:53:36] (Coverage): Class data was not extracted: kotlin.collections.ArraysKt___ArraysKt$asSequence$$inlined$Sequence$1: java.lang.Throwable
[2020.02.20 11:53:36] (Coverage): Class data was not extracted: kotlin.reflect.jvm.internal.impl.types.KotlinTypeFactory: java.lang.Throwable
[2020.02.20 11:53:36] (Coverage): Class data was not extracted: kotlin.reflect.jvm.internal.impl.resolve.descriptorUtil.DescriptorUtilsKt: java.lang.Throwable
[2020.02.20 11:53:36] (Coverage): Class data was not extracted: kotlin.reflect.jvm.internal.impl.utils.ReportLevel$Companion: java.lang.Throwable
[2020.02.20 11:53:36] (Coverage): Class data was not extracted: kotlin.reflect.jvm.internal.impl.load.java.lazy.descriptors.JvmPackageScope$kotlinScopes$2: java.lang.Throwable
[2020.02.20 11:53:36] (Coverage): Class data was not extracted: kotlin.reflect.jvm.internal.impl.load.java.lazy.types.RawSubstitution: java.lang.Throwable
[2020.02.20 11:53:36] (Coverage): Class data was not extracted: kotlin.reflect.jvm.internal.impl.load.java.components.JavaAnnotationDescriptor: java.lang.Throwable
[2020.02.20 11:53:36] (Coverage): Class data was not extracted: kotlin.reflect.jvm.internal.impl.serialization.deserialization.builtins.BuiltInSerializerProtocol: java.lang.Throwable
[2020.02.20 11:53:36] (Coverage): Class data was not extracted: kotlin.reflect.jvm.internal.impl.load.java.lazy.descriptors.LazyJavaClassMemberScope: java.lang.Throwable
[2020.02.20 11:53:36] (Coverage): Class data was not extracted: kotlin.reflect.jvm.internal.impl.load.java.BuiltinMethodsWithSpecialGenericSignature: java.lang.Throwable
[2020.02.20 11:53:36] (Coverage): Class data was not extracted: kotlin.reflect.jvm.internal.impl.resolve.scopes.DescriptorKindFilter$Companion: java.lang.Throwable
[2020.02.20 11:53:36] (Coverage): Class data was not extracted: kotlin.reflect.jvm.internal.impl.serialization.deserialization.descriptors.DeserializedClassDescriptor: java.lang.Throwable
[2020.02.20 11:53:36] (Coverage): Class data was not extracted: kotlin.reflect.jvm.internal.impl.load.kotlin.DeserializedDescriptorResolver: java.lang.Throwable
[2020.02.20 11:53:36] (Coverage): Class data was not extracted: kotlin.reflect.jvm.internal.impl.builtins.jvm.MappingUtilKt: java.lang.Throwable
[2020.02.20 11:53:36] (Coverage): Class data was not extracted: kotlin.reflect.jvm.internal.impl.load.java.typeEnhancement.SignatureEnhancementBuilder$ClassEnhancementBuilder: java.lang.Throwable
[2020.02.20 11:53:36] (Coverage): Class data was not extracted: kotlin.reflect.jvm.internal.impl.types.TypeSubstitutionKt: java.lang.Throwable
[2020.02.20 11:53:36] (Coverage): Class data was not extracted: kotlin.reflect.jvm.internal.impl.load.java.lazy.descriptors.LazyJavaPackageScope$classes$1: java.lang.Throwable
[2020.02.20 11:53:36] (Coverage): Class data was not extracted: kotlin.reflect.jvm.internal.impl.load.java.lazy.ContextKt: java.lang.Throwable
[2020.02.20 11:53:36] (Coverage): Class data was not extracted: kotlin.reflect.jvm.internal.impl.resolve.calls.inference.CapturedTypeConstructor: java.lang.Throwable
[2020.02.20 11:53:36] (Coverage): Class data was not extracted: kotlin.reflect.jvm.internal.impl.load.java.lazy.descriptors.LazyJavaStaticClassScope: java.lang.Throwable
[2020.02.20 11:53:36] (Coverage): Class data was not extracted: kotlin.reflect.jvm.internal.impl.load.java.lazy.descriptors.LazyJavaClassDescriptor$declaredParameters$1: java.lang.Throwable
[2020.02.20 11:53:36] (Coverage): Class data was not extracted: kotlin.reflect.jvm.internal.impl.types.TypeCapabilitiesKt: java.lang.Throwable
[2020.02.20 11:53:36] (Coverage): Class data was not extracted: kotlin.reflect.jvm.internal.impl.serialization.deserialization.descriptors.DeserializedSimpleFunctionDescriptor: java.lang.Throwable
[2020.02.20 11:53:36] (Coverage): Class data was not extracted: kotlin.reflect.jvm.internal.impl.metadata.deserialization.ProtoTypeTableUtilKt: java.lang.Throwable
[2020.02.20 11:53:36] (Coverage): Class data was not extracted: kotlin.reflect.jvm.internal.impl.load.kotlin.JvmTypeFactoryImpl: java.lang.Throwable
[2020.02.20 11:53:36] (Coverage): Class data was not extracted: kotlin.reflect.jvm.internal.impl.builtins.jvm.JvmBuiltInClassDescriptorFactory$cloneable$2: java.lang.Throwable
[2020.02.20 11:53:36] (Coverage): Class data was not extracted: kotlin.reflect.jvm.internal.impl.builtins.functions.BuiltInFictitiousFunctionClassFactory$Companion: java.lang.Throwable
[2020.02.20 11:53:36] (Coverage): Class data was not extracted: kotlin.reflect.jvm.internal.impl.load.kotlin.AbstractBinaryClassAnnotationAndConstantLoader: java.lang.Throwable
[2020.02.20 11:53:36] (Coverage): Class data was not extracted: kotlin.reflect.jvm.internal.impl.load.java.lazy.descriptors.ClassDeclaredMemberIndex: java.lang.Throwable
[2020.02.20 11:53:36] (Coverage): Class data was not extracted: kotlin.reflect.jvm.internal.impl.load.java.JavaIncompatibilityRulesOverridabilityCondition$Companion: java.lang.Throwable
[2020.02.20 11:53:36] (Coverage): Class data was not extracted: kotlin.reflect.jvm.internal.impl.serialization.deserialization.descriptors.DeserializedPackageMemberScope: java.lang.Throwable
[2020.02.20 11:53:36] (Coverage): Class data was not extracted: kotlin.reflect.jvm.internal.impl.resolve.OverridingUtilsKt: java.lang.Throwable
[2020.02.20 11:53:36] (Coverage): Class data was not extracted: kotlin.reflect.jvm.internal.impl.builtins.jvm.JvmBuiltIns: java.lang.Throwable
[2020.02.20 11:53:36] (Coverage): Class data was not extracted: kotlin.reflect.jvm.internal.impl.load.java.BuiltinSpecialProperties: java.lang.Throwable
[2020.02.20 11:53:36] (Coverage): Class data was not extracted: kotlin.reflect.jvm.internal.impl.types.FlexibleTypesKt: java.lang.Throwable
[2020.02.20 11:53:36] (Coverage): Class data was not extracted: kotlin.reflect.jvm.internal.impl.load.java.lazy.descriptors.LazyJavaScope: java.lang.Throwable
[2020.02.20 11:53:36] (Coverage): Class data was not extracted: kotlin.reflect.jvm.internal.impl.metadata.deserialization.TypeTable: java.lang.Throwable
[2020.02.20 11:53:36] (Coverage): Class data was not extracted: au.com.orient.filelogger.FileLogger$$special$$inlined$sortBy$1: java.lang.Throwable
[2020.02.20 11:53:36] (Coverage): Class data was not extracted: kotlin.reflect.jvm.internal.impl.resolve.descriptorUtil.DescriptorUtilsKt$declaresOrInheritsDefaultValue$1: java.lang.Throwable
[2020.02.20 11:53:36] (Coverage): Class data was not extracted: kotlin.reflect.jvm.internal.impl.descriptors.annotations.AnnotationDescriptor$DefaultImpls: java.lang.Throwable
[2020.02.20 11:53:36] (Coverage): Class data was not extracted: kotlin.reflect.jvm.internal.impl.metadata.deserialization.BinaryVersion$Companion: java.lang.Throwable
[2020.02.20 11:53:36] (Coverage): Class data was not extracted: kotlin.reflect.jvm.internal.impl.builtins.FunctionTypesKt: java.lang.Throwable
[2020.02.20 11:53:36] (Coverage): Class data was not extracted: kotlin.reflect.jvm.internal.impl.builtins.ReflectionTypes$Companion: java.lang.Throwable
[2020.02.20 11:53:36] (Coverage): Class data was not extracted: kotlin.reflect.jvm.internal.impl.resolve.scopes.SubstitutingScope: java.lang.Throwable
[2020.02.20 11:53:36] (Coverage): Class data was not extracted: kotlin.reflect.jvm.internal.impl.load.kotlin.header.KotlinClassHeader: java.lang.Throwable
[2020.02.20 11:53:36] (Coverage): Class data was not extracted: kotlin.reflect.jvm.internal.impl.load.kotlin.BinaryClassAnnotationAndConstantLoaderImpl$loadAnnotation$1: java.lang.Throwable
[2020.02.20 11:53:36] (Coverage): Class data was not extracted: kotlin.reflect.jvm.internal.impl.builtins.jvm.JvmBuiltInsSettings$Companion: java.lang.Throwable
[2020.02.20 11:53:36] (Coverage): Class data was not extracted: kotlin.reflect.jvm.internal.impl.builtins.BuiltInsInitializer: java.lang.Throwable
[2020.02.20 11:53:36] (Coverage): Class data was not extracted: kotlin.reflect.jvm.internal.impl.serialization.deserialization.descriptors.DeserializedMemberScope$computeDescriptors$$inlined$let$lambda$1: java.lang.Throwable
[2020.02.20 11:53:36] (Coverage): Class data was not extracted: kotlin.sequences.SequencesKt___SequencesKt$asIterable$$inlined$Iterable$1: java.lang.Throwable
[2020.02.20 11:53:36] (Coverage): Class data was not extracted: kotlin.reflect.jvm.internal.impl.serialization.deserialization.descriptors.DeserializedMemberScope$computeDescriptors$$inlined$let$lambda$3: java.lang.Throwable
[2020.02.20 11:53:36] (Coverage): Class data was not extracted: kotlin.reflect.jvm.internal.impl.builtins.BuiltInsLoader$Companion: java.lang.Throwable
[2020.02.20 11:53:36] (Coverage): Class data was not extracted: kotlin.reflect.jvm.internal.impl.resolve.VisibilityUtilKt: java.lang.Throwable
[2020.02.20 11:53:36] (Coverage): Class data was not extracted: kotlin.reflect.jvm.internal.impl.load.java.SpecialBuiltinMembers: java.lang.Throwable
[2020.02.20 11:53:36] (Coverage): Class data was not extracted: kotlin.reflect.jvm.internal.impl.types.typeUtil.TypeUtilsKt: java.lang.Throwable
[2020.02.20 11:53:36] (Coverage): Class data was not extracted: kotlin.reflect.jvm.internal.impl.renderer.DescriptorRendererModifier: java.lang.Throwable
[2020.02.20 11:53:36] (Coverage): Class data was not extracted: kotlin.reflect.jvm.internal.impl.util.capitalizeDecapitalize.CapitalizeDecapitalizeKt$decapitalizeSmart$1: java.lang.Throwable
[2020.02.20 11:53:36] (Coverage): Class data was not extracted: kotlin.reflect.jvm.internal.impl.serialization.deserialization.descriptors.DeserializedPropertyDescriptor: java.lang.Throwable
[2020.02.20 11:53:36] (Coverage): Class data was not extracted: kotlin.reflect.jvm.internal.impl.serialization.deserialization.descriptors.DeserializedClassDescriptor$DeserializedClassMemberScope: java.lang.Throwable
[2020.02.20 11:53:36] (Coverage): Class data was not extracted: kotlin.reflect.jvm.internal.impl.descriptors.annotations.AnnotationUtilKt: java.lang.Throwable
[2020.02.20 11:53:36] (Coverage): Class data was not extracted: kotlin.reflect.jvm.internal.impl.builtins.SuspendFunctionTypesKt: java.lang.Throwable
[2020.02.20 11:53:36] (Coverage): Class data was not extracted: kotlin.reflect.jvm.internal.impl.serialization.deserialization.MemberDeserializer: java.lang.Throwable
[2020.02.20 11:53:36] (Coverage): Class data was not extracted: kotlin.reflect.jvm.internal.impl.load.java.ErasedOverridabilityCondition: java.lang.Throwable
[2020.02.20 11:53:36] (Coverage): Class data was not extracted: kotlin.reflect.jvm.internal.impl.serialization.deserialization.AnnotationAndConstantLoaderImpl: java.lang.Throwable
[2020.02.20 11:53:36] (Coverage): Class data was not extracted: kotlin.reflect.jvm.internal.impl.serialization.deserialization.DeserializedPackageFragmentImpl: java.lang.Throwable
[2020.02.20 11:53:36] (Coverage): Class data was not extracted: kotlin.reflect.jvm.internal.impl.load.java.typeEnhancement.SignatureEnhancement: java.lang.Throwable
[2020.02.20 11:53:36] (Coverage): Class data was not extracted: kotlin.reflect.jvm.internal.impl.metadata.builtins.BuiltInsBinaryVersion$Companion: java.lang.Throwable
[2020.02.20 11:53:36] (Coverage): Class data was not extracted: kotlin.reflect.jvm.internal.impl.serialization.deserialization.DeserializedClassDataFinder: java.lang.Throwable
[2020.02.20 11:53:36] (Coverage): Class data was not extracted: kotlin.reflect.jvm.internal.impl.utils.Jsr305State: java.lang.Throwable
[2020.02.20 11:53:36] (Coverage): Class data was not extracted: kotlin.reflect.jvm.internal.impl.descriptors.impl.ValueParameterDescriptorImpl: java.lang.Throwable
[2020.02.20 11:53:36] (Coverage): Class data was not extracted: kotlin.reflect.jvm.internal.impl.serialization.deserialization.ProtoBasedClassDataFinder: java.lang.Throwable
[2020.02.20 11:53:36] (Coverage): Class data was not extracted: kotlin.reflect.jvm.internal.impl.types.KotlinTypeKt: java.lang.Throwable
[2020.02.20 11:53:36] (Coverage): Class data was not extracted: kotlin.reflect.jvm.internal.impl.utils.SmartSet$Companion: java.lang.Throwable
[2020.02.20 11:53:36] (Coverage): Class data was not extracted: kotlin.reflect.jvm.internal.impl.load.java.lazy.descriptors.LazyJavaClassMemberScope$constructors$1: java.lang.Throwable
[2020.02.20 11:53:36] (Coverage): Class data was not extracted: kotlin.reflect.jvm.internal.impl.descriptors.impl.ValueParameterDescriptorImpl$Companion: java.lang.Throwable
[2020.02.20 11:53:36] (Coverage): Class data was not extracted: kotlin.reflect.jvm.internal.impl.load.java.lazy.descriptors.LazyJavaPackageFragment$partToFacade$2: java.lang.Throwable
[2020.02.20 11:53:36] (Coverage): Class data was not extracted: kotlin.reflect.jvm.internal.impl.descriptors.TypeParameterUtilsKt: java.lang.Throwable
[2020.02.20 11:53:36] (Coverage): Class data was not extracted: kotlin.reflect.jvm.internal.impl.descriptors.PossiblyInnerType: java.lang.Throwable
[2020.02.20 11:53:36] (Coverage): Class data was not extracted: kotlin.reflect.jvm.internal.impl.descriptors.annotations.CompositeAnnotations: java.lang.Throwable
[2020.02.20 11:53:36] (Coverage): Class data was not extracted: kotlin.reflect.jvm.internal.impl.serialization.deserialization.MemberDeserializer$getAnnotations$1: java.lang.Throwable
[2020.02.20 11:53:36] (Coverage): Class data was not extracted: kotlin.reflect.jvm.internal.impl.load.java.JvmAnnotationNamesKt: java.lang.Throwable
[2020.02.20 11:53:36] (Coverage): Class data was not extracted: kotlin.reflect.jvm.internal.impl.renderer.DescriptorRendererImpl: java.lang.Throwable
[2020.02.20 11:53:36] (Coverage): Class data was not extracted: kotlin.reflect.jvm.internal.impl.descriptors.impl.ModuleDescriptorImpl: java.lang.Throwable
[2020.02.20 11:53:36] (Coverage): Class data was not extracted: kotlin.reflect.jvm.internal.impl.load.java.typeEnhancement.SignatureEnhancementKt: java.lang.Throwable
[2020.02.20 11:53:36] (Coverage): Class data was not extracted: kotlin.reflect.jvm.internal.impl.metadata.jvm.deserialization.ClassMapperLite: java.lang.Throwable
[2020.02.20 11:53:36] (Coverage): Class data was not extracted: kotlin.reflect.jvm.internal.impl.resolve.scopes.ResolutionScope$DefaultImpls: java.lang.Throwable
[2020.02.20 11:53:36] (Coverage): Class data was not extracted: kotlin.reflect.jvm.internal.impl.load.kotlin.BinaryClassAnnotationAndConstantLoaderImpl: java.lang.Throwable
[2020.02.20 11:53:36] (Coverage): Class data was not extracted: kotlin.reflect.jvm.internal.impl.descriptors.impl.ModuleDescriptorImpl$packageFragmentProviderForWholeModuleWithDependencies$2: java.lang.Throwable
[2020.02.20 11:53:36] (Coverage): Class data was not extracted: kotlin.reflect.jvm.internal.impl.metadata.jvm.deserialization.JvmNameResolver: java.lang.Throwable
[2020.02.20 11:53:36] (Coverage): Class data was not extracted: kotlin.reflect.jvm.internal.impl.types.AbstractTypeConstructor$supertypes$3: java.lang.Throwable
[2020.02.20 11:53:36] (Coverage): Class data was not extracted: kotlin.reflect.jvm.internal.impl.serialization.deserialization.builtins.BuiltInsPackageFragmentImpl$Companion: java.lang.Throwable
[2020.02.20 11:53:36] (Coverage): Class data was not extracted: kotlin.reflect.jvm.internal.impl.resolve.scopes.ChainedMemberScope: java.lang.Throwable
[2020.02.20 11:53:36] (Coverage): Class data was not extracted: kotlin.reflect.jvm.internal.impl.resolve.scopes.MemberScopeImpl: java.lang.Throwable
[2020.02.20 11:53:36] (Coverage): Class data was not extracted: kotlin.reflect.jvm.internal.impl.load.java.lazy.descriptors.LazyJavaClassDescriptor$LazyJavaClassTypeConstructor: java.lang.Throwable
[2020.02.20 11:53:36] (Coverage): Class data was not extracted: kotlin.reflect.jvm.internal.impl.load.kotlin.AbstractBinaryClassAnnotationAndConstantLoader$loadAnnotationsAndInitializers$1: java.lang.Throwable
[2020.02.20 11:53:36] (Coverage): Class data was not extracted: kotlin.reflect.jvm.internal.impl.load.java.typeEnhancement.Result: java.lang.Throwable
[2020.02.20 11:53:36] (Coverage): Class data was not extracted: kotlin.reflect.jvm.internal.impl.types.checker.TypeCheckerContext: java.lang.Throwable
[2020.02.20 11:53:36] (Coverage): Class data was not extracted: kotlin.reflect.jvm.internal.impl.name.FqNamesUtilKt: java.lang.Throwable
[2020.02.20 11:53:36] (Coverage): Class data was not extracted: kotlin.reflect.jvm.internal.impl.load.java.lazy.descriptors.LazyJavaTypeParameterDescriptor: java.lang.Throwable
[2020.02.20 11:53:36] (Coverage): Class data was not extracted: kotlin.reflect.jvm.internal.impl.serialization.deserialization.TypeDeserializer: java.lang.Throwable
[2020.02.20 11:53:36] (Coverage): Class data was not extracted: kotlin.reflect.jvm.internal.impl.load.java.lazy.descriptors.LazyJavaPackageScope: java.lang.Throwable
[2020.02.20 11:53:36] (Coverage): Class data was not extracted: kotlin.reflect.jvm.internal.impl.utils.CollectionsKt: java.lang.Throwable
[2020.02.20 11:53:36] (Coverage): Class data was not extracted: kotlin.reflect.jvm.internal.impl.load.java.lazy.types.RawTypeImpl: java.lang.Throwable
[2020.02.20 11:53:36] (Coverage): Class data was not extracted: kotlin.reflect.jvm.internal.impl.builtins.jvm.JvmBuiltIns$settings$2$1: java.lang.Throwable
[2020.02.20 11:53:36] (Coverage): Class data was not extracted: kotlin.reflect.jvm.internal.impl.builtins.jvm.JvmBuiltIns$settings$2$2: java.lang.Throwable
[2020.02.20 11:53:36] (Coverage): Class data was not extracted: kotlin.reflect.jvm.internal.impl.renderer.DescriptorRendererOptionsImpl$property$$inlined$vetoable$1: java.lang.Throwable
[2020.02.20 11:53:36] (Coverage): Class data was not extracted: kotlin.reflect.jvm.internal.impl.serialization.deserialization.descriptors.DeserializedMemberScope: java.lang.Throwable
[2020.02.20 11:53:36] (Coverage): Class data was not extracted: kotlin.reflect.jvm.internal.impl.load.java.lazy.descriptors.JvmPackageScope: java.lang.Throwable
[2020.02.20 11:53:36] (Coverage): Class data was not extracted: kotlin.reflect.jvm.internal.impl.builtins.jvm.JvmBuiltInsSettings: java.lang.Throwable
[2020.02.20 11:53:36] (Coverage): Class data was not extracted: kotlin.reflect.jvm.internal.impl.load.java.lazy.LazyJavaResolverContext: java.lang.Throwable
[2020.02.20 11:53:36] (Coverage): Class data was not extracted: kotlin.reflect.jvm.internal.impl.load.java.components.JavaAnnotationMapper: java.lang.Throwable
[2020.02.20 11:53:36] (Coverage): Class data was not extracted: kotlin.reflect.jvm.internal.impl.util.capitalizeDecapitalize.CapitalizeDecapitalizeKt: java.lang.Throwable
[2020.02.20 11:53:36] (Coverage): Class data was not extracted: kotlin.reflect.jvm.internal.impl.util.Checks: java.lang.Throwable
[2020.02.20 11:53:36] (Coverage): Class data was not extracted: kotlin.reflect.jvm.internal.impl.load.java.BuiltinMethodsWithDifferentJvmName: java.lang.Throwable
[2020.02.20 11:53:36] (Coverage): Class data was not extracted: kotlin.reflect.jvm.internal.impl.types.FlexibleTypeImpl: java.lang.Throwable
[2020.02.20 11:53:36] (Coverage): Class data was not extracted: kotlin.reflect.jvm.internal.impl.types.checker.UtilsKt: java.lang.Throwable
[2020.02.20 11:53:36] (Coverage): Class data was not extracted: kotlin.reflect.jvm.internal.impl.builtins.jvm.JvmBuiltInClassDescriptorFactory$1: java.lang.Throwable
[2020.02.20 11:53:36] (Coverage): Class data was not extracted: kotlin.reflect.jvm.internal.impl.serialization.deserialization.ClassDeserializer: java.lang.Throwable
[2020.02.20 11:53:36] (Coverage): Class data was not extracted: kotlin.reflect.jvm.internal.impl.load.java.typeEnhancement.PredefinedEnhancementInfoKt: java.lang.Throwable
[2020.02.20 11:53:36] (Coverage): Class data was not extracted: kotlin.reflect.jvm.internal.impl.load.java.descriptors.UtilKt: java.lang.Throwable
[2020.02.20 11:53:36] (Coverage): Class data was not extracted: kotlin.reflect.jvm.internal.impl.serialization.deserialization.descriptors.DeserializedTypeParameterDescriptor: java.lang.Throwable
[2020.02.20 11:53:36] (Coverage): Class data was not extracted: kotlin.reflect.jvm.internal.impl.load.java.lazy.descriptors.LazyJavaClassDescriptor: java.lang.Throwable
[2020.02.20 11:53:36] (Coverage): Class data was not extracted: kotlin.reflect.jvm.internal.impl.serialization.deserialization.descriptors.DeserializedClassDescriptor$DeserializedClassTypeConstructor: java.lang.Throwable
[2020.02.20 11:53:36] (Coverage): Class data was not extracted: kotlin.reflect.jvm.internal.impl.serialization.deserialization.DeserializationComponents: java.lang.Throwable
[2020.02.20 11:53:36] (Coverage): Class data was not extracted: kotlin.reflect.jvm.internal.impl.load.java.AnnotationTypeQualifierResolver: java.lang.Throwable
[2020.02.20 11:53:36] (Coverage): Class data was not extracted: kotlin.reflect.jvm.internal.impl.utils.Jsr305State$description$2: java.lang.Throwable
[2020.02.20 11:53:36] (Coverage): Class data was not extracted: kotlin.reflect.jvm.internal.impl.types.TypeConstructorSubstitution$Companion: java.lang.Throwable
[2020.02.20 11:53:36] (Coverage): Class data was not extracted: kotlin.reflect.jvm.internal.impl.util.NoDefaultAndVarargsCheck: java.lang.Throwable
[2020.02.20 11:53:36] (Coverage): Class data was not extracted: kotlin.reflect.jvm.internal.impl.serialization.deserialization.TypeDeserializer$simpleType$1: java.lang.Throwable
[2020.02.20 11:53:36] (Coverage): Class data was not extracted: kotlin.reflect.jvm.internal.impl.descriptors.impl.LazyPackageViewDescriptorImpl$memberScope$1: java.lang.Throwable
[2020.02.20 11:53:36] (Coverage): Class data was not extracted: kotlin.reflect.jvm.internal.impl.resolve.constants.ConstantValueFactory: java.lang.Throwable
[2020.02.20 11:53:36] (Coverage): Class data was not extracted: kotlin.reflect.jvm.internal.impl.builtins.functions.BuiltInFictitiousFunctionClassFactory: java.lang.Throwable

</code>```

<p>I am seeing that this happens when in unit test this code get hits :</p>

```<code>            dirFiles?.apply {
                sortBy {
                    it.lastModified()
                }
                for ((i, prevFile) in withIndex()) {
                    if (i <= size - maxLogFileCount) {
                        Log.i("FileLogger", "Deleting log file  named $prevFile")
                        prevFile?.delete()
                    }
                }
            }
</code>```

<p>On other StackOverflow and other online material available online which are as old as 2017 says this is due to IntelliJ coverage tool issue (jacoco has the same issue) as they are not able to handle the inline functions. I just wanted to confirm if this issue is same as above in 2020. And if you have any solutions please let me know.</p>

答: Please follow/comment the issue that is already opened for this problem at YouTrack: https://youtrack.jetbrains.com/issue/KT-27787 </p>

Body:
I am using android studio 3.5.3. After writing unit tests I made sure that unit tests are hitting most of the lines by debugging test cases but coverage is 11% which is very less for my case. Am getting these messages in ide

---- IntelliJ IDEA coverage runner ----
sampling ...
include patterns:
exclude patterns:Class transformation time: 0.854799694s for 3630 classes or 2.3548200936639117E-4s per class
[2020.02.20 11:53:36] (Coverage): Class data was not extracted: kotlin.reflect.jvm.internal.impl.load.java.lazy.LazyJavaPackageFragmentProvider: java.lang.Throwable
[2020.02.20 11:53:36] (Coverage): Class data was not extracted: kotlin.reflect.jvm.internal.impl.load.java.lazy.LazyJavaTypeParameterResolver$resolve$1: java.lang.Throwable
[2020.02.20 11:53:36] (Coverage): Class data was not extracted: kotlin.collections.CollectionsKt___CollectionsKt$asSequence$$inlined$Sequence$1: java.lang.Throwable
[2020.02.20 11:53:36] (Coverage): Class data was not extracted: kotlin.reflect.jvm.internal.impl.resolve.InlineClassesUtilsKt: java.lang.Throwable
[2020.02.20 11:53:36] (Coverage): Class data was not extracted: kotlin.reflect.jvm.internal.impl.descriptors.impl.SubpackagesScope: java.lang.Throwable
[2020.02.20 11:53:36] (Coverage): Class data was not extracted: kotlin.reflect.jvm.internal.impl.serialization.deserialization.MemberDeserializer$getPropertyFieldAnnotations$1: java.lang.Throwable
[2020.02.20 11:53:36] (Coverage): Class data was not extracted: kotlin.reflect.jvm.internal.impl.metadata.deserialization.BinaryVersion: java.lang.Throwable
[2020.02.20 11:53:36] (Coverage): Class data was not extracted: kotlin.reflect.jvm.internal.impl.types.SimpleType: java.lang.Throwable
[2020.02.20 11:53:36] (Coverage): Class data was not extracted: kotlin.reflect.jvm.internal.impl.descriptors.NotFoundClasses$classes$1: java.lang.Throwable
[2020.02.20 11:53:36] (Coverage): Class data was not extracted: kotlin.reflect.jvm.internal.impl.serialization.deserialization.DeserializedPackageFragmentImpl$initialize$1: java.lang.Throwable
[2020.02.20 11:53:36] (Coverage): Class data was not extracted: kotlin.reflect.jvm.internal.impl.util.OperatorChecks$checks$1: java.lang.Throwable
[2020.02.20 11:53:36] (Coverage): Class data was not extracted: kotlin.reflect.jvm.internal.impl.descriptors.PackageFragmentProviderImpl: java.lang.Throwable
[2020.02.20 11:53:36] (Coverage): Class data was not extracted: kotlin.reflect.jvm.internal.impl.util.OperatorChecks$checks$2: java.lang.Throwable
[2020.02.20 11:53:36] (Coverage): Class data was not extracted: kotlin.reflect.jvm.internal.impl.util.OperatorChecks$checks$3: java.lang.Throwable
[2020.02.20 11:53:36] (Coverage): Class data was not extracted: kotlin.reflect.jvm.internal.impl.load.java.typeEnhancement.NotNullTypeParameter: java.lang.Throwable
[2020.02.20 11:53:36] (Coverage): Class data was not extracted: kotlin.reflect.jvm.internal.impl.load.java.typeEnhancement.SignatureEnhancementBuilder$ClassEnhancementBuilder$FunctionEnhancementBuilder: java.lang.Throwable
[2020.02.20 11:53:36] (Coverage): Class data was not extracted: kotlin.reflect.jvm.internal.impl.load.java.typeEnhancement.TypeEnhancementKt: java.lang.Throwable
[2020.02.20 11:53:36] (Coverage): Class data was not extracted: kotlin.reflect.jvm.internal.impl.load.kotlin.TypeSignatureMappingKt: java.lang.Throwable
[2020.02.20 11:53:36] (Coverage): Class data was not extracted: kotlin.reflect.jvm.internal.impl.builtins.CompanionObjectMapping: java.lang.Throwable
[2020.02.20 11:53:36] (Coverage): Class data was not extracted: kotlin.reflect.jvm.internal.impl.load.java.lazy.descriptors.LazyJavaClassMemberScope$nestedClasses$1: java.lang.Throwable
[2020.02.20 11:53:36] (Coverage): Class data was not extracted: kotlin.reflect.jvm.internal.impl.descriptors.annotations.Annotations$DefaultImpls: java.lang.Throwable
[2020.02.20 11:53:36] (Coverage): Class data was not extracted: kotlin.reflect.jvm.internal.impl.load.kotlin.header.KotlinClassHeader$Kind: java.lang.Throwable
[2020.02.20 11:53:36] (Coverage): Class data was not extracted: kotlin.reflect.jvm.internal.impl.serialization.deserialization.AnnotationDeserializer: java.lang.Throwable
[2020.02.20 11:53:36] (Coverage): Class data was not extracted: kotlin.reflect.jvm.internal.impl.types.typesApproximation.CapturedTypeApproximationKt: java.lang.Throwable
[2020.02.20 11:53:36] (Coverage): Class data was not extracted: kotlin.reflect.jvm.internal.impl.load.java.typeEnhancement.SignatureEnhancement$SignatureParts$extractQualifiersFromAnnotations$1: java.lang.Throwable
[2020.02.20 11:53:36] (Coverage): Class data was not extracted: kotlin.reflect.jvm.internal.impl.load.kotlin.SignatureBuildingComponents: java.lang.Throwable
[2020.02.20 11:53:36] (Coverage): Class data was not extracted: kotlin.reflect.jvm.internal.impl.load.java.FakePureImplementationsProvider: java.lang.Throwable
[2020.02.20 11:53:36] (Coverage): Class data was not extracted: kotlin.collections.ArraysKt___ArraysKt$asSequence$$inlined$Sequence$1: java.lang.Throwable
[2020.02.20 11:53:36] (Coverage): Class data was not extracted: kotlin.reflect.jvm.internal.impl.types.KotlinTypeFactory: java.lang.Throwable
[2020.02.20 11:53:36] (Coverage): Class data was not extracted: kotlin.reflect.jvm.internal.impl.resolve.descriptorUtil.DescriptorUtilsKt: java.lang.Throwable
[2020.02.20 11:53:36] (Coverage): Class data was not extracted: kotlin.reflect.jvm.internal.impl.utils.ReportLevel$Companion: java.lang.Throwable
[2020.02.20 11:53:36] (Coverage): Class data was not extracted: kotlin.reflect.jvm.internal.impl.load.java.lazy.descriptors.JvmPackageScope$kotlinScopes$2: java.lang.Throwable
[2020.02.20 11:53:36] (Coverage): Class data was not extracted: kotlin.reflect.jvm.internal.impl.load.java.lazy.types.RawSubstitution: java.lang.Throwable
[2020.02.20 11:53:36] (Coverage): Class data was not extracted: kotlin.reflect.jvm.internal.impl.load.java.components.JavaAnnotationDescriptor: java.lang.Throwable
[2020.02.20 11:53:36] (Coverage): Class data was not extracted: kotlin.reflect.jvm.internal.impl.serialization.deserialization.builtins.BuiltInSerializerProtocol: java.lang.Throwable
[2020.02.20 11:53:36] (Coverage): Class data was not extracted: kotlin.reflect.jvm.internal.impl.load.java.lazy.descriptors.LazyJavaClassMemberScope: java.lang.Throwable
[2020.02.20 11:53:36] (Coverage): Class data was not extracted: kotlin.reflect.jvm.internal.impl.load.java.BuiltinMethodsWithSpecialGenericSignature: java.lang.Throwable
[2020.02.20 11:53:36] (Coverage): Class data was not extracted: kotlin.reflect.jvm.internal.impl.resolve.scopes.DescriptorKindFilter$Companion: java.lang.Throwable
[2020.02.20 11:53:36] (Coverage): Class data was not extracted: kotlin.reflect.jvm.internal.impl.serialization.deserialization.descriptors.DeserializedClassDescriptor: java.lang.Throwable
[2020.02.20 11:53:36] (Coverage): Class data was not extracted: kotlin.reflect.jvm.internal.impl.load.kotlin.DeserializedDescriptorResolver: java.lang.Throwable
[2020.02.20 11:53:36] (Coverage): Class data was not extracted: kotlin.reflect.jvm.internal.impl.builtins.jvm.MappingUtilKt: java.lang.Throwable
[2020.02.20 11:53:36] (Coverage): Class data was not extracted: kotlin.reflect.jvm.internal.impl.load.java.typeEnhancement.SignatureEnhancementBuilder$ClassEnhancementBuilder: java.lang.Throwable
[2020.02.20 11:53:36] (Coverage): Class data was not extracted: kotlin.reflect.jvm.internal.impl.types.TypeSubstitutionKt: java.lang.Throwable
[2020.02.20 11:53:36] (Coverage): Class data was not extracted: kotlin.reflect.jvm.internal.impl.load.java.lazy.descriptors.LazyJavaPackageScope$classes$1: java.lang.Throwable
[2020.02.20 11:53:36] (Coverage): Class data was not extracted: kotlin.reflect.jvm.internal.impl.load.java.lazy.ContextKt: java.lang.Throwable
[2020.02.20 11:53:36] (Coverage): Class data was not extracted: kotlin.reflect.jvm.internal.impl.resolve.calls.inference.CapturedTypeConstructor: java.lang.Throwable
[2020.02.20 11:53:36] (Coverage): Class data was not extracted: kotlin.reflect.jvm.internal.impl.load.java.lazy.descriptors.LazyJavaStaticClassScope: java.lang.Throwable
[2020.02.20 11:53:36] (Coverage): Class data was not extracted: kotlin.reflect.jvm.internal.impl.load.java.lazy.descriptors.LazyJavaClassDescriptor$declaredParameters$1: java.lang.Throwable
[2020.02.20 11:53:36] (Coverage): Class data was not extracted: kotlin.reflect.jvm.internal.impl.types.TypeCapabilitiesKt: java.lang.Throwable
[2020.02.20 11:53:36] (Coverage): Class data was not extracted: kotlin.reflect.jvm.internal.impl.serialization.deserialization.descriptors.DeserializedSimpleFunctionDescriptor: java.lang.Throwable
[2020.02.20 11:53:36] (Coverage): Class data was not extracted: kotlin.reflect.jvm.internal.impl.metadata.deserialization.ProtoTypeTableUtilKt: java.lang.Throwable
[2020.02.20 11:53:36] (Coverage): Class data was not extracted: kotlin.reflect.jvm.internal.impl.load.kotlin.JvmTypeFactoryImpl: java.lang.Throwable
[2020.02.20 11:53:36] (Coverage): Class data was not extracted: kotlin.reflect.jvm.internal.impl.builtins.jvm.JvmBuiltInClassDescriptorFactory$cloneable$2: java.lang.Throwable
[2020.02.20 11:53:36] (Coverage): Class data was not extracted: kotlin.reflect.jvm.internal.impl.builtins.functions.BuiltInFictitiousFunctionClassFactory$Companion: java.lang.Throwable
[2020.02.20 11:53:36] (Coverage): Class data was not extracted: kotlin.reflect.jvm.internal.impl.load.kotlin.AbstractBinaryClassAnnotationAndConstantLoader: java.lang.Throwable
[2020.02.20 11:53:36] (Coverage): Class data was not extracted: kotlin.reflect.jvm.internal.impl.load.java.lazy.descriptors.ClassDeclaredMemberIndex: java.lang.Throwable
[2020.02.20 11:53:36] (Coverage): Class data was not extracted: kotlin.reflect.jvm.internal.impl.load.java.JavaIncompatibilityRulesOverridabilityCondition$Companion: java.lang.Throwable
[2020.02.20 11:53:36] (Coverage): Class data was not extracted: kotlin.reflect.jvm.internal.impl.serialization.deserialization.descriptors.DeserializedPackageMemberScope: java.lang.Throwable
[2020.02.20 11:53:36] (Coverage): Class data was not extracted: kotlin.reflect.jvm.internal.impl.resolve.OverridingUtilsKt: java.lang.Throwable
[2020.02.20 11:53:36] (Coverage): Class data was not extracted: kotlin.reflect.jvm.internal.impl.builtins.jvm.JvmBuiltIns: java.lang.Throwable
[2020.02.20 11:53:36] (Coverage): Class data was not extracted: kotlin.reflect.jvm.internal.impl.load.java.BuiltinSpecialProperties: java.lang.Throwable
[2020.02.20 11:53:36] (Coverage): Class data was not extracted: kotlin.reflect.jvm.internal.impl.types.FlexibleTypesKt: java.lang.Throwable
[2020.02.20 11:53:36] (Coverage): Class data was not extracted: kotlin.reflect.jvm.internal.impl.load.java.lazy.descriptors.LazyJavaScope: java.lang.Throwable
[2020.02.20 11:53:36] (Coverage): Class data was not extracted: kotlin.reflect.jvm.internal.impl.metadata.deserialization.TypeTable: java.lang.Throwable
[2020.02.20 11:53:36] (Coverage): Class data was not extracted: au.com.orient.filelogger.FileLogger$$special$$inlined$sortBy$1: java.lang.Throwable
[2020.02.20 11:53:36] (Coverage): Class data was not extracted: kotlin.reflect.jvm.internal.impl.resolve.descriptorUtil.DescriptorUtilsKt$declaresOrInheritsDefaultValue$1: java.lang.Throwable
[2020.02.20 11:53:36] (Coverage): Class data was not extracted: kotlin.reflect.jvm.internal.impl.descriptors.annotations.AnnotationDescriptor$DefaultImpls: java.lang.Throwable
[2020.02.20 11:53:36] (Coverage): Class data was not extracted: kotlin.reflect.jvm.internal.impl.metadata.deserialization.BinaryVersion$Companion: java.lang.Throwable
[2020.02.20 11:53:36] (Coverage): Class data was not extracted: kotlin.reflect.jvm.internal.impl.builtins.FunctionTypesKt: java.lang.Throwable
[2020.02.20 11:53:36] (Coverage): Class data was not extracted: kotlin.reflect.jvm.internal.impl.builtins.ReflectionTypes$Companion: java.lang.Throwable
[2020.02.20 11:53:36] (Coverage): Class data was not extracted: kotlin.reflect.jvm.internal.impl.resolve.scopes.SubstitutingScope: java.lang.Throwable
[2020.02.20 11:53:36] (Coverage): Class data was not extracted: kotlin.reflect.jvm.internal.impl.load.kotlin.header.KotlinClassHeader: java.lang.Throwable
[2020.02.20 11:53:36] (Coverage): Class data was not extracted: kotlin.reflect.jvm.internal.impl.load.kotlin.BinaryClassAnnotationAndConstantLoaderImpl$loadAnnotation$1: java.lang.Throwable
[2020.02.20 11:53:36] (Coverage): Class data was not extracted: kotlin.reflect.jvm.internal.impl.builtins.jvm.JvmBuiltInsSettings$Companion: java.lang.Throwable
[2020.02.20 11:53:36] (Coverage): Class data was not extracted: kotlin.reflect.jvm.internal.impl.builtins.BuiltInsInitializer: java.lang.Throwable
[2020.02.20 11:53:36] (Coverage): Class data was not extracted: kotlin.reflect.jvm.internal.impl.serialization.deserialization.descriptors.DeserializedMemberScope$computeDescriptors$$inlined$let$lambda$1: java.lang.Throwable
[2020.02.20 11:53:36] (Coverage): Class data was not extracted: kotlin.sequences.SequencesKt___SequencesKt$asIterable$$inlined$Iterable$1: java.lang.Throwable
[2020.02.20 11:53:36] (Coverage): Class data was not extracted: kotlin.reflect.jvm.internal.impl.serialization.deserialization.descriptors.DeserializedMemberScope$computeDescriptors$$inlined$let$lambda$3: java.lang.Throwable
[2020.02.20 11:53:36] (Coverage): Class data was not extracted: kotlin.reflect.jvm.internal.impl.builtins.BuiltInsLoader$Companion: java.lang.Throwable
[2020.02.20 11:53:36] (Coverage): Class data was not extracted: kotlin.reflect.jvm.internal.impl.resolve.VisibilityUtilKt: java.lang.Throwable
[2020.02.20 11:53:36] (Coverage): Class data was not extracted: kotlin.reflect.jvm.internal.impl.load.java.SpecialBuiltinMembers: java.lang.Throwable
[2020.02.20 11:53:36] (Coverage): Class data was not extracted: kotlin.reflect.jvm.internal.impl.types.typeUtil.TypeUtilsKt: java.lang.Throwable
[2020.02.20 11:53:36] (Coverage): Class data was not extracted: kotlin.reflect.jvm.internal.impl.renderer.DescriptorRendererModifier: java.lang.Throwable
[2020.02.20 11:53:36] (Coverage): Class data was not extracted: kotlin.reflect.jvm.internal.impl.util.capitalizeDecapitalize.CapitalizeDecapitalizeKt$decapitalizeSmart$1: java.lang.Throwable
[2020.02.20 11:53:36] (Coverage): Class data was not extracted: kotlin.reflect.jvm.internal.impl.serialization.deserialization.descriptors.DeserializedPropertyDescriptor: java.lang.Throwable
[2020.02.20 11:53:36] (Coverage): Class data was not extracted: kotlin.reflect.jvm.internal.impl.serialization.deserialization.descriptors.DeserializedClassDescriptor$DeserializedClassMemberScope: java.lang.Throwable
[2020.02.20 11:53:36] (Coverage): Class data was not extracted: kotlin.reflect.jvm.internal.impl.descriptors.annotations.AnnotationUtilKt: java.lang.Throwable
[2020.02.20 11:53:36] (Coverage): Class data was not extracted: kotlin.reflect.jvm.internal.impl.builtins.SuspendFunctionTypesKt: java.lang.Throwable
[2020.02.20 11:53:36] (Coverage): Class data was not extracted: kotlin.reflect.jvm.internal.impl.serialization.deserialization.MemberDeserializer: java.lang.Throwable
[2020.02.20 11:53:36] (Coverage): Class data was not extracted: kotlin.reflect.jvm.internal.impl.load.java.ErasedOverridabilityCondition: java.lang.Throwable
[2020.02.20 11:53:36] (Coverage): Class data was not extracted: kotlin.reflect.jvm.internal.impl.serialization.deserialization.AnnotationAndConstantLoaderImpl: java.lang.Throwable
[2020.02.20 11:53:36] (Coverage): Class data was not extracted: kotlin.reflect.jvm.internal.impl.serialization.deserialization.DeserializedPackageFragmentImpl: java.lang.Throwable
[2020.02.20 11:53:36] (Coverage): Class data was not extracted: kotlin.reflect.jvm.internal.impl.load.java.typeEnhancement.SignatureEnhancement: java.lang.Throwable
[2020.02.20 11:53:36] (Coverage): Class data was not extracted: kotlin.reflect.jvm.internal.impl.metadata.builtins.BuiltInsBinaryVersion$Companion: java.lang.Throwable
[2020.02.20 11:53:36] (Coverage): Class data was not extracted: kotlin.reflect.jvm.internal.impl.serialization.deserialization.DeserializedClassDataFinder: java.lang.Throwable
[2020.02.20 11:53:36] (Coverage): Class data was not extracted: kotlin.reflect.jvm.internal.impl.utils.Jsr305State: java.lang.Throwable
[2020.02.20 11:53:36] (Coverage): Class data was not extracted: kotlin.reflect.jvm.internal.impl.descriptors.impl.ValueParameterDescriptorImpl: java.lang.Throwable
[2020.02.20 11:53:36] (Coverage): Class data was not extracted: kotlin.reflect.jvm.internal.impl.serialization.deserialization.ProtoBasedClassDataFinder: java.lang.Throwable
[2020.02.20 11:53:36] (Coverage): Class data was not extracted: kotlin.reflect.jvm.internal.impl.types.KotlinTypeKt: java.lang.Throwable
[2020.02.20 11:53:36] (Coverage): Class data was not extracted: kotlin.reflect.jvm.internal.impl.utils.SmartSet$Companion: java.lang.Throwable
[2020.02.20 11:53:36] (Coverage): Class data was not extracted: kotlin.reflect.jvm.internal.impl.load.java.lazy.descriptors.LazyJavaClassMemberScope$constructors$1: java.lang.Throwable
[2020.02.20 11:53:36] (Coverage): Class data was not extracted: kotlin.reflect.jvm.internal.impl.descriptors.impl.ValueParameterDescriptorImpl$Companion: java.lang.Throwable
[2020.02.20 11:53:36] (Coverage): Class data was not extracted: kotlin.reflect.jvm.internal.impl.load.java.lazy.descriptors.LazyJavaPackageFragment$partToFacade$2: java.lang.Throwable
[2020.02.20 11:53:36] (Coverage): Class data was not extracted: kotlin.reflect.jvm.internal.impl.descriptors.TypeParameterUtilsKt: java.lang.Throwable
[2020.02.20 11:53:36] (Coverage): Class data was not extracted: kotlin.reflect.jvm.internal.impl.descriptors.PossiblyInnerType: java.lang.Throwable
[2020.02.20 11:53:36] (Coverage): Class data was not extracted: kotlin.reflect.jvm.internal.impl.descriptors.annotations.CompositeAnnotations: java.lang.Throwable
[2020.02.20 11:53:36] (Coverage): Class data was not extracted: kotlin.reflect.jvm.internal.impl.serialization.deserialization.MemberDeserializer$getAnnotations$1: java.lang.Throwable
[2020.02.20 11:53:36] (Coverage): Class data was not extracted: kotlin.reflect.jvm.internal.impl.load.java.JvmAnnotationNamesKt: java.lang.Throwable
[2020.02.20 11:53:36] (Coverage): Class data was not extracted: kotlin.reflect.jvm.internal.impl.renderer.DescriptorRendererImpl: java.lang.Throwable
[2020.02.20 11:53:36] (Coverage): Class data was not extracted: kotlin.reflect.jvm.internal.impl.descriptors.impl.ModuleDescriptorImpl: java.lang.Throwable
[2020.02.20 11:53:36] (Coverage): Class data was not extracted: kotlin.reflect.jvm.internal.impl.load.java.typeEnhancement.SignatureEnhancementKt: java.lang.Throwable
[2020.02.20 11:53:36] (Coverage): Class data was not extracted: kotlin.reflect.jvm.internal.impl.metadata.jvm.deserialization.ClassMapperLite: java.lang.Throwable
[2020.02.20 11:53:36] (Coverage): Class data was not extracted: kotlin.reflect.jvm.internal.impl.resolve.scopes.ResolutionScope$DefaultImpls: java.lang.Throwable
[2020.02.20 11:53:36] (Coverage): Class data was not extracted: kotlin.reflect.jvm.internal.impl.load.kotlin.BinaryClassAnnotationAndConstantLoaderImpl: java.lang.Throwable
[2020.02.20 11:53:36] (Coverage): Class data was not extracted: kotlin.reflect.jvm.internal.impl.descriptors.impl.ModuleDescriptorImpl$packageFragmentProviderForWholeModuleWithDependencies$2: java.lang.Throwable
[2020.02.20 11:53:36] (Coverage): Class data was not extracted: kotlin.reflect.jvm.internal.impl.metadata.jvm.deserialization.JvmNameResolver: java.lang.Throwable
[2020.02.20 11:53:36] (Coverage): Class data was not extracted: kotlin.reflect.jvm.internal.impl.types.AbstractTypeConstructor$supertypes$3: java.lang.Throwable
[2020.02.20 11:53:36] (Coverage): Class data was not extracted: kotlin.reflect.jvm.internal.impl.serialization.deserialization.builtins.BuiltInsPackageFragmentImpl$Companion: java.lang.Throwable
[2020.02.20 11:53:36] (Coverage): Class data was not extracted: kotlin.reflect.jvm.internal.impl.resolve.scopes.ChainedMemberScope: java.lang.Throwable
[2020.02.20 11:53:36] (Coverage): Class data was not extracted: kotlin.reflect.jvm.internal.impl.resolve.scopes.MemberScopeImpl: java.lang.Throwable
[2020.02.20 11:53:36] (Coverage): Class data was not extracted: kotlin.reflect.jvm.internal.impl.load.java.lazy.descriptors.LazyJavaClassDescriptor$LazyJavaClassTypeConstructor: java.lang.Throwable
[2020.02.20 11:53:36] (Coverage): Class data was not extracted: kotlin.reflect.jvm.internal.impl.load.kotlin.AbstractBinaryClassAnnotationAndConstantLoader$loadAnnotationsAndInitializers$1: java.lang.Throwable
[2020.02.20 11:53:36] (Coverage): Class data was not extracted: kotlin.reflect.jvm.internal.impl.load.java.typeEnhancement.Result: java.lang.Throwable
[2020.02.20 11:53:36] (Coverage): Class data was not extracted: kotlin.reflect.jvm.internal.impl.types.checker.TypeCheckerContext: java.lang.Throwable
[2020.02.20 11:53:36] (Coverage): Class data was not extracted: kotlin.reflect.jvm.internal.impl.name.FqNamesUtilKt: java.lang.Throwable
[2020.02.20 11:53:36] (Coverage): Class data was not extracted: kotlin.reflect.jvm.internal.impl.load.java.lazy.descriptors.LazyJavaTypeParameterDescriptor: java.lang.Throwable
[2020.02.20 11:53:36] (Coverage): Class data was not extracted: kotlin.reflect.jvm.internal.impl.serialization.deserialization.TypeDeserializer: java.lang.Throwable
[2020.02.20 11:53:36] (Coverage): Class data was not extracted: kotlin.reflect.jvm.internal.impl.load.java.lazy.descriptors.LazyJavaPackageScope: java.lang.Throwable
[2020.02.20 11:53:36] (Coverage): Class data was not extracted: kotlin.reflect.jvm.internal.impl.utils.CollectionsKt: java.lang.Throwable
[2020.02.20 11:53:36] (Coverage): Class data was not extracted: kotlin.reflect.jvm.internal.impl.load.java.lazy.types.RawTypeImpl: java.lang.Throwable
[2020.02.20 11:53:36] (Coverage): Class data was not extracted: kotlin.reflect.jvm.internal.impl.builtins.jvm.JvmBuiltIns$settings$2$1: java.lang.Throwable
[2020.02.20 11:53:36] (Coverage): Class data was not extracted: kotlin.reflect.jvm.internal.impl.builtins.jvm.JvmBuiltIns$settings$2$2: java.lang.Throwable
[2020.02.20 11:53:36] (Coverage): Class data was not extracted: kotlin.reflect.jvm.internal.impl.renderer.DescriptorRendererOptionsImpl$property$$inlined$vetoable$1: java.lang.Throwable
[2020.02.20 11:53:36] (Coverage): Class data was not extracted: kotlin.reflect.jvm.internal.impl.serialization.deserialization.descriptors.DeserializedMemberScope: java.lang.Throwable
[2020.02.20 11:53:36] (Coverage): Class data was not extracted: kotlin.reflect.jvm.internal.impl.load.java.lazy.descriptors.JvmPackageScope: java.lang.Throwable
[2020.02.20 11:53:36] (Coverage): Class data was not extracted: kotlin.reflect.jvm.internal.impl.builtins.jvm.JvmBuiltInsSettings: java.lang.Throwable
[2020.02.20 11:53:36] (Coverage): Class data was not extracted: kotlin.reflect.jvm.internal.impl.load.java.lazy.LazyJavaResolverContext: java.lang.Throwable
[2020.02.20 11:53:36] (Coverage): Class data was not extracted: kotlin.reflect.jvm.internal.impl.load.java.components.JavaAnnotationMapper: java.lang.Throwable
[2020.02.20 11:53:36] (Coverage): Class data was not extracted: kotlin.reflect.jvm.internal.impl.util.capitalizeDecapitalize.CapitalizeDecapitalizeKt: java.lang.Throwable
[2020.02.20 11:53:36] (Coverage): Class data was not extracted: kotlin.reflect.jvm.internal.impl.util.Checks: java.lang.Throwable
[2020.02.20 11:53:36] (Coverage): Class data was not extracted: kotlin.reflect.jvm.internal.impl.load.java.BuiltinMethodsWithDifferentJvmName: java.lang.Throwable
[2020.02.20 11:53:36] (Coverage): Class data was not extracted: kotlin.reflect.jvm.internal.impl.types.FlexibleTypeImpl: java.lang.Throwable
[2020.02.20 11:53:36] (Coverage): Class data was not extracted: kotlin.reflect.jvm.internal.impl.types.checker.UtilsKt: java.lang.Throwable
[2020.02.20 11:53:36] (Coverage): Class data was not extracted: kotlin.reflect.jvm.internal.impl.builtins.jvm.JvmBuiltInClassDescriptorFactory$1: java.lang.Throwable
[2020.02.20 11:53:36] (Coverage): Class data was not extracted: kotlin.reflect.jvm.internal.impl.serialization.deserialization.ClassDeserializer: java.lang.Throwable
[2020.02.20 11:53:36] (Coverage): Class data was not extracted: kotlin.reflect.jvm.internal.impl.load.java.typeEnhancement.PredefinedEnhancementInfoKt: java.lang.Throwable
[2020.02.20 11:53:36] (Coverage): Class data was not extracted: kotlin.reflect.jvm.internal.impl.load.java.descriptors.UtilKt: java.lang.Throwable
[2020.02.20 11:53:36] (Coverage): Class data was not extracted: kotlin.reflect.jvm.internal.impl.serialization.deserialization.descriptors.DeserializedTypeParameterDescriptor: java.lang.Throwable
[2020.02.20 11:53:36] (Coverage): Class data was not extracted: kotlin.reflect.jvm.internal.impl.load.java.lazy.descriptors.LazyJavaClassDescriptor: java.lang.Throwable
[2020.02.20 11:53:36] (Coverage): Class data was not extracted: kotlin.reflect.jvm.internal.impl.serialization.deserialization.descriptors.DeserializedClassDescriptor$DeserializedClassTypeConstructor: java.lang.Throwable
[2020.02.20 11:53:36] (Coverage): Class data was not extracted: kotlin.reflect.jvm.internal.impl.serialization.deserialization.DeserializationComponents: java.lang.Throwable
[2020.02.20 11:53:36] (Coverage): Class data was not extracted: kotlin.reflect.jvm.internal.impl.load.java.AnnotationTypeQualifierResolver: java.lang.Throwable
[2020.02.20 11:53:36] (Coverage): Class data was not extracted: kotlin.reflect.jvm.internal.impl.utils.Jsr305State$description$2: java.lang.Throwable
[2020.02.20 11:53:36] (Coverage): Class data was not extracted: kotlin.reflect.jvm.internal.impl.types.TypeConstructorSubstitution$Companion: java.lang.Throwable
[2020.02.20 11:53:36] (Coverage): Class data was not extracted: kotlin.reflect.jvm.internal.impl.util.NoDefaultAndVarargsCheck: java.lang.Throwable
[2020.02.20 11:53:36] (Coverage): Class data was not extracted: kotlin.reflect.jvm.internal.impl.serialization.deserialization.TypeDeserializer$simpleType$1: java.lang.Throwable
[2020.02.20 11:53:36] (Coverage): Class data was not extracted: kotlin.reflect.jvm.internal.impl.descriptors.impl.LazyPackageViewDescriptorImpl$memberScope$1: java.lang.Throwable
[2020.02.20 11:53:36] (Coverage): Class data was not extracted: kotlin.reflect.jvm.internal.impl.resolve.constants.ConstantValueFactory: java.lang.Throwable
[2020.02.20 11:53:36] (Coverage): Class data was not extracted: kotlin.reflect.jvm.internal.impl.builtins.functions.BuiltInFictitiousFunctionClassFactory: java.lang.Throwable

I am seeing that this happens when in unit test this code get hits :

            dirFiles?.apply {
                sortBy {
                    it.lastModified()
                }
                for ((i, prevFile) in withIndex()) {
                    if (i <= size - maxLogFileCount) {
                        Log.i("FileLogger", "Deleting log file  named $prevFile")
                        prevFile?.delete()
                    }
                }
            }

On other StackOverflow and other online material available online which are as old as 2017 says this is due to IntelliJ coverage tool issue (jacoco has the same issue) as they are not able to handle the inline functions. I just wanted to confirm if this issue is same as above in 2020. And if you have any solutions please let me know.


来源: stackexchange

问:
pgAdmin can't see pgAgent Job scheduler
I've been trying to install PgAgent on PostgreSQL.

As you can see, I have it in my catalog and in the extensions.

But why it doesn't appear on my tablespaces?

I also cant reset the PG admin section

答:
Steps:
1. Install the pgagent to a particular database in a server.
2. create a new connection in pgadmin where give maintainance database as the once to which the pgagent is installed.

This will eneable the pg agent jobs option in the connection database to become visible

ContentLicense: CC BY-SA 4.0

Title: pgAdmin can't see pgAgent Job scheduler


问:
firebase cloud function with N-API deployment failed
Trying to find out if it's possible to run firebase cloud functions with native code (using N-API). I have a simple "hello world" example which works fine under emulator, however when I try to deploy it I get INVALID_ARGUMENT error:

```<code>  status: {
   code:  3
   message:  "INVALID_ARGUMENT"
  }
</code>```

That's is not very informative...
Just wondering if someone could shed some light on the situation. Thanks!

here is the function:

```<code>'use strict';

const functions = require('firebase-functions');

exports.helloWorld = functions.https.onRequest(async(request, response) => {

console.time('Program runtime');

const testAddon = require('bindings')('testaddon.node')
const {promisify} = require('util');

module.exports = testAddon;
const asyncCommand = testAddon.hello();

try {
  const result = await asyncCommand;
  console.log('CONTENT:', result);
  response.send(result);
}
catch (err) {
    console.log('ERROR:', err);
    response.send('ERROR:', err);
}

console.timeEnd('Program runtime');
});
</code>```

and corresponding C++ source:

```<code>#include <napi.h>
namespace functionexample {
  std::string hello();
  Napi::String HelloWrapped(const Napi::CallbackInfo& info);
  Napi::Object Init(Napi::Env env, Napi::Object exports);
}
</code>```

```<code>#include "functionexample.h"
std::string functionexample::hello(){
  return "Hello World";
}
Napi::String functionexample::HelloWrapped(const Napi::CallbackInfo& info)
{
  Napi::Env env = info.Env();
  Napi::String returnValue = Napi::String::New(env, functionexample::hello());

  return returnValue;
}
Napi::Object functionexample::Init(Napi::Env env, Napi::Object exports)
{
  exports.Set(
"hello", Napi::Function::New(env, functionexample::HelloWrapped)
  );

  return exports;
}
</code>```

答:
i'd guess the problem is that testaddon.hello() doesn't return a promise so awaiting on it is a problem. if addon.hello() was an async javascript function then javascript would assure that it returned a promise, but it's a C++ function.

i haven't used promises from an addon before but this might help:

https://github.com/nodejs/node-addon-api/blob/master/doc/promises.md

Body:
Trying to find out if it's possible to run firebase cloud functions with native code (using N-API). I have a simple "hello world" example which works fine under emulator, however when I try to deploy it I get INVALID_ARGUMENT error:

  status: {
   code:  3
   message:  "INVALID_ARGUMENT"
  }

That's is not very informative...
Just wondering if someone could shed some light on the situation. Thanks!

here is the function:

'use strict';

const functions = require('firebase-functions');

exports.helloWorld = functions.https.onRequest(async(request, response) => {

console.time('Program runtime');

const testAddon = require('bindings')('testaddon.node')
const {promisify} = require('util');

module.exports = testAddon;
const asyncCommand = testAddon.hello();

try {
  const result = await asyncCommand;
  console.log('CONTENT:', result);
  response.send(result);
}
catch (err) {
    console.log('ERROR:', err);
    response.send('ERROR:', err);
}

console.timeEnd('Program runtime');
});

and corresponding C++ source:

#include <napi.h>
namespace functionexample {
  std::string hello();
  Napi::String HelloWrapped(const Napi::CallbackInfo& info);
  Napi::Object Init(Napi::Env env, Napi::Object exports);
}

#include "functionexample.h"
std::string functionexample::hello(){
  return "Hello World";
}
Napi::String functionexample::HelloWrapped(const Napi::CallbackInfo& info)
{
  Napi::Env env = info.Env();
  Napi::String returnValue = Napi::String::New(env, functionexample::hello());

  return returnValue;
}
Napi::Object functionexample::Init(Napi::Env env, Napi::Object exports)
{
  exports.Set(
"hello", Napi::Function::New(env, functionexample::HelloWrapped)
  );

  return exports;
}


问:
Convert plain text URLs to HTML hyperlink in PHP
I have a form in HTML, i ask the user to enter a url, once that happens it comes back in plain text in PHP. What i want to happen is that when they enter their URL and submit the link that they have entered will become clickable. This is the code i have. I hope this helps. </p>

```<code>
        <?php
             $firstname = $_POST['firstname'];
             $course = $_POST['course'];
             $projecturl = $_POST['projecturl'];

             echo "<p>You are <span class='textblue'> $firstname</span> and ";
             echo "your course at the college is: <span class='textblue'> $course </span></p> ";
            echo "your project url is: <span class='textblue'> $projecturl</span></p> ";
           echo   "a href=’google.com’>Google</a>” .
                    ?>

</code>```

答:
Try to use parse_url, for example:

```<code><?php
$url = '//www.example.com/path?googleguy=googley';
var_dump(parse_url($url));
?>
</code>```

If you want to search more about this code:
https://www.php.net/manual/en/function.parse-url.php

Body:
I have a form in HTML, i ask the user to enter a url, once that happens it comes back in plain text in PHP. What i want to happen is that when they enter their URL and submit the link that they have entered will become clickable. This is the code i have. I hope this helps.

        <?php
             $firstname = $_POST['firstname'];
             $course = $_POST['course'];
             $projecturl = $_POST['projecturl'];

             echo "
You are  $firstname and ";
             echo "your course at the college is:  $course
 ";
            echo "your project url is:  $projecturl
 ";
           echo   "a href=’google.com’>Google” .
                    ?>

Body:
Try to use parse_url, for example:

<?php
$url = '//www.example.com/path?googleguy=googley';
var_dump(parse_url($url));
?>

If you want to search more about this code:
https://www.php.net/manual/en/function.parse-url.php


问:
How to keep different content of one file in my local and github repository?
I have a database.php. I want to keep it in my github repository without any sensitive information.

First I pushed to my repository without any sensitive info.

Now I added my database info so that I can use it locally.

I added to .gitignore. And I did rm --cached database.php. But it deleted the database.php from my github repository after a push.

How can I keep different content in my local and github repository?

Thanks in advance.

答: You should make 2 different files one actual database.php and one database.php.example or something like that and then add database.php to .gitignore

ContentLicense: CC BY-SA 3.0


问:
AES Encryption/Decryption in Node JS similar to Java
I am trying to replicate the Java code for AES Encryption and Decryption in Node JS.

Java Code

```<code>    SecretKeySpec skeySpec;
    String key = "a4e1112f45e84f785358bb86ba750f48";

    public void encryptString(String key) throws Exception {
        try {
            skeySpec = new SecretKeySpec(key.getBytes(), "AES");
            cipher = Cipher.getInstance("AES");
            cipher.init(1, skeySpec);
            byte encstr[] = cipher.doFinal(message.getBytes());
            String encData = new String(encstr, "UTF-8");
            System.out.println(encData);
        } catch (NoSuchAlgorithmException nsae) {
            throw new Exception("Invalid Java Version");
        } catch (NoSuchPaddingException nse) {
            throw new Exception("Invalid Key");
        }
    }
</code>```

Node JS

```<code>    var encryptKey = function (text) {
        var cipher = crypto.createCipher('aes256', 'a4e1112f45e84f785358bb86ba750f48');
        var crypted = cipher.update(text,'utf8', 'hex')
        crypted += cipher.final('hex');
        console.log(crypted);
        return crypted;
    }
</code>```

I am unable to get the exact cipher-text in Node JS, which i am getting in Java.

答:
Finally after reviewing Java Docs and Node JS Crypto Docs managed to get the result.
We have to use crypto.createCipheriv() instead of crypto.createCipher with a iv.
Here iv will be null.

Code :

```<code>    let crypto = require('crypto');

    var iv = new Buffer.from('');   //(null) iv
    var algorithm = 'aes-256-ecb';
    var password = 'a4e1112f45e84f785358bb86ba750f48';      //key password for cryptography

    function encrypt(buffer){
        var cipher = crypto.createCipheriv(algorithm,new Buffer(password),iv)
        var crypted = Buffer.concat([cipher.update(buffer),cipher.final()]);
        return crypted;
    }

    console.log(encrypt(new Buffer('TextToEncrypt')).toString())
</code>```

Body:
I am trying to replicate the Java code for AES Encryption and Decryption in Node JS.

Java Code

    SecretKeySpec skeySpec;
    String key = "a4e1112f45e84f785358bb86ba750f48";

    public void encryptString(String key) throws Exception {
        try {
            skeySpec = new SecretKeySpec(key.getBytes(), "AES");
            cipher = Cipher.getInstance("AES");
            cipher.init(1, skeySpec);
            byte encstr[] = cipher.doFinal(message.getBytes());
            String encData = new String(encstr, "UTF-8");
            System.out.println(encData);
        } catch (NoSuchAlgorithmException nsae) {
            throw new Exception("Invalid Java Version");
        } catch (NoSuchPaddingException nse) {
            throw new Exception("Invalid Key");
        }
    }

Node JS

    var encryptKey = function (text) {
        var cipher = crypto.createCipher('aes256', 'a4e1112f45e84f785358bb86ba750f48');
        var crypted = cipher.update(text,'utf8', 'hex')
        crypted += cipher.final('hex');
        console.log(crypted);
        return crypted;
    }

I am unable to get the exact cipher-text in Node JS, which i am getting in Java.

Body:
Finally after reviewing Java Docs and Node JS Crypto Docs managed to get the result.
We have to use crypto.createCipheriv() instead of crypto.createCipher with a iv.
Here iv will be null.

Code :

    let crypto = require('crypto');

    var iv = new Buffer.from('');   //(null) iv
    var algorithm = 'aes-256-ecb';
    var password = 'a4e1112f45e84f785358bb86ba750f48';      //key password for cryptography

    function encrypt(buffer){
        var cipher = crypto.createCipheriv(algorithm,new Buffer(password),iv)
        var crypted = Buffer.concat([cipher.update(buffer),cipher.final()]);
        return crypted;
    }

    console.log(encrypt(new Buffer('TextToEncrypt')).toString())


问:
there was an error downloading $metadata from web reference
I'm trying to update/add a web reference from visual studio community 2013 but I have experimented a very tedious error as shown in the images:

Add web reference image

Update web reference image

(Adding web reference is been used in new project to test if I was able to add the web reference)

both errors seems to be related to the fact that there is an error downloading the metadata of the wsdl, this was not happening before, for any reason I cannot update/add the web reference any more. The URL where the wsdl is being loaded correctly in a browser, besides I also can ping the server. I have tried many things that I found on internet like this question error downloading $metadata from webservice, but I didn't have good results,  if there is another solution or assumption that help me to figure out what is happening I will be very thankful.

I always tried by adding the web reference by Service reference, but i didn't work, this is what the error said:

There was an error downloading 'https://ssl00.kiusys.com/rserver2.4.2/server.kiu?wsdl/_vti_bin/ListData.svc/$metadata'.
The underlying connection was closed: An unexpected error occurred on a send.
Unable to read data from the transport connection: Se ha forzado la interrupción de una conexión existente por el host remoto.
Se ha forzado la interrupción de una conexión existente por el host remoto
Metadata contains a reference that cannot be resolved: 'https://ssl00.kiusys.com/rserver2.4.2/server.kiu?wsdl'.
An error occurred while making the HTTP request to https://ssl00.kiusys.com/rserver2.4.2/server.kiu?wsdl. This could be due to the fact that the server certificate is not configured properly with HTTP.SYS in the HTTPS case. This could also be caused by a mismatch of the security binding between the client and the server.
The underlying connection was closed: An unexpected error occurred on a send.
Unable to read data from the transport connection: Se ha forzado la interrupción de una conexión existente por el host remoto.
Se ha forzado la interrupción de una conexión existente por el host remoto
If the service is defined in the current solution, try building the solution and adding the service reference again.

Thanks a lot beforehand.

答:
I had the same issue and solved it as follows:

I took the latest Web Service Project.

Un-tick the read-only flag from that Project Properties in Windows Explorer and clicked on Save.

Open the Project in Visual Studio and Rebuild the solution.

In Project where you are using the Web Service update the web reference of web service or remove the web reference and add it again.


问:
Tkinter resize background image to window size
Trying to set up a background for my tkinter window. I have a square background image, which fades to black around the edges, and then the main window has a black background. The image is placed over the background, and if the window is wider than it is tall, the image centers itself in the middle over the black background, and it all looks very nice.

However when the window is smaller than the image in width and height, it puts the center of the image in the center of the window, so you don't see the whole image, and it looks a little odd. Is there a way of resizing the image so that if the largest of the width and height of the window is smaller than the image, the image is adjusted to that size, keeping aspect ratio.

So say the background image is 600x600:

In a 800x400 window, the image does not resize, and centers itself vertically.

In a 500x400 window, the image resizes to 500x500, and still centers itself vertically.

In a 400x900 window, the image does not resize, and centers itself horizontally.

The centering functionality is already there, I just need the resize functionality.

Currently what I have is:

```<code>from tkinter import *

root = Tk()
root.title("Title")
root.geometry("600x600")
root.configure(background="black")

background_image = PhotoImage(file="Background.gif")

background = Label(root, image=background_image, bd=0)
background.pack()

root.mainloop()
</code>```

Not sure if there is a way of doing this in tkinter? Or if perhaps I would write my own function that resizes the image according to the window size, however the image needs to resize relatively smoothly and quickly if the user resizes the window at any point.

答:
Just sugesting a slight change in the answer. Using self.master.winfo_width(),self.master.winfo_height() instead of 'event' makes he adjustment to size much quicker.</p>

```<code>import tkinter as tk
from PIL import Image, ImageTk
class Layout:
     def __init__(self,master):
       self.master = master
       self.rootgeometry()
       self.canvas = tk.Canvas(self.master)
       self.canvas.pack()
       self.background_image = Image.open('image_file.PNG')
       self.image_copy = self.background_image.copy()
       self.background = ImageTk.PhotoImage(self.background_image)
       self.loadbackground()

    def loadbackground(self):
       self.label = tk.Label(self.canvas, image = self.background)
       self.label.bind('<Configure>',self.resizeimage)
       self.label.pack(fill='both', expand='yes')

   def rootgeometry(self):
       x=int(self.master.winfo_screenwidth()*0.7)
       y=int(self.master.winfo_screenheight()*0.7)
       z = str(x) +'x'+str(y)
       self.master.geometry(z)

  def resizeimage(self,event):
       image = self.image_copy.resize((self.master.winfo_width(),self.master.winfo_height()))
       self.image1 = ImageTk.PhotoImage(image)
       self.label.config(image = self.image1)

root = tk.Tk()
a = Styling.Layout(root)
root.mainloop()
</code>```

Body:
Trying to set up a background for my tkinter window. I have a square background image, which fades to black around the edges, and then the main window has a black background. The image is placed over the background, and if the window is wider than it is tall, the image centers itself in the middle over the black background, and it all looks very nice.

However when the window is smaller than the image in width and height, it puts the center of the image in the center of the window, so you don't see the whole image, and it looks a little odd. Is there a way of resizing the image so that if the largest of the width and height of the window is smaller than the image, the image is adjusted to that size, keeping aspect ratio.

So say the background image is 600x600:

In a 800x400 window, the image does not resize, and centers itself vertically.

In a 500x400 window, the image resizes to 500x500, and still centers itself vertically.

In a 400x900 window, the image does not resize, and centers itself horizontally.

The centering functionality is already there, I just need the resize functionality.

Currently what I have is:

from tkinter import *

root = Tk()
root.title("Title")
root.geometry("600x600")
root.configure(background="black")

background_image = PhotoImage(file="Background.gif")

background = Label(root, image=background_image, bd=0)
background.pack()

root.mainloop()

Not sure if there is a way of doing this in tkinter? Or if perhaps I would write my own function that resizes the image according to the window size, however the image needs to resize relatively smoothly and quickly if the user resizes the window at any point.

Body:
Just sugesting a slight change in the answer. Using self.master.winfo_width(),self.master.winfo_height() instead of 'event' makes he adjustment to size much quicker.

import tkinter as tk
from PIL import Image, ImageTk
class Layout:
     def __init__(self,master):
       self.master = master
       self.rootgeometry()
       self.canvas = tk.Canvas(self.master)
       self.canvas.pack()
       self.background_image = Image.open('image_file.PNG')
       self.image_copy = self.background_image.copy()
       self.background = ImageTk.PhotoImage(self.background_image)
       self.loadbackground()

    def loadbackground(self):
       self.label = tk.Label(self.canvas, image = self.background)
       self.label.bind('<Configure>',self.resizeimage)
       self.label.pack(fill='both', expand='yes')

   def rootgeometry(self):
       x=int(self.master.winfo_screenwidth()*0.7)
       y=int(self.master.winfo_screenheight()*0.7)
       z = str(x) +'x'+str(y)
       self.master.geometry(z)

  def resizeimage(self,event):
       image = self.image_copy.resize((self.master.winfo_width(),self.master.winfo_height()))
       self.image1 = ImageTk.PhotoImage(image)
       self.label.config(image = self.image1)

root = tk.Tk()
a = Styling.Layout(root)
root.mainloop()


问:
No module named 'gensim' but already installed it
i'm having this error problem, i have ran this script in jupyter notebook in base (root) environment, the log said that gensim library has been installed and i have run the command !pip install gensim before i import it, but it still can not be imported, and the error said ModuleNotFoundError: No module named 'gensim'

```<code>!pip install gensim
import gensim
from gensim.models import KeyedVectors
model = KeyedVectors.load('model_fasttext2.vec')
model.vector_size
------------------------------------------------------------------------
Requirement already satisfied: gensim in c:\users\ip-03\anaconda3\lib\site-packages (3.8.1)
Requirement already satisfied: scipy>=0.18.1 in c:\users\ip-03\anaconda3\lib\site-packages (from gensim) (1.4.1)
Requirement already satisfied: six>=1.5.0 in c:\users\ip-03\anaconda3\lib\site-packages (from gensim) (1.14.0)
Requirement already satisfied: smart-open>=1.8.1 in c:\users\ip-03\anaconda3\lib\site-packages (from gensim) (1.9.0)
Requirement already satisfied: numpy>=1.11.3 in c:\users\ip-03\anaconda3\lib\site-packages (from gensim) (1.18.1)
Requirement already satisfied: boto>=2.32 in c:\users\ip-03\anaconda3\lib\site-packages (from smart-open>=1.8.1->gensim) (2.49.0)
Requirement already satisfied: boto3 in c:\users\ip-03\anaconda3\lib\site-packages (from smart-open>=1.8.1->gensim) (1.12.3)
Requirement already satisfied: bz2file in c:\users\ip-03\anaconda3\lib\site-packages (from smart-open>=1.8.1->gensim) (0.98)
Requirement already satisfied: requests in c:\users\ip-03\anaconda3\lib\site-packages (from smart-open>=1.8.1->gensim) (2.22.0)
Requirement already satisfied: s3transfer<0.4.0,>=0.3.0 in c:\users\ip-03\anaconda3\lib\site-packages (from boto3->smart-open>=1.8.1->gensim) (0.3.3)
Requirement already satisfied: botocore<1.16.0,>=1.15.3 in c:\users\ip-03\anaconda3\lib\site-packages (from boto3->smart-open>=1.8.1->gensim) (1.15.3)
Requirement already satisfied: jmespath<1.0.0,>=0.7.1 in c:\users\ip-03\anaconda3\lib\site-packages (from boto3->smart-open>=1.8.1->gensim) (0.9.4)
Requirement already satisfied: certifi>=2017.4.17 in c:\users\ip-03\anaconda3\lib\site-packages (from requests->smart-open>=1.8.1->gensim) (2019.11.28)
Requirement already satisfied: chardet<3.1.0,>=3.0.2 in c:\users\ip-03\anaconda3\lib\site-packages (from requests->smart-open>=1.8.1->gensim) (3.0.4)
Requirement already satisfied: urllib3!=1.25.0,!=1.25.1,<1.26,>=1.21.1 in c:\users\ip-03\anaconda3\lib\site-packages (from requests->smart-open>=1.8.1->gensim) (1.25.8)
Requirement already satisfied: idna<2.9,>=2.5 in c:\users\ip-03\anaconda3\lib\site-packages (from requests->smart-open>=1.8.1->gensim) (2.8)
Requirement already satisfied: python-dateutil<3.0.0,>=2.1 in c:\users\ip-03\anaconda3\lib\site-packages (from botocore<1.16.0,>=1.15.3->boto3->smart-open>=1.8.1->gensim) (2.8.1)
Requirement already satisfied: docutils<0.16,>=0.10 in c:\users\ip-03\anaconda3\lib\site-packages (from botocore<1.16.0,>=1.15.3->boto3->smart-open>=1.8.1->gensim) (0.15.2)
</code>```

```<code>ModuleNotFoundError                       Traceback (most recent call last)
<ipython-input-10-ee4a48d372cd> in <module>
      1 get_ipython().system('pip install gensim')
----> 2 import gensim
      3 from gensim.models import KeyedVectors
      4 model = KeyedVectors.load('model_fasttext2.vec')
      5 model.vector_size

ModuleNotFoundError: No module named 'gensim'
</code>```

Is there anyone who can help this problem? i will really appreciate your help, it will help my thesis work, thank you for your attention

答:
It may be that your jupyter lab maybe running the base kernel and not the kernel of the virtual environment.

Check by doing the following:

import sys
sys.executable
```

<p>into my notebook and got the result</p>

```'/anaconda3/bin/python'
```

<p>If you get the above instead of the below then that means you're using the wrong kernel.</p>

```'/anaconda3/envs/myenv/bin/python'
```

<p>You can solve it by creating a new iPython kernel for your new environment. Read more here.</p>

<pre class="lang-sh prettyprint-override"><code>conda install -n myenv ipython
conda activate myenv
python -m ipykernel install --user --name myenv --display-name "Python (myenv)"
```Then, to run Jupyter Lab in the new environment:
```

Body:
i'm having this error problem, i have ran this script in jupyter notebook in base (root) environment, the log said that gensim library has been installed and i have run the command !pip install gensim before i import it, but it still can not be imported, and the error said ModuleNotFoundError: No module named 'gensim'

!pip install gensim
import gensim
from gensim.models import KeyedVectors
model = KeyedVectors.load('model_fasttext2.vec')
model.vector_size
------------------------------------------------------------------------
Requirement already satisfied: gensim in c:\users\ip-03\anaconda3\lib\site-packages (3.8.1)
Requirement already satisfied: scipy>=0.18.1 in c:\users\ip-03\anaconda3\lib\site-packages (from gensim) (1.4.1)
Requirement already satisfied: six>=1.5.0 in c:\users\ip-03\anaconda3\lib\site-packages (from gensim) (1.14.0)
Requirement already satisfied: smart-open>=1.8.1 in c:\users\ip-03\anaconda3\lib\site-packages (from gensim) (1.9.0)
Requirement already satisfied: numpy>=1.11.3 in c:\users\ip-03\anaconda3\lib\site-packages (from gensim) (1.18.1)
Requirement already satisfied: boto>=2.32 in c:\users\ip-03\anaconda3\lib\site-packages (from smart-open>=1.8.1->gensim) (2.49.0)
Requirement already satisfied: boto3 in c:\users\ip-03\anaconda3\lib\site-packages (from smart-open>=1.8.1->gensim) (1.12.3)
Requirement already satisfied: bz2file in c:\users\ip-03\anaconda3\lib\site-packages (from smart-open>=1.8.1->gensim) (0.98)
Requirement already satisfied: requests in c:\users\ip-03\anaconda3\lib\site-packages (from smart-open>=1.8.1->gensim) (2.22.0)
Requirement already satisfied: s3transfer<0.4.0,>=0.3.0 in c:\users\ip-03\anaconda3\lib\site-packages (from boto3->smart-open>=1.8.1->gensim) (0.3.3)
Requirement already satisfied: botocore<1.16.0,>=1.15.3 in c:\users\ip-03\anaconda3\lib\site-packages (from boto3->smart-open>=1.8.1->gensim) (1.15.3)
Requirement already satisfied: jmespath<1.0.0,>=0.7.1 in c:\users\ip-03\anaconda3\lib\site-packages (from boto3->smart-open>=1.8.1->gensim) (0.9.4)
Requirement already satisfied: certifi>=2017.4.17 in c:\users\ip-03\anaconda3\lib\site-packages (from requests->smart-open>=1.8.1->gensim) (2019.11.28)
Requirement already satisfied: chardet<3.1.0,>=3.0.2 in c:\users\ip-03\anaconda3\lib\site-packages (from requests->smart-open>=1.8.1->gensim) (3.0.4)
Requirement already satisfied: urllib3!=1.25.0,!=1.25.1,<1.26,>=1.21.1 in c:\users\ip-03\anaconda3\lib\site-packages (from requests->smart-open>=1.8.1->gensim) (1.25.8)
Requirement already satisfied: idna<2.9,>=2.5 in c:\users\ip-03\anaconda3\lib\site-packages (from requests->smart-open>=1.8.1->gensim) (2.8)
Requirement already satisfied: python-dateutil<3.0.0,>=2.1 in c:\users\ip-03\anaconda3\lib\site-packages (from botocore<1.16.0,>=1.15.3->boto3->smart-open>=1.8.1->gensim) (2.8.1)
Requirement already satisfied: docutils<0.16,>=0.10 in c:\users\ip-03\anaconda3\lib\site-packages (from botocore<1.16.0,>=1.15.3->boto3->smart-open>=1.8.1->gensim) (0.15.2)

ModuleNotFoundError                       Traceback (most recent call last)
<ipython-input-10-ee4a48d372cd> in <module>
      1 get_ipython().system('pip install gensim')
----> 2 import gensim
      3 from gensim.models import KeyedVectors
      4 model = KeyedVectors.load('model_fasttext2.vec')
      5 model.vector_size

ModuleNotFoundError: No module named 'gensim'

Is there anyone who can help this problem? i will really appreciate your help, it will help my thesis work, thank you for your attention

Body:
It may be that your jupyter lab maybe running the base kernel and not the kernel of the virtual environment.

Check by doing the following:

import sys
sys.executable

into my notebook and got the result

'/anaconda3/bin/python'

If you get the above instead of the below then that means you're using the wrong kernel.

'/anaconda3/envs/myenv/bin/python'

You can solve it by creating a new iPython kernel for your new environment. Read more here.

conda install -n myenv ipython
conda activate myenv
python -m ipykernel install --user --name myenv --display-name "Python (myenv)"
```Then, to run Jupyter Lab in the new environment:


问:
Gitlab CI Pipeline job
Below is a Gitlab CI pipeline code

  - image_build
  - test1
  - test2

image_build:
  stage: image_build
  tags:
    - ddc
  script:
    - echo "image build"
  rules:
    - changes:
      - Dockerfile

test1:
  stage: test1
  tags:
    - ddc
  script:
    - echo "Test1 stage"
  rules:
    - when: on_success

test2:
  stage: test2
  tags:
    - ddc
  script:
    - echo "Test2 stage"
  rules:
     - when: on_failure```

I need the stages test1, test2 to execute if no changes has been done to Dockerfile. And also the same stages test1, test2 should not execute when there are changes to Dockerfile.

The second scenario works fine but the first one doesnt. Please help me get this pipeline up and running.

答:
If you are using GitLab CI version 11.4 or above you can use only: changes or rules: changes parameters. Base on official docs:

Using the changes keyword with only or except makes it possible to define if a job should be created based on files modified by a Git push event.

So your test1 and test2 stages might look like this:

```<code>⋮

test1:
    stage: test1
    tags:
        - ddc
    script:
        - echo "Test1 stage"
    rules:
        - when: on_success
    except:
        changes:
            - Dockerfile

test2:
    stage: test2
    tags:
        - ddc
    script:
        - echo "Test2 stage"
    rules:
        - when: on_failure
    except:
        changes:
            - Dockerfile

⋮
</code>```

Title: Gitlab CI Pipeline job

Body:
Below is a Gitlab CI pipeline code

  - image_build
  - test1
  - test2

image_build:
  stage: image_build
  tags:
    - ddc
  script:
    - echo "image build"
  rules:
    - changes:
      - Dockerfile

test1:
  stage: test1
  tags:
    - ddc
  script:
    - echo "Test1 stage"
  rules:
    - when: on_success

test2:
  stage: test2
  tags:
    - ddc
  script:
    - echo "Test2 stage"
  rules:
     - when: on_failure

I need the stages test1, test2 to execute if no changes has been done to Dockerfile. And also the same stages test1, test2 should not execute when there are changes to Dockerfile.

The second scenario works fine but the first one doesnt. Please help me get this pipeline up and running.

Body:
If you are using GitLab CI version 11.4 or above you can use only: changes or rules: changes parameters. Base on official docs:

Using the changes keyword with only or except makes it possible to define if a job should be created based on files modified by a Git push event.

So your test1 and test2 stages might look like this:

⋮

test1:
    stage: test1
    tags:
        - ddc
    script:
        - echo "Test1 stage"
    rules:
        - when: on_success
    except:
        changes:
            - Dockerfile

test2:
    stage: test2
    tags:
        - ddc
    script:
        - echo "Test2 stage"
    rules:
        - when: on_failure
    except:
        changes:
            - Dockerfile

⋮