I've been using the DyNet package for a while now.
Today I updated it the latest version (version 2.0, via 'pip install dynet').
The problem is that PyCharm's code completion still gives me the same suggestions as before, even though the package api has changed (some methods removed, some added).
For example, after the following code:
import dynet
m = dynet.Model()
code completion suggests the methods 'load_all' and 'save_all' which no longer exist (used to exist in the previous version I had installed, it no longer exists on my system). On the other hand, the method 'populate' (which didn't exist before and was added) doesn't appear at all in the suggestions (and when my mouse hovers over it, I get a popup saying 'Unresolved attribute reference').
I've tried to find a way to clear the code completion cache or force it to update, but everything I tried failed. Does anyone know how I can fix this issue?
In case it matters, I've encountered this problem on PyCharms version 2017.2.1 and 2017.2.2 and my interpreter is set as python on Windows Subsystem for Linux (WSL), to which PyCharm connects via ssh.
Thanks
Had this issue with the remote interpreter. this is what helped me. (second answer by dal),