Go to definition doesn't work after project + virtual env moved on disk


I created a project with a virtual env that has the azure package.
I've moved that project on disk to a different location.
Now when I try to go to definition on create_table on TableService, it says it can't find it, and it gives me the old location on disk.

I had to delete the .ptvs folder in the virtual env in order to make go to definition work again. Is there a check we could do and redo the analysis automatically if we detect that the virtual env is no longer where it used to be?
Closed May 15, 2015 at 6:40 PM by huguesv


huguesv wrote May 15, 2014 at 11:04 PM

By the way, I tried to hit the Refresh DB button in the environments window, but that didn't actually do anything (it was already reporting that it was up to date).

Zooba wrote May 15, 2014 at 11:51 PM

Using relative paths may be appropriate here, though I'm not sure that applies in the general case. This may end up waiting until we replace the entire DB format.

Zooba wrote Jun 6, 2014 at 10:57 PM

We should detect the and force a full refresh.