Missing "pycharm-pydev.jar" package in newer versions of PyCharm (2019.3+)

Hi, I am trying to update a PyCharm plugin from PyCharm 2019.2.3 to the latest version 2021.2.1.

I have noticed that the package "pycharm-pydev.jar" can no longer be found in PyCharm's installation (in the "lib" folder) which causes errors in the plugin:

package com.jetbrains.python.console does not exist

and

package com.jetbrains.python.debugger does not exist


The plugin uses these imports:

import com.jetbrains.python.console.PydevConsoleCommunication;
import com.jetbrains.python.debugger.PyDebugValue;
import com.jetbrains.python.debugger.PyDebuggerException;
import com.jetbrains.python.debugger.PyFrameAccessor;
import com.jetbrains.python.debugger.PyDebugProcess


I have found out that the package has been removed from PyCharm in between version 2019.2.6 and 2019.3.

Was this API moved to another place or removed completely? How can I replicate the needed functionality (access variable from running Python debugger) if so?

Thanks, Peter.

1 comment
Comment actions Permalink

I've found a solution.

There is a "plugin" (https://plugins.jetbrains.com/plugin/7322-python-community-edition) containing some .jar packages not present in normal PyCharm installation, one of them is "python-ce.jar" that contains the required code for my plugin. All I had to do is copy it to "<PyCharm_installation_dir>/lib/" folder and add it to the used SDK in IntelliJ IDEA.

0

Please sign in to leave a comment.