Skip to content

Commit

Permalink
Merge pull request #33 from proDOOMman/develop
Browse files Browse the repository at this point in the history
v2.2
  • Loading branch information
proDOOMman authored Jun 5, 2020
2 parents 740954c + fab27ee commit 3fed1fa
Show file tree
Hide file tree
Showing 5 changed files with 26 additions and 12 deletions.
18 changes: 9 additions & 9 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ plugins {
}

group 'com.clouds42'
version '2.1-SNAPSHOT'
version '2.2-SNAPSHOT'

sourceCompatibility = 11

Expand Down Expand Up @@ -36,8 +36,8 @@ dependencies {
}
println 'EDT location: ' + edtLocation

compile group: 'info.picocli', name: 'picocli', version: '4.2.0'
annotationProcessor 'info.picocli:picocli-codegen:4.2.0'
compile group: 'info.picocli', name: 'picocli', version: '4.3.2'
annotationProcessor 'info.picocli:picocli-codegen:4.3.2'

compile group: 'org.slf4j', name: 'slf4j-api', version: '2.0.0-alpha1'
compile group: 'org.slf4j', name: 'slf4j-simple', version: '2.0.0-alpha1'
Expand All @@ -52,13 +52,13 @@ dependencies {

compile group: 'org.eclipse.jetty', name: 'jetty-client', version: '9.4.27.v20200227'

compile group: 'com.google.guava', name: 'guava', version: '28.2-jre'
compile group: 'com.google.guava', name: 'guava', version: '29.0-jre'

compile group: 'de.vandermeer', name:'asciitable', version: '0.3.2'

implementation 'com.github.1c-syntax:mdclasses:42fcc53f34b08a7a748528c9dd53ae1a2e04bb40' // TODO: change to release
implementation 'com.github.1c-syntax:mdclasses:0.5.0'

implementation('com.github.1c-syntax:bsl-parser:0.13.0') {
implementation('com.github.1c-syntax:bsl-parser:0.14.1') {
exclude group: "com.tunnelvisionlabs", module: "antlr4-annotations"
exclude group: "com.ibm.icu", module: "*"
exclude group: "org.antlr", module: "ST4"
Expand All @@ -74,8 +74,8 @@ dependencies {
testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.6.2'
testCompile 'org.xmlunit:xmlunit-core:2.6.4'
testCompile 'org.xmlunit:xmlunit-matchers:2.6.4'
testCompile 'com.fasterxml.jackson.core:jackson-core:2.9.6'
testCompile 'com.fasterxml.jackson.core:jackson-databind:2.9.6'
testCompile 'com.fasterxml.jackson.core:jackson-core:2.11.0'
testCompile 'com.fasterxml.jackson.core:jackson-databind:2.11.0'
}

tasks.withType(JavaCompile) {
Expand Down Expand Up @@ -116,5 +116,5 @@ githubRelease {
repo "Coverage41C"
targetCommitish "master"
releaseAssets.from(distZip.archiveFile)
dryRun true
dryRun false
}
2 changes: 1 addition & 1 deletion choco/coverage41c.nuspec
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<!-- version should MATCH as closely as possible with the underlying software -->
<!-- Is the version a prerelease of a version? https://docs.nuget.org/create/versioning#creating-prerelease-packages -->
<!-- Note that unstable versions like 0.0.1 can be considered a released version, but it's possible that one can release a 0.0.1-beta before you release a 0.0.1 version. If the version number is final, that is considered a released version and not a prerelease. -->
<version>2.0</version>
<version>2.2</version>
<packageSourceUrl>https://github.com/proDOOMman/Coverage41C</packageSourceUrl>
<owners>proDOOMman</owners>
<!-- ============================== -->
Expand Down
14 changes: 12 additions & 2 deletions src/main/java/com/clouds42/Commands/CoverageCommand.java
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package com.clouds42.Commands;

import com._1c.g5.v8.dt.debug.core.runtime.client.RuntimeDebugClientException;
import com._1c.g5.v8.dt.debug.model.base.data.AttachDebugUIResult;
import com._1c.g5.v8.dt.debug.model.base.data.BSLModuleIdInternal;
import com._1c.g5.v8.dt.debug.model.base.data.DebugTargetId;
import com._1c.g5.v8.dt.debug.model.dbgui.commands.DBGUIExtCmdInfoBase;
Expand Down Expand Up @@ -295,11 +296,20 @@ public void run()
} catch (RuntimeDebugClientException e) {
logger.info(e.getLocalizedMessage());
if (systemStarted) {
logger.info("Can't send ping to dbgs. Coverage analyzing finished");
logger.info("Can't send ping to debug server. Coverage analyzing finished");
gracefulShutdown(null);
} else {
try {
client.connect(debuggerOptions.getPassword());
AttachDebugUIResult connectionResult = client.connect(debuggerOptions.getPassword());
if (connectionResult != AttachDebugUIResult.REGISTERED) {
if (connectionResult == AttachDebugUIResult.IB_IN_DEBUG) {
throw new RuntimeDebugClientException("Can't connect to debug server. IB is in debug. Close configurator or EDT first");
} else if (connectionResult == AttachDebugUIResult.CREDENTIALS_REQUIRED) {
throw new RuntimeDebugClientException("Can't connect to debug server. Use -p option to set correct password");
} else {
throw new RuntimeDebugClientException("Can't connect to debug server. Connection result: " + connectionResult);
}
}
client.initSettings(false);
client.setAutoconnectDebugTargets(
debuggerOptions.getDebugAreaNames(),
Expand Down
4 changes: 4 additions & 0 deletions src/main/java/com/clouds42/Utils.java
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,10 @@ private static void addAllModulesToList(Configuration conf, MetadataOptions meta
Map<URI, Map<BigDecimal, Boolean>> coverageData) {
String mdObjUuid = mdObj.getUuid();
Map<URI, ModuleType> modulesByType = mdObj.getModulesByType();
if (modulesByType == null) {
logger.info("Found empty modules in metadata object: " + mdObj.getName());
return;
}
modulesByType.forEach((uri, moduleType) -> {
uriListByKey.put(getUriKey(mdObjUuid, moduleType, mdObj), uri);

Expand Down
Binary file modified src/test/resources/bdd/features/step_definitions/Coverage41C.epf
Binary file not shown.

0 comments on commit 3fed1fa

Please sign in to comment.