Run PyCharm in the Background on Linux

已回答

I'm running PyCharm in Ubuntu and wondering how to get the command `charm .` to not take over my shell for the duration that the PyCharm GUI is open, but instead open the GUI and return control to me on the command line. I've tried backgrounding this process with `charm . &` but it only succeeds in launching the program 25% of the time. I want this to work like VSCode, which you can invoke with `code .` and have terminal control returned immediately.

3
Avatar
Permanently deleted user

I will add that the functionality I'm looking for works on the Community Edition of PyCharm on Mac, in which `charm .` only opens the PyCharm application and lets me continue using my shell.

0

>  I've tried backgrounding this process with `charm . &` but it only succeeds in launching the program 25% of the time.

Could you please record a small screencast that shows the problem? Thank you.

0
Avatar
Permanently deleted user

I have a screencast, how would you like me to share it?

0

You could upload it to Dropbox or any other service and share link here or send the screencast to pycharm-support@jetbrains.com. Thank you.

0
$ pycharm . &

As with any other bash command, just add "&" as above to run it in the background.

If you run the above, the log will still flow, but it will disappear when you press the "cl" command.

 

0

If in Ubuntu, you can redirect stdout and stderr to a file and launch this command as a background process. Note: Both are required to fully mute console output. Example: /pycharm/bin/pycharm.sh 1>pycharm_stdout.log 2> pycharm_stderr.log &

Reference: https://stackoverflow.com/questions/66069214/disable-logging-to-intellij-console-and-use-log-file-instead/76182533#76182533

0

请先登录再写评论。