yandex-qatools / postgresql-embedded

Embedded PostgreSQL Server
Other
494 stars 90 forks source link

Impossible to start in Intellij IDEA under OSX #112

Open vietj opened 6 years ago

vietj commented 6 years ago

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 ?

dprajasekhar commented 5 years ago

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 .

andreassiegel commented 4 years ago

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

image

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