Skip to content

BuildFailedの理由が握りつぶされることがある #827

@shinsuke-mat

Description

@shinsuke-mat

related to #823

#802 で初回のBuildFailedを適切にコンソールに出力するように変更した.
以下の題材に対し,

  public int close_to_zero(int n) {
    if (n == 0) {
      k++; // build failure
    ...

以下の出力.これはOK.

...
version = 1.8.0+
================================================================
2020-12-17 16:28:19 [Time-limited test] [ERROR] KGenProgMain - Failed to build the specified project.
シンボルを見つけられません
  シンボル:   変数 k
  場所: クラス example.CloseToZero

Process finished with exit code 0

コンパイルエラーの種類?によってはエラーの原因が握りつぶされる.
以下の場合,

  public int close_to_zero(int n) {
    a // error
    if (n == 0) {

build failed or reproduced. というメッセージでエラー原因が上書きされる.

version = 1.8.0+
================================================================
2020-12-17 16:29:14 [Time-limited test] [ERROR] KGenProgMain - Failed to build the specified project.
build failed or reproduced.

Process finished with exit code 0

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions