Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

v2.19.3 #49

Merged
merged 2 commits into from
Oct 28, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions HISTORY.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,17 @@

## Unrelease

### 2.19.3

1. 优化Warning的输出数据源
2. 更新依赖库
+ `com.google.protobuf` -> 4.28.3

## 2.19.2

1. 修复 `--data-source-mapping-file` 指向的地址无效时的 stacktrace 。


## 2.19.1

1. 输出的UE代码的默认值也输出到 USTRUCT 申明中(不包含 `FString` )。
Expand Down
6 changes: 3 additions & 3 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

<groupId>org.xresloader</groupId>
<artifactId>xresloader</artifactId>
<version>2.19.2</version>
<version>2.19.3</version>
<packaging>jar</packaging>
<name>xresloader</name>

Expand Down Expand Up @@ -243,12 +243,12 @@
<dependency>
<groupId>com.google.protobuf</groupId>
<artifactId>protobuf-java</artifactId>
<version>4.28.2</version>
<version>4.28.3</version>
</dependency>
<dependency>
<groupId>com.google.protobuf</groupId>
<artifactId>protobuf-java-util</artifactId>
<version>4.28.0</version>
<version>4.28.3</version>
</dependency>

<dependency>
Expand Down
6 changes: 5 additions & 1 deletion src/org/xresloader/core/data/dst/DataDstJava.java
Original file line number Diff line number Diff line change
Expand Up @@ -1360,9 +1360,13 @@ && dumpPlainField(ret.value, field.getTypeDescriptor(), null, children.get(i), n

if (!missingFields.isEmpty()) {
String message = String.format(
"Try to convert %s need at least %d fields, at most %d fields, but only provide %d fields.%s > Missing fields: %s",
"Try to convert %s need at least %d fields, at most %d fields, but only provide %d fields.%s > File: %s, Table: %s, Row: %d, Column: %d(%s)%s > Missing fields: %s",
field.getTypeDescriptor().getFullName(), atLeastFieldSize, fieldSize, inputs.length,
ProgramOptions.getEndl(),
rowContext.fileName, rowContext.tableName,
rowContext.row + 1, DataSrcImpl.getOurInstance().getLastColomnNum() + 1,
ExcelEngine.getColumnName(DataSrcImpl.getOurInstance().getLastColomnNum() + 1),
ProgramOptions.getEndl(),
String.join(",", missingFields.values().stream().map(DataDstFieldDescriptor::getName)
.collect(Collectors.toList())));
ProgramOptions.getLoger().warn(message);
Expand Down
6 changes: 5 additions & 1 deletion src/org/xresloader/core/data/dst/DataDstPb.java
Original file line number Diff line number Diff line change
Expand Up @@ -3059,9 +3059,13 @@ && dumpPlainField(builder, null, child, null, inputs[usedInputIdx], rowContext,

if (!missingFields.isEmpty()) {
String message = String.format(
"Try to convert %s need at least %d fields, at most %d fields, but only provide %d fields.%s > Missing fields: %s",
"Try to convert %s need at least %d fields, at most %d fields, but only provide %d fields.%s > File: %s, Table: %s, Row: %d, Column: %d(%s)%s > Missing fields: %s",
field.getTypeDescriptor().getFullName(), atLeastFieldSize, fieldSize, inputs.length,
ProgramOptions.getEndl(),
rowContext.fileName, rowContext.tableName,
rowContext.row + 1, DataSrcImpl.getOurInstance().getLastColomnNum() + 1,
ExcelEngine.getColumnName(DataSrcImpl.getOurInstance().getLastColomnNum() + 1),
ProgramOptions.getEndl(),
String.join(",", missingFields.values().stream().map(DataDstFieldDescriptor::getName)
.collect(Collectors.toList())));
ProgramOptions.getLoger().warn(message);
Expand Down
Loading