Any way to force a refresh of external libraries on a remote interpreter?

Answered
Certainly I'm not the only one who's encountered this.

I have a remote interpreter (ssh), which is also the project interpreter, filled in from deployment settings. I upgraded one of the libraries on the server, but the stubs PyCharm shows in the external libraries section is still the old version. I tried deleting the remote interpreter and recreating it, but unfortunately it seems to have just reused a cached version of the stubs.

What I need is for PyCharm to realize that the file is updated. I can look at a file in PyCharm, and see that it's simply not been updated.

Is there a way to purge PyCharm's cache of libraries on a remote interpreter?
51
64 comments

Guys & gals, just get PyCharm for Linux and expose it to Windows with GWSL or other X-Server. It works beautifully. I had endless problems with these kinds of issues with PyCharm for Windows accessing files in WSL. Just get the Linux version.

0

Define two (remote/local) interpreters (A and B) pointing to the same environment (python)

When you want a refresh, just change to the A or B environment, that should trigger the refresh.

0

Please check if your file system is full? Type in `df -h` in your remote terminal. Is there any 100%-used fileset? As for me, I found my `/tmp` fileset is full, and I `rm -rf /tmp/*`. Then, I just clicked the interpreter (or re-add the interpreter), and it was finally refreshed.

0

Solved by using “Invalidate Caches…”

0

Please sign in to leave a comment.