{"action":"created","issue":{"url":"https://api.github.com/repos/Microsoft/vscode-python/issues/2523","repository_url":"https://api.github.com/repos/Microsoft/vscode-python","labels_url":"https://api.github.com/repos/Microsoft/vscode-python/issues/2523/labels{/name}","comments_url":"https://api.github.com/repos/Microsoft/vscode-python/issues/2523/comments","events_url":"https://api.github.com/repos/Microsoft/vscode-python/issues/2523/events","html_url":"https://github.com/Microsoft/vscode-python/issues/2523","id":358059559,"node_id":"MDU6SXNzdWUzNTgwNTk1NTk=","number":2523,"title":"Language Server: System.NullReferenceException: Object reference not set to an instance of an object.","user":{"login":"RhyCynn","id":11785668,"node_id":"MDQ6VXNlcjExNzg1NjY4","avatar_url":"https://avatars0.githubusercontent.com/u/11785668?v=4","gravatar_id":"","url":"https://api.github.com/users/RhyCynn","html_url":"https://github.com/RhyCynn","followers_url":"https://api.github.com/users/RhyCynn/followers","following_url":"https://api.github.com/users/RhyCynn/following{/other_user}","gists_url":"https://api.github.com/users/RhyCynn/gists{/gist_id}","starred_url":"https://api.github.com/users/RhyCynn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RhyCynn/subscriptions","organizations_url":"https://api.github.com/users/RhyCynn/orgs","repos_url":"https://api.github.com/users/RhyCynn/repos","events_url":"https://api.github.com/users/RhyCynn/events{/privacy}","received_events_url":"https://api.github.com/users/RhyCynn/received_events","type":"User","site_admin":false},"labels":[{"id":717069545,"node_id":"MDU6TGFiZWw3MTcwNjk1NDU=","url":"https://api.github.com/repos/Microsoft/vscode-python/labels/feature-intellisense","name":"feature-intellisense","color":"006b75","default":false},{"id":717071344,"node_id":"MDU6TGFiZWw3MTcwNzEzNDQ=","url":"https://api.github.com/repos/Microsoft/vscode-python/labels/needs%20verification","name":"needs verification","color":"fbca04","default":false},{"id":716013197,"node_id":"MDU6TGFiZWw3MTYwMTMxOTc=","url":"https://api.github.com/repos/Microsoft/vscode-python/labels/type-bug","name":"type-bug","color":"ee0701","default":false},{"id":895977238,"node_id":"MDU6TGFiZWw4OTU5NzcyMzg=","url":"https://api.github.com/repos/Microsoft/vscode-python/labels/upstream-language%20server","name":"upstream-language server","color":"3714ff","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-09-07T13:06:03Z","updated_at":"2018-09-07T19:05:43Z","closed_at":null,"author_association":"NONE","body":"## Environment data\r\n- VS Code version: 1.27.1 & 1.28.0-insider (clean installs)\r\n- Extension version (available under the Extensions sidebar): 2018.8.0\r\n- OS and version: Windows 10 Pro Version 10.0.17134.228\r\n- Python version (& distribution if applicable, e.g. Anaconda): Python 3.7 64-bit (clean install)\r\n- Type of virtual environment used (N/A | venv | virtualenv | conda | ...): NA\r\n- Relevant/affected Python packages and their versions: None\r\n\r\n## Actual behavior\r\nOutput for `Python` in the `Output` panel opens with a \"System.NullReferenceException\" error after typing \"from .\" in an \"\\_\\_init\\_\\_.py\" file.\r\n\r\n## Expected  behavior\r\nNo error\r\n\r\n## Steps to reproduce:\r\n1. Create an empty folder\r\n2. Open the folder with vscode or vscode-insider\r\n3. Create a new file \"\\_\\_init\\_\\_.py\"\r\n4. Start typing \"from .\"\r\n\r\nThe error occurs after typing the dot. The error does not occur with other file names (e.g. \"some\\_file.py\"). I cannot tell if this is related to a closed issue with a similar error. \r\n\r\nScreenshots at the bottom.\r\n\r\n## Logs\r\nOutput for `Python` in the `Output` panel:\r\n[Error - 8:33:17 AM] System.NullReferenceException: Object reference not set to an instance of an object.\r\n   at Microsoft.PythonTools.Analysis.ModuleResolver.GetModuleFullName(String originatingModule, String relativePath)\r\n   at Microsoft.PythonTools.Analysis.ModuleResolver.ResolvePotentialModuleNames(String importingFromModuleName, String importingFromFilePath, String relativeModuleName, Boolean absoluteImports)+MoveNext()\r\n   at System.Collections.Generic.LargeArrayBuilder`1.AddRange(IEnumerable`1 items)\r\n   at System.Collections.Generic.EnumerableHelpers.ToArray[T](IEnumerable`1 source)\r\n   at System.Linq.Enumerable.ToArray[TSource](IEnumerable`1 source)\r\n   at Microsoft.PythonTools.Analysis.Analyzer.DDG.TryImportModule(String modName, Boolean forceAbsolute, ModuleReference& moduleRef, IReadOnlyList`1& remainingParts)\r\n   at Microsoft.PythonTools.Analysis.Analyzer.DDG.Walk(FromImportStatement node)\r\n   at Microsoft.PythonTools.Parsing.Ast.FromImportStatement.Walk(PythonWalker walker)\r\n   at Microsoft.PythonTools.Analysis.Analyzer.DDG.Walk(SuiteStatement node)\r\n   at Microsoft.PythonTools.Parsing.Ast.SuiteStatement.Walk(PythonWalker walker)\r\n   at Microsoft.PythonTools.Parsing.Ast.PythonAst.Walk(PythonWalker walker)\r\n   at Microsoft.PythonTools.Analysis.AnalysisUnit.AnalyzeWorker(DDG ddg, CancellationToken cancel)\r\n   at Microsoft.PythonTools.Analysis.Analyzer.DDG.Analyze(Deque`1 queue, CancellationToken cancel, Action`1 reportQueueSize, Int32 reportQueueInterval)\r\n   at Microsoft.PythonTools.Analysis.PythonAnalyzer.AnalyzeQueuedEntries(CancellationToken cancel)\r\n   at Microsoft.PythonTools.Intellisense.AnalysisQueue.GroupAnalysis.Analyze(CancellationToken cancel)\r\n   at Microsoft.PythonTools.Intellisense.AnalysisQueue.HandleAnalyzable(IAnalyzable item, AnalysisPriority priority, CancellationToken cancellationToken)\r\n   at Microsoft.PythonTools.Intellisense.AnalysisQueue.ConsumerLoop()\r\n\r\nOutput from `Console` under the `Developer Tools` panel:\r\nNone\r\n\r\n## Screenshots\r\nvscode\r\n![vscode_dot_test_ss](https://user-images.githubusercontent.com/11785668/45220112-1f42e780-b27b-11e8-90a9-f4384b550cf9.png)\r\n\r\nvscode-insider\r\n![vscode_insider_dot_test_ss](https://user-images.githubusercontent.com/11785668/45220115-22d66e80-b27b-11e8-8ae4-385aad2b8322.png)\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/Microsoft/vscode-python/issues/comments/419536249","html_url":"https://github.com/Microsoft/vscode-python/issues/2523#issuecomment-419536249","issue_url":"https://api.github.com/repos/Microsoft/vscode-python/issues/2523","id":419536249,"node_id":"MDEyOklzc3VlQ29tbWVudDQxOTUzNjI0OQ==","user":{"login":"brettcannon","id":54418,"node_id":"MDQ6VXNlcjU0NDE4","avatar_url":"https://avatars0.githubusercontent.com/u/54418?v=4","gravatar_id":"","url":"https://api.github.com/users/brettcannon","html_url":"https://github.com/brettcannon","followers_url":"https://api.github.com/users/brettcannon/followers","following_url":"https://api.github.com/users/brettcannon/following{/other_user}","gists_url":"https://api.github.com/users/brettcannon/gists{/gist_id}","starred_url":"https://api.github.com/users/brettcannon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brettcannon/subscriptions","organizations_url":"https://api.github.com/users/brettcannon/orgs","repos_url":"https://api.github.com/users/brettcannon/repos","events_url":"https://api.github.com/users/brettcannon/events{/privacy}","received_events_url":"https://api.github.com/users/brettcannon/received_events","type":"User","site_admin":false},"created_at":"2018-09-07T19:05:43Z","updated_at":"2018-09-07T19:05:43Z","author_association":"MEMBER","body":"Can you verify this, @ericsnowcurrently ?"}}
{"actor":{"display_login":"brettcannon"}}