{"action":"created","issue":{"url":"https://api.github.com/repos/Microsoft/PTVS/issues/911","labels_url":"https://api.github.com/repos/Microsoft/PTVS/issues/911/labels{/name}","comments_url":"https://api.github.com/repos/Microsoft/PTVS/issues/911/comments","events_url":"https://api.github.com/repos/Microsoft/PTVS/issues/911/events","html_url":"https://github.com/Microsoft/PTVS/issues/911","id":112079832,"number":911,"title":"Can't update Completion DB","user":{"login":"ajilius","id":15190128,"avatar_url":"https://avatars.githubusercontent.com/u/15190128?v=3","gravatar_id":"","url":"https://api.github.com/users/ajilius","html_url":"https://github.com/ajilius","followers_url":"https://api.github.com/users/ajilius/followers","following_url":"https://api.github.com/users/ajilius/following{/other_user}","gists_url":"https://api.github.com/users/ajilius/gists{/gist_id}","starred_url":"https://api.github.com/users/ajilius/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ajilius/subscriptions","organizations_url":"https://api.github.com/users/ajilius/orgs","repos_url":"https://api.github.com/users/ajilius/repos","events_url":"https://api.github.com/users/ajilius/events{/privacy}","received_events_url":"https://api.github.com/users/ajilius/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-10-19T06:21:02Z","updated_at":"2015-10-19T21:59:02Z","closed_at":null,"body":"I've just installed a new setup with Visual Studio Community Edition, Python Tools, and Python 3.5.\r\n\r\nPreviously, Python 2.7 was installed on the machine.\r\n\r\nWhen I start VS I can see both environments (2.7 and 3.5) listed.\r\n\r\n90% of the time I press the REFRESH DB button, and I get a message saying \"Standard Library (0 modules)\". 10% of the time I get a list of the top level library, with a red exclamation mark to the left of each entry. Another press of the Refresh DB button and it goes back to the \"0 modules\" state.\r\n\r\nI've tried deleting the Completion DB folder under Python Tools. The sub-folders get recreated, but there is no change in status.\r\n\r\nAdvice is most welcome :)\r\n\r\nHere is a sample entry from AnalysisLog.txt:\r\n\r\n```\r\n2015-10-19T17:04:43: Start analysis\r\n2015-10-19T17:04:43: IncludeModulesFromModulePath = win32com\r\n2015-10-19T17:04:43: Deleting 0 files\r\n\r\nHere is the Python Tools / Diagnostic Info:\r\n\r\nProjects: \r\nEnvironments: \r\n    Microsoft.PythonTools.Project.LoadedProjectInterpreterFactoryProvider\r\n    Microsoft.PythonTools.Interpreter.ConfigurablePythonInterpreterFactoryProvider\r\n        Id: 914bcbbe-ed75-4e1e-bf71-1555c154a2d0\r\n        Factory: Ajilius\r\n        Version: 3.5\r\n        Arch: Amd64\r\n        Prefix Path: c:\\Python35\r\n        Path: c:\\Python35\\python.exe\r\n        Windows Path: c:\\Python35\\pythonw.exe\r\n        Lib Path: c:\\Python35\\Lib\r\n        Path Env: \r\n\r\n    Microsoft.PythonTools.Interpreter.CPythonInterpreterFactoryProvider\r\n        Id: 9a7a9026-48c1-4688-9d5d-e5699d47d074\r\n        Factory: Python 64-bit 2.7\r\n        Version: 2.7\r\n        Arch: Amd64\r\n        Prefix Path: C:\\Python27\r\n        Path: C:\\Python27\\python.exe\r\n        Windows Path: C:\\Python27\\pythonw.exe\r\n        Lib Path: C:\\Python27\\lib\r\n        Path Env: PYTHONPATH\r\n\r\n        Id: 9a7a9026-48c1-4688-9d5d-e5699d47d074\r\n        Factory: Python 64-bit 3.5\r\n        Version: 3.5\r\n        Arch: Amd64\r\n        Prefix Path: C:\\Python35\r\n        Path: C:\\Python35\\python.exe\r\n        Windows Path: C:\\Python35\\pythonw.exe\r\n        Lib Path: C:\\Python35\\lib\r\n        Path Env: PYTHONPATH\r\n\r\n[Zooba - snipped irrelevant sections]\r\n\r\nGlobal Analysis:\r\n2015-10-19T17:04:01 START_STDLIB \"C:\\Program Files (x86)\\Microsoft Visual Studio 14.0\\Common7\\IDE\\Extensions\\Microsoft\\Python Tools for Visual Studio\\2.2\\Microsoft.PythonTools.Analyzer.exe\" /id {9a7a9026-48c1-4688-9d5d-e5699d47d074} /version 3.5 /python C:\\Python35\\python.exe /outdir \"C:\\Users\\ron\\AppData\\Local\\Python Tools\\CompletionDB\\14.0\\9a7a9026-48c1-4688-9d5d-e5699d47d074\\3.5\" /basedb \"C:\\Program Files (x86)\\Microsoft Visual Studio 14.0\\Common7\\IDE\\Extensions\\Microsoft\\Python Tools for Visual Studio\\2.2\\CompletionDB\" /log \"C:\\Users\\ron\\AppData\\Local\\Python Tools\\CompletionDB\\14.0\\9a7a9026-48c1-4688-9d5d-e5699d47d074\\3.5\\AnalysisLog.txt\" /glog \"C:\\Users\\ron\\AppData\\Local\\Python Tools\\CompletionDB\\14.0\\AnalysisLog.txt\" /wait \"\"\r\n2015-10-19T17:04:01 DONE_STDLIB \"C:\\Program Files (x86)\\Microsoft Visual Studio 14.0\\Common7\\IDE\\Extensions\\Microsoft\\Python Tools for Visual Studio\\2.2\\Microsoft.PythonTools.Analyzer.exe\" /id {9a7a9026-48c1-4688-9d5d-e5699d47d074} /version 3.5 /python C:\\Python35\\python.exe /outdir \"C:\\Users\\ron\\AppData\\Local\\Python Tools\\CompletionDB\\14.0\\9a7a9026-48c1-4688-9d5d-e5699d47d074\\3.5\" /basedb \"C:\\Program Files (x86)\\Microsoft Visual Studio 14.0\\Common7\\IDE\\Extensions\\Microsoft\\Python Tools for Visual Studio\\2.2\\CompletionDB\" /log \"C:\\Users\\ron\\AppData\\Local\\Python Tools\\CompletionDB\\14.0\\9a7a9026-48c1-4688-9d5d-e5699d47d074\\3.5\\AnalysisLog.txt\" /glog \"C:\\Users\\ron\\AppData\\Local\\Python Tools\\CompletionDB\\14.0\\AnalysisLog.txt\" /wait \"\"\r\n2015-10-19T17:04:43 START_STDLIB \"C:\\Program Files (x86)\\Microsoft Visual Studio 14.0\\Common7\\IDE\\Extensions\\Microsoft\\Python Tools for Visual Studio\\2.2\\Microsoft.PythonTools.Analyzer.exe\" /id {9a7a9026-48c1-4688-9d5d-e5699d47d074} /version 3.5 /python C:\\Python35\\python.exe /outdir \"C:\\Users\\ron\\AppData\\Local\\Python Tools\\CompletionDB\\14.0\\9a7a9026-48c1-4688-9d5d-e5699d47d074\\3.5\" /basedb \"C:\\Program Files (x86)\\Microsoft Visual Studio 14.0\\Common7\\IDE\\Extensions\\Microsoft\\Python Tools for Visual Studio\\2.2\\CompletionDB\" /log \"C:\\Users\\ron\\AppData\\Local\\Python Tools\\CompletionDB\\14.0\\9a7a9026-48c1-4688-9d5d-e5699d47d074\\3.5\\AnalysisLog.txt\" /glog \"C:\\Users\\ron\\AppData\\Local\\Python Tools\\CompletionDB\\14.0\\AnalysisLog.txt\" /wait \"\"\r\n2015-10-19T17:04:43 DONE_STDLIB \"C:\\Program Files (x86)\\Microsoft Visual Studio 14.0\\Common7\\IDE\\Extensions\\Microsoft\\Python Tools for Visual Studio\\2.2\\Microsoft.PythonTools.Analyzer.exe\" /id {9a7a9026-48c1-4688-9d5d-e5699d47d074} /version 3.5 /python C:\\Python35\\python.exe /outdir \"C:\\Users\\ron\\AppData\\Local\\Python Tools\\CompletionDB\\14.0\\9a7a9026-48c1-4688-9d5d-e5699d47d074\\3.5\" /basedb \"C:\\Program Files (x86)\\Microsoft Visual Studio 14.0\\Common7\\IDE\\Extensions\\Microsoft\\Python Tools for Visual Studio\\2.2\\CompletionDB\" /log \"C:\\Users\\ron\\AppData\\Local\\Python Tools\\CompletionDB\\14.0\\9a7a9026-48c1-4688-9d5d-e5699d47d074\\3.5\\AnalysisLog.txt\" /glog \"C:\\Users\\ron\\AppData\\Local\\Python Tools\\CompletionDB\\14.0\\AnalysisLog.txt\" /wait \"\"\r\n2015-10-19T17:12:49 START_STDLIB \"C:\\Program Files (x86)\\Microsoft Visual Studio 14.0\\Common7\\IDE\\Extensions\\Microsoft\\Python Tools for Visual Studio\\2.2\\Microsoft.PythonTools.Analyzer.exe\" /id {9a7a9026-48c1-4688-9d5d-e5699d47d074} /version 2.7 /python C:\\Python27\\python.exe /outdir \"C:\\Users\\ron\\AppData\\Local\\Python Tools\\CompletionDB\\14.0\\9a7a9026-48c1-4688-9d5d-e5699d47d074\\2.7\" /basedb \"C:\\Program Files (x86)\\Microsoft Visual Studio 14.0\\Common7\\IDE\\Extensions\\Microsoft\\Python Tools for Visual Studio\\2.2\\CompletionDB\" /log \"C:\\Users\\ron\\AppData\\Local\\Python Tools\\CompletionDB\\14.0\\9a7a9026-48c1-4688-9d5d-e5699d47d074\\2.7\\AnalysisLog.txt\" /glog \"C:\\Users\\ron\\AppData\\Local\\Python Tools\\CompletionDB\\14.0\\AnalysisLog.txt\" /wait \"\"\r\n2015-10-19T17:12:49 DONE_STDLIB \"C:\\Program Files (x86)\\Microsoft Visual Studio 14.0\\Common7\\IDE\\Extensions\\Microsoft\\Python Tools for Visual Studio\\2.2\\Microsoft.PythonTools.Analyzer.exe\" /id {9a7a9026-48c1-4688-9d5d-e5699d47d074} /version 2.7 /python C:\\Python27\\python.exe /outdir \"C:\\Users\\ron\\AppData\\Local\\Python Tools\\CompletionDB\\14.0\\9a7a9026-48c1-4688-9d5d-e5699d47d074\\2.7\" /basedb \"C:\\Program Files (x86)\\Microsoft Visual Studio 14.0\\Common7\\IDE\\Extensions\\Microsoft\\Python Tools for Visual Studio\\2.2\\CompletionDB\" /log \"C:\\Users\\ron\\AppData\\Local\\Python Tools\\CompletionDB\\14.0\\9a7a9026-48c1-4688-9d5d-e5699d47d074\\2.7\\AnalysisLog.txt\" /glog \"C:\\Users\\ron\\AppData\\Local\\Python Tools\\CompletionDB\\14.0\\AnalysisLog.txt\" /wait \"\"\r\n2015-10-19T17:12:54 START_STDLIB \"C:\\Program Files (x86)\\Microsoft Visual Studio 14.0\\Common7\\IDE\\Extensions\\Microsoft\\Python Tools for Visual Studio\\2.2\\Microsoft.PythonTools.Analyzer.exe\" /id {9a7a9026-48c1-4688-9d5d-e5699d47d074} /version 2.7 /python C:\\Python27\\python.exe /outdir \"C:\\Users\\ron\\AppData\\Local\\Python Tools\\CompletionDB\\14.0\\9a7a9026-48c1-4688-9d5d-e5699d47d074\\2.7\" /basedb \"C:\\Program Files (x86)\\Microsoft Visual Studio 14.0\\Common7\\IDE\\Extensions\\Microsoft\\Python Tools for Visual Studio\\2.2\\CompletionDB\" /log \"C:\\Users\\ron\\AppData\\Local\\Python Tools\\CompletionDB\\14.0\\9a7a9026-48c1-4688-9d5d-e5699d47d074\\2.7\\AnalysisLog.txt\" /glog \"C:\\Users\\ron\\AppData\\Local\\Python Tools\\CompletionDB\\14.0\\AnalysisLog.txt\" /wait \"\"\r\n2015-10-19T17:12:55 DONE_STDLIB \"C:\\Program Files (x86)\\Microsoft Visual Studio 14.0\\Common7\\IDE\\Extensions\\Microsoft\\Python Tools for Visual Studio\\2.2\\Microsoft.PythonTools.Analyzer.exe\" /id {9a7a9026-48c1-4688-9d5d-e5699d47d074} /version 2.7 /python C:\\Python27\\python.exe /outdir \"C:\\Users\\ron\\AppData\\Local\\Python Tools\\CompletionDB\\14.0\\9a7a9026-48c1-4688-9d5d-e5699d47d074\\2.7\" /basedb \"C:\\Program Files (x86)\\Microsoft Visual Studio 14.0\\Common7\\IDE\\Extensions\\Microsoft\\Python Tools for Visual Studio\\2.2\\CompletionDB\" /log \"C:\\Users\\ron\\AppData\\Local\\Python Tools\\CompletionDB\\14.0\\9a7a9026-48c1-4688-9d5d-e5699d47d074\\2.7\\AnalysisLog.txt\" /glog \"C:\\Users\\ron\\AppData\\Local\\Python Tools\\CompletionDB\\14.0\\AnalysisLog.txt\" /wait \"\"\r\n2015-10-19T17:12:58 START_STDLIB \"C:\\Program Files (x86)\\Microsoft Visual Studio 14.0\\Common7\\IDE\\Extensions\\Microsoft\\Python Tools for Visual Studio\\2.2\\Microsoft.PythonTools.Analyzer.exe\" /id {914bcbbe-ed75-4e1e-bf71-1555c154a2d0} /version 3.5 /python c:\\Python35\\python.exe /outdir \"C:\\Users\\ron\\AppData\\Local\\Python Tools\\CompletionDB\\14.0\\914bcbbe-ed75-4e1e-bf71-1555c154a2d0\\3.5\" /basedb \"C:\\Program Files (x86)\\Microsoft Visual Studio 14.0\\Common7\\IDE\\Extensions\\Microsoft\\Python Tools for Visual Studio\\2.2\\CompletionDB\" /log \"C:\\Users\\ron\\AppData\\Local\\Python Tools\\CompletionDB\\14.0\\914bcbbe-ed75-4e1e-bf71-1555c154a2d0\\3.5\\AnalysisLog.txt\" /glog \"C:\\Users\\ron\\AppData\\Local\\Python Tools\\CompletionDB\\14.0\\AnalysisLog.txt\" /wait \"\"\r\n2015-10-19T17:12:59 DONE_STDLIB \"C:\\Program Files (x86)\\Microsoft Visual Studio 14.0\\Common7\\IDE\\Extensions\\Microsoft\\Python Tools for Visual Studio\\2.2\\Microsoft.PythonTools.Analyzer.exe\" /id {914bcbbe-ed75-4e1e-bf71-1555c154a2d0} /version 3.5 /python c:\\Python35\\python.exe /outdir \"C:\\Users\\ron\\AppData\\Local\\Python Tools\\CompletionDB\\14.0\\914bcbbe-ed75-4e1e-bf71-1555c154a2d0\\3.5\" /basedb \"C:\\Program Files (x86)\\Microsoft Visual Studio 14.0\\Common7\\IDE\\Extensions\\Microsoft\\Python Tools for Visual Studio\\2.2\\CompletionDB\" /log \"C:\\Users\\ron\\AppData\\Local\\Python Tools\\CompletionDB\\14.0\\914bcbbe-ed75-4e1e-bf71-1555c154a2d0\\3.5\\AnalysisLog.txt\" /glog \"C:\\Users\\ron\\AppData\\Local\\Python Tools\\CompletionDB\\14.0\\AnalysisLog.txt\" /wait \"\"\r\n\r\n\r\nEnvironment Analysis Logs: \r\nAjilius\r\n\r\n2015-10-19T17:12:58: Start analysis\r\n2015-10-19T17:12:59: IncludeModulesFromModulePath = win32com\r\n2015-10-19T17:12:59: Deleting 0 files\r\n\r\n\r\nPython 64-bit 2.7\r\n\r\n2015-10-19T17:12:49: Start analysis\r\n2015-10-19T17:12:49: IncludeModulesFromModulePath = win32com\r\n2015-10-19T17:12:49: Deleting 0 files\r\n\r\n2015-10-19T17:12:54: Start analysis\r\n2015-10-19T17:12:54: IncludeModulesFromModulePath = win32com\r\n2015-10-19T17:12:55: Deleting 0 files\r\n\r\n\r\nPython 64-bit 3.5\r\n\r\n2015-10-19T17:04:01: Start analysis\r\n2015-10-19T17:04:01: IncludeModulesFromModulePath = win32com\r\n2015-10-19T17:04:01: Deleting 0 files\r\n\r\n2015-10-19T17:04:43: Start analysis\r\n2015-10-19T17:04:43: IncludeModulesFromModulePath = win32com\r\n2015-10-19T17:04:43: Deleting 0 files\r\n```"},"comment":{"url":"https://api.github.com/repos/Microsoft/PTVS/issues/comments/149360042","html_url":"https://github.com/Microsoft/PTVS/issues/911#issuecomment-149360042","issue_url":"https://api.github.com/repos/Microsoft/PTVS/issues/911","id":149360042,"user":{"login":"ajilius","id":15190128,"avatar_url":"https://avatars.githubusercontent.com/u/15190128?v=3","gravatar_id":"","url":"https://api.github.com/users/ajilius","html_url":"https://github.com/ajilius","followers_url":"https://api.github.com/users/ajilius/followers","following_url":"https://api.github.com/users/ajilius/following{/other_user}","gists_url":"https://api.github.com/users/ajilius/gists{/gist_id}","starred_url":"https://api.github.com/users/ajilius/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ajilius/subscriptions","organizations_url":"https://api.github.com/users/ajilius/orgs","repos_url":"https://api.github.com/users/ajilius/repos","events_url":"https://api.github.com/users/ajilius/events{/privacy}","received_events_url":"https://api.github.com/users/ajilius/received_events","type":"User","site_admin":false},"created_at":"2015-10-19T21:59:02Z","updated_at":"2015-10-19T21:59:02Z","body":"Thank you for the fix-up Zooba, first time I've used Github Issues :)\r\nNone of the environments were working.\r\nYou're correct, Ajilius and Python 64-bit were identical, it was so that I could experiment with the individual directory and pathname settings.\r\nThose interpreters worked just fine, both from the command line, and when running the program being edited.\r\nI have now moved past the problem, but I don't think it was \"fixed\". I decided to try 32-bit interpreters, uninstalled the 64-bit versions, and after new installs of dependent libraries it worked.\r\nOne thing I'm wondering is how this is supposed to work. When a new library is added to a project, what happens in the background? I'm asking because it seems quite slow to kick off some sort of background analysis, which seems to re-analyse the entire set of libraries. \r\nFurther to that question, what happens between the last two lines in this snip from the diagnostics:\r\n\r\n2015-10-19T18:01:03: Start analysis\r\n2015-10-19T18:01:03: IncludeModulesFromModulePath = win32com\r\n2015-10-19T18:01:04: Deleting 0 files\r\n2015-10-19T18:01:04: Scraping builtin modules\r\n\r\nThat last line only exists in a successful run."}}