Latest version of PyCharm (not early access) is using wrong role name for PostgreSQL database

First of all my Python / Django code works perfectly from the command line and can access the database from there with no errors or problems. This issue only happens in PyCharm when clicking on the XFCE menu item. It works fine in PyCharm when I start pycharm.sh from the Terminal.

I keep getting the following error in PyCharm when I run it from the XFCE menu on Manjaro Linux:

django.db.utils.OperationalError: FATAL:  role "linux_user_name_goes_here" does not exist

Strangely when I run PyCharm from the terminal instead of clicking on the icon in the XFCE menu, it works correctly.

The XFCE menu item code is here:

https://gitlab.com/snippets/1721643

0
1 comment

Please try the steps from a comment: https://youtrack.jetbrains.com/issue/DBE-3514#focus=streamItem-27-1751240-0-0

If that doesn't help - try to completely remove existing connection to a DB and add it back. 

0

Please sign in to leave a comment.