Move to Visitor 1.8.0 and drop the logback exclusion

オープン 初心者向け
#132 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
1/5
見積もり時間
1〜3時間
初心者へのやさしさ
91/100
issue の種類
リファクタリング
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
scala
領域
build-system

調査の方向性

build.sbtでvisitorVersionを1.7.0から1.8.0に更新し、Visitor依存関係からlogback-classicの除外を削除します。まず、依存関係の宣言と、issueで参照されている公開済みのVisitor 1.8.0のPOMを確認します。ビルドを実行します。更新した依存関係を使い、除外なしでビルドが成功すれば完了です。

索引モデルが issue の本文から書いたものです。

説明

Visitor 1.8.0 was released on 2026-11-17. Two lines in build.sbt should change:

val visitorVersion = "1.7.0"   // -> "1.8.0"

"com.phasmidsoftware" %% "visitor" % visitorVersion exclude("ch.qos.logback", "logback-classic"),
//                                                  ^^^^^^^ no longer needed

The exclusion can go

It was there because Visitor published logback-classic at Runtime scope, putting a logging backend on every consumer's classpath — a library should not do that. 1.8.0 fixes it, confirmed against the published POM on Central, not just Visitor's build.sbt:

<dependency>
    <groupId>ch.qos.logback</groupId>
    <artifactId>logback-classic</artifactId>
    <version>1.5.32</version>
    <scope>test</scope>
</dependency>

The breaking changes should not affect us

1.8.0 is a deliberate binary break — under PVP the first two numbers form the major version — but none of it touches what TableParser uses.

TableParser references Visitor in exactly one file: core/src/main/scala/com/phasmidsoftware/tableparser/core/util/TopN.scala, which imports com.phasmidsoftware.visitor.core.PrioQueue. And git diff V1.7.0 V1.8.0 -- PrioQueue.scala in the Visitor repository is empty — that class did not change at all in 1.8.0.

For the record, the four breaking changes were: removal of core.Zero and core.Monoid; Visitor generalised over its journal's element type; visit losing its using Evaluable; and Appendable becoming F-bounded. None is reachable from PrioQueue.

So this is expected to be a two-line change plus a green build. If it turns out not to be, that is itself worth knowing.

Is there anything to "take advantage of"?

Open question, and the reason this issue is scoped the way it is. 1.8.0's new surface is traversal machinery — a Java API, SimpleVisitor, Traverse, ParentedVisitor, Traversal.dfsTracking — and TableParser is not a graph library; it uses Visitor solely for a priority queue. Nothing in the new API has an obvious use here.

If there is a use in mind, it belongs in a separate issue rather than being folded into this one, which should stay a dependency hygiene change.

Note on branching

main is the right base. At the time of filing the working checkout is on crime_brief_test with an uncommitted CrimeSpec.scala, so this wants a clean branch rather than being done in passing.

主要言語
Scala
スター
11
フォーク
4
平均マージ
2時間 40分
マージ済み PR(30日)
44

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

rchillyard/TableParser のほかの issue

rchillyard/TableParser の issue をすべて見る

似ている issue

Scala の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。