LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   pycharm does not work in Slackware64-14.2 if I use dwm (https://www.linuxquestions.org/questions/slackware-14/pycharm-does-not-work-in-slackware64-14-2-if-i-use-dwm-4175664974/)

FlinchX 11-26-2019 08:34 PM

pycharm does not work in Slackware64-14.2 if I use dwm
 
I've decided to try pycharm and downloaded the last community edition that is version 2019.2.5. I know there is a buildscript for 2019.2.4 on SBo to produce a real Slackware package, but pycharm just runs fine (well, it doesn't for me, but more about that below) from the extracted tarball.

It asks me a few questions like setting up dark/light theme etc, then offers a dialog to create a new project. After I complete all those steps, I get an empty window that stays forever. pycharm never completes to load. It displays some java-esque backtraces in console (since I run the launcher script from a terminal), but it all looks strictly internal and no useful hints about what could be wrong.

I am using dwm-6.1 window manager. Again, I know there's 6.2 on SBo, I dare to assume this is irrelevant for the reason stated below.

I tried the 2019.2.4 from SBo with exactly the same symptoms.

Then I tried the 2019.2.5 version again in a VM with another Linux distro (Debian) and it started fine.

This made me think there's a problem with my particular setup. For testing purposes, I switced from dwm to KDE and pycharm started fine. So it looks like pycharm doesn't play well with dwm for some reason.

What could I try to make it work? Since dwm is quite rudimentary, maybe I should start something additional that's eventually provided by a full featured DE like KDE?

Since both dwm and pycharm are third party software, perhaps a better idea would be to send a bug report to pycharm developers?

speck 11-27-2019 01:38 AM

The dwm man page does mention it can have issues with some Java applications, so you may want to check the workarounds suggested in the man page.

Also, I'm running PyCharm without any issues on Openbox.

FlinchX 11-27-2019 02:46 AM

Quote:

Originally Posted by speck (Post 6062251)
The dwm man page does mention it can have issues with some Java applications, so you may want to check the workarounds suggested in the man page.

Thank you, this workaround

Quote:

when using OpenJDK setting the environment variable _JAVA_AWT_WM_NONREPARENTING=1
does the job.

Quote:

Originally Posted by speck (Post 6062251)
Also, I'm running PyCharm without any issues on Openbox.

Slackware has fluxbox, which is quite similar, so I found another way to run pycharm without the env var hack above. I make an .xinitrc file for fluxbox (while still running dwm as main window manager), then run fluxbox with Xephyr and pycharm inside fluxbox like this:

Quote:

xinit ~/tmp/.xinitrc -- /usr/bin/Xephyr :1 -screen 1368x700x24
There is probably some overhead, but GUI Java programs are kinda slower compared to pretty much everything else anyway, so I don't really feel the difference.

FlinchX 11-30-2019 03:33 AM

Adding this for reference.

Going over README of SBo dwm-6.2 more carefully, I see that it's mentioned there. It was added here https://git.slackbuilds.org/slackbui...90f86dae212ae6 and I obviously missed it, because I'm still on dwm 6.1


All times are GMT -5. The time now is 02:05 AM.