Jun 9, 2013 at 6:17 PM
Edited Jun 10, 2013 at 7:26 AM
I am having inconsistent results with intellisense (VS2010, PVTS 2.0 alpha, IronPython).
Some of the classes or methods of my modules are recognized some not.
I have looked at: AppData/Local/Python Tools/CompletionDB/AnalysisLog.txt but it only has entries about buildin and standard lib. I have tried to narrow down the problem to something I can report, but once I am out of my project, things work as expected.
I also tried to recreate entire CompletionDB, but it didn't make a difference.
My project is not particularly big. There are some imports from .net but problems do not correlate with them.
Is there a way to get more info to find out what is intellisense doing within my own project?
Edit: after some try and error pattern emerged.
My project structure looks like this:
Within test, package, and subpackage modules from package and subpackage are imported using absolute path.
# either prj/test/test-case1/test.py
# or prj/package/subpackage/m2.py
from package.m1 import foo
from package.subpackage import m1
I add root folder (".") of the project to "Search Path" of the myproj.pyproj. Intellisense works as long as I keep VS open. Once VS is restarted, intellisense gets confused. Most of the time to get things back I have to remove and add "."
to ""Search Path".
I am still interested in finding out exactly what is causing intellisense to get confused and have a real fix.