Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Intellisense in python tools for visual studio

Sorry if this seems like a noob question but I have never used visual studio. I am trying to use PTVS and while it works great in general, I can't get Intellisense to work for imports from the local directory. When I import a local module I get

Unable to resolve (module). Intellisense may be missing for this module

Thanks in advance

like image 352
mpardalos Avatar asked Sep 23 '14 16:09

mpardalos


2 Answers

I also experienced that issue even if I had added all my files to the project. Deleting the __init__.py file in my source root directory did the trick, see this issue on the PTVS repository.

like image 110
0x8BADF00D Avatar answered Oct 19 '22 06:10

0x8BADF00D


Restart just worked for me. ;)

like image 20
Grzegorz Smulko Avatar answered Oct 19 '22 07:10

Grzegorz Smulko