Skip to content

Commit 3fed1fa

Browse files
authored
Merge pull request #33 from proDOOMman/develop
v2.2
2 parents 740954c + fab27ee commit 3fed1fa

File tree

5 files changed

+26
-12
lines changed

5 files changed

+26
-12
lines changed

build.gradle

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ plugins {
66
}
77

88
group 'com.clouds42'
9-
version '2.1-SNAPSHOT'
9+
version '2.2-SNAPSHOT'
1010

1111
sourceCompatibility = 11
1212

@@ -36,8 +36,8 @@ dependencies {
3636
}
3737
println 'EDT location: ' + edtLocation
3838

39-
compile group: 'info.picocli', name: 'picocli', version: '4.2.0'
40-
annotationProcessor 'info.picocli:picocli-codegen:4.2.0'
39+
compile group: 'info.picocli', name: 'picocli', version: '4.3.2'
40+
annotationProcessor 'info.picocli:picocli-codegen:4.3.2'
4141

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

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

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

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

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

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

8181
tasks.withType(JavaCompile) {
@@ -116,5 +116,5 @@ githubRelease {
116116
repo "Coverage41C"
117117
targetCommitish "master"
118118
releaseAssets.from(distZip.archiveFile)
119-
dryRun true
119+
dryRun false
120120
}

choco/coverage41c.nuspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
<!-- version should MATCH as closely as possible with the underlying software -->
1010
<!-- Is the version a prerelease of a version? https://docs.nuget.org/create/versioning#creating-prerelease-packages -->
1111
<!-- 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. -->
12-
<version>2.0</version>
12+
<version>2.2</version>
1313
<packageSourceUrl>https://github.com/proDOOMman/Coverage41C</packageSourceUrl>
1414
<owners>proDOOMman</owners>
1515
<!-- ============================== -->

src/main/java/com/clouds42/Commands/CoverageCommand.java

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
package com.clouds42.Commands;
22

33
import com._1c.g5.v8.dt.debug.core.runtime.client.RuntimeDebugClientException;
4+
import com._1c.g5.v8.dt.debug.model.base.data.AttachDebugUIResult;
45
import com._1c.g5.v8.dt.debug.model.base.data.BSLModuleIdInternal;
56
import com._1c.g5.v8.dt.debug.model.base.data.DebugTargetId;
67
import com._1c.g5.v8.dt.debug.model.dbgui.commands.DBGUIExtCmdInfoBase;
@@ -295,11 +296,20 @@ public void run()
295296
} catch (RuntimeDebugClientException e) {
296297
logger.info(e.getLocalizedMessage());
297298
if (systemStarted) {
298-
logger.info("Can't send ping to dbgs. Coverage analyzing finished");
299+
logger.info("Can't send ping to debug server. Coverage analyzing finished");
299300
gracefulShutdown(null);
300301
} else {
301302
try {
302-
client.connect(debuggerOptions.getPassword());
303+
AttachDebugUIResult connectionResult = client.connect(debuggerOptions.getPassword());
304+
if (connectionResult != AttachDebugUIResult.REGISTERED) {
305+
if (connectionResult == AttachDebugUIResult.IB_IN_DEBUG) {
306+
throw new RuntimeDebugClientException("Can't connect to debug server. IB is in debug. Close configurator or EDT first");
307+
} else if (connectionResult == AttachDebugUIResult.CREDENTIALS_REQUIRED) {
308+
throw new RuntimeDebugClientException("Can't connect to debug server. Use -p option to set correct password");
309+
} else {
310+
throw new RuntimeDebugClientException("Can't connect to debug server. Connection result: " + connectionResult);
311+
}
312+
}
303313
client.initSettings(false);
304314
client.setAutoconnectDebugTargets(
305315
debuggerOptions.getDebugAreaNames(),

src/main/java/com/clouds42/Utils.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,10 @@ private static void addAllModulesToList(Configuration conf, MetadataOptions meta
101101
Map<URI, Map<BigDecimal, Boolean>> coverageData) {
102102
String mdObjUuid = mdObj.getUuid();
103103
Map<URI, ModuleType> modulesByType = mdObj.getModulesByType();
104+
if (modulesByType == null) {
105+
logger.info("Found empty modules in metadata object: " + mdObj.getName());
106+
return;
107+
}
104108
modulesByType.forEach((uri, moduleType) -> {
105109
uriListByKey.put(getUriKey(mdObjUuid, moduleType, mdObj), uri);
106110

531 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)