LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 11-26-2019, 09:34 PM   #1
FlinchX
Member
 
Registered: Nov 2017
Distribution: Slackware Linux
Posts: 376

Rep: Reputation: Disabled
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?
 
Old 11-27-2019, 02:38 AM   #2
speck
Member
 
Registered: Nov 2001
Location: US
Distribution: Slackware 14.2
Posts: 364

Rep: Reputation: 108Reputation: 108
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.
 
1 members found this post helpful.
Old 11-27-2019, 03:46 AM   #3
FlinchX
Member
 
Registered: Nov 2017
Distribution: Slackware Linux
Posts: 376

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by speck View Post
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 View Post
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.
 
Old 11-30-2019, 04:33 AM   #4
FlinchX
Member
 
Registered: Nov 2017
Distribution: Slackware Linux
Posts: 376

Original Poster
Rep: Reputation: Disabled
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
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Anyone use PyCharm? pip and pycharm communication issues vysero Programming 1 06-12-2018 06:25 AM
LXer: A look at PyCharm - The Best Python IDE For Linux LXer Syndicated Linux News 0 11-25-2016 06:33 PM
[SOLVED] tar, gzip, <other> , unzip work until... Try-To-Compile-then Open from Pycharm Charliesrch Linux - Newbie 4 09-05-2015 09:28 PM
[Python] How can I install libraries and add to pycharm? samanka80 Programming 3 08-02-2015 10:14 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 03:09 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration