Skip to content

sbt test fails for wrong LANG #39

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

Closed
grisuji opened this issue Jul 31, 2021 · 3 comments
Closed

sbt test fails for wrong LANG #39

grisuji opened this issue Jul 31, 2021 · 3 comments

Comments

@grisuji
Copy link

grisuji commented Jul 31, 2021

Hi :-)
in the very beginning of the book (3rd edition), Chapter 1, Building the Code Examples, the recommended sbt test fails in case you have the wrong LANG set. In my case it was set to "de_DE.UTF-8" and the tests failed with:

[info] Passed: Total 7, Failed 0, Errors 0, Passed 7
[error] Failed: Total 233, Failed 7, Errors 0, Passed 226
[error] Failed tests:
[error]         progscala3.fp.combinators.PayrollSuite
[error]         progscala3.fp.curry.TupledFuncSuite
[error]         progscala3.dsls.payroll.PayrollSuite
[error] (Test / test) sbt.TestsFailedException: Tests unsuccessful
[error] Total time: 2 s, completed 31.07.2021, 16:56:39

After changing it with
export LANG="en_US.UTF-8"

the tests run successfull.
Would be nice to have this mentioned in a short note, because it took me a few hours to find the reason.

Greetings
Grisuji

@deanwampler
Copy link
Owner

Curious! I tried export LANG="de_DE.UTF-8; sbt test and it worked fine, but that just mean it doesn't always "respect" the setting. I'll add a troubleshooting note to the README. Sorry you wasted a few hours on this, but thanks for reporting it.

@deanwampler
Copy link
Owner

I pushed an update to the README.

@deanwampler
Copy link
Owner

@grisuji I just merged PR 42, #42, which should fix this issue. Let me know if you still have problems.

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