This project has moved and is read-only. For the latest updates, please go here.

PTVS 2.0 Crash in VS2010

Jan 23, 2014 at 7:28 PM
For some reason the PTVS 2.0 tools is not installing the default project templates and also anytime I interact with PTVS tools in VS2010 it throws exceptions. I've removed all the other extensions and tried uninstalling and reinstall with no luck.
<time>2014/01/23 19:18:11.312</time>
<source>Editor or Editor Extension</source>
<description>System.InvalidOperationException: Unable to determine Python Tools installation path&#x000D;&#x000A;   at Microsoft.PythonTools.PythonToolsInstallPath.GetFile(String filename)&#x000D;&#x000A;   at Microsoft.PythonTools.Interpreter.PythonTypeDatabase.get_BaselineDatabasePath()&#x000D;&#x000A;   at Microsoft.PythonTools.Interpreter.PythonInterpreterFactoryWithDatabase.MakeTypeDatabase(String databasePath, Boolean includeSitePackages)&#x000D;&#x000A;   at Microsoft.PythonTools.Interpreter.PythonInterpreterFactoryWithDatabase.GetCurrentDatabase()&#x000D;&#x000A;   at Microsoft.PythonTools.Interpreter.Default.CPythonInterpreter..ctor(PythonInterpreterFactoryWithDatabase factory)&#x000D;&#x000A;   at Microsoft.PythonTools.Interpreter.PythonInterpreterFactoryWithDatabase.MakeInterpreter(PythonInterpreterFactoryWithDatabase factory)&#x000D;&#x000A;   at Microsoft.PythonTools.Interpreter.PythonInterpreterFactoryWithDatabase.CreateInterpreter()&#x000D;&#x000A;   at Microsoft.PythonTools.Repl.PythonReplEvaluator.get_ReplAnalyzer()&#x000D;&#x000A;   at Microsoft.PythonTools.Extensions.GetAnalyzer(ITextView textView)&#x000D;&#x000A;   at Microsoft.PythonTools.Intellisense.IntellisenseControllerProvider.TryCreateIntellisenseController(ITextView textView, IList`1 subjectBuffers)&#x000D;&#x000A;   at Microsoft.VisualStudio.Language.Intellisense.Implementation.IntellisenseManagerConnectionListener.&lt;&gt;c__DisplayClass5.&lt;SubjectBuffersConnected&gt;b__1(IIntellisenseControllerProvider provider)&#x000D;&#x000A;   at Microsoft.VisualStudio.Text.Utilities.GuardedOperations.InstantiateExtension[TExtension,TMetadata,TExtensionInstance](Object errorSource, Lazy`2 provider, Func`2 getter)</description>
Jan 23, 2014 at 7:54 PM
After installing PTVS, can you have a look in the installation directory and tell us what files and folders you see?

This particular error is expecting to see a folder named "CompletionDB", so apparently that is not there for some reason.
Jan 23, 2014 at 9:41 PM
First thank you for such a quick reply.

The only items in that directory are three folders and a file:
  • Extensions
  • ItemTemplates
  • ProjectTemplates
  • License.html
Project templates are not showing up in the New Project dialog either.

I did find CompletionDB in the following path:
C:\Program Files\Microsoft Visual Studio 10.0\Common7\IDE\Extensions\Microsoft\Python Tools for Visual Studio\2.0\Extensions\Microsoft\Python Tools for Visual Studio\2.0\CompletionDB

Which looks like the install path kind of duplicated itself doesn't it? Every time I try to install Py tools it's like this.
Jan 23, 2014 at 9:43 PM
It looks like you're running into this problem:

We fixed it for 2.1; for 2.0, you'll need to use the workaround described in that bug.
Marked as answer by pminaev on 1/23/2014 at 2:00 PM
Jan 23, 2014 at 9:58 PM
That took care of the issue, thank you very much!