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

The showFieldNames parameter doesn't seem to do anything #102

Open
DCameronMauch opened this issue Jun 21, 2023 · 1 comment
Open

The showFieldNames parameter doesn't seem to do anything #102

DCameronMauch opened this issue Jun 21, 2023 · 1 comment

Comments

@DCameronMauch
Copy link

scala> case class User(id: Int, name: String)
defined class User

scala> val bob: User = User(1, "Bob")
bob: User = User(1,Bob)

scala> pprint.pprintln(bob)
User(1, "Bob")

scala> pprint.pprintln(bob, showFieldNames = true)
User(1, "Bob")

scala> pprint.pprintln(bob, showFieldNames = false)
User(1, "Bob")

With the feature enabled, I expected something like User(id = 1, name = "Bob")

@ilinandrii
Copy link

ilinandrii commented Aug 25, 2023

Ah, got the same problem, but then carefully read change notes.
https://com-lihaoyi.github.io/PPrint/#0.6.0

You're probable using scala 2.12
Field name support works only for 2.13

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants