postgresql-embedded
postgresql-embedded copied to clipboard
Impossible to start in Intellij IDEA under OSX
On OSX, when I run from the CLI in Maven, it works fine.
When I run in Intellij the same tests (JUnit), I get:
18:48:42.926 [Thread-0] DEBUG ru.yandex.qatools.embed.postgresql.ext.LogWatchStreamProcessor - The files belonging to this database system will be owned by user "julien".
This user must also own the server process.
18:48:42.926 [Thread-1] DEBUG ru.yandex.qatools.embed.postgresql.ext.LogWatchStreamProcessor - initdb: invalid locale settings; check LANG and LC_* environment variables
18:48:42.926 [Thread-0] DEBUG ru.yandex.qatools.embed.postgresql.ext.LogWatchStreamProcessor - The files belonging to this database system will be owned by user "julien".
18:48:42.927 [Thread-0] DEBUG ru.yandex.qatools.embed.postgresql.ext.LogWatchStreamProcessor - This user must also own the server process.
18:48:42.927 [Thread-0] DEBUG ru.yandex.qatools.embed.postgresql.ext.LogWatchStreamProcessor -
any idea ?
I am also facing same issue with win 10 . Code works perfectly with maven and fails when I run in the Intellij .
If some has any inputs do let me know .
It works if you add additional environment variables to the run configuration of your tests:
LC_CTYPE=en_US.UTF-8;LC_ALL=en_US.UTF-8

Also see this answer on Stack Overflow: https://stackoverflow.com/a/59736683/6418426